Jump to content
  • 0

EndlessTower awards every 25 floors


Question

Posted

Hello, I want my endless tower to award every 25 floors, in case I tried to summon 3 baus but I am not sure if it is correct.

 

	1@tower,270,51,0    script    24FGate102tower    45,2,2,{     end; OnInstanceInit:     disablenpc instance_npcname("24FGate102tower", instance_id());     end; OnEnable:     enablenpc instance_npcname("24FGate102tower", instance_id());     areamonster "1@tower",352,9,362,45,"Gato de Nove Caudas",1307,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";     areamonster "1@tower",352,9,362,45,"Flor do Luar",1150,1,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";     areamonster "1@tower",352,9,362,45,"Nove Caudas",1180,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";     end; OnTouch_:     warp "1@tower",395,12;     end; OnMyMobDead:     set .@mob_dead_num,mobcount("1@tower",instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead");     if (.@mob_dead_num < 1) {         instance_announce 0, "Todos os monstros no 25° andar foram derrotados.",bc_map,"0xffff00";         donpcevent instance_npcname("25FGate102tower", instance_id())+"::OnEnable";         areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";         areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";         areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";         //SetItemPartyInMap in_102floor 25     }     else         instance_announce 0, "Monstros vivos no 25° andar: " + .@mob_dead_num,bc_map,"0x00ff99";     end;      Onboxdead1: Announce "[Torre Infinita. And.25] " + strcharinfo(0) +" abriu um dos Baús do Tesouro.",8; end; }

1 answer to this question

Recommended Posts

  • 0
Posted
1@tower,270,51,0	script	24FGate102tower	45,2,2,{ 
	end;
	
OnInstanceInit: 	
	disablenpc instance_npcname("24FGate102tower", instance_id());
 	end;
	
OnEnable: 	
	enablenpc instance_npcname("24FGate102tower", instance_id());
 	areamonster "1@tower",352,9,362,45,"Gato de Nove Caudas",1307,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";
 	areamonster "1@tower",352,9,362,45,"Flor do Luar",1150,1,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";
 	areamonster "1@tower",352,9,362,45,"Nove Caudas",1180,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead";
 	end;
	
OnTouch_: 	
	warp "1@tower",395,12;
 	end;
	
OnMyMobDead: 	
	set .@mob_dead_num,mobcount("1@tower",instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead");
 	if (.@mob_dead_num < 1) { 		instance_announce 0, "Todos os monstros no 25° andar foram derrotados.",bc_map,"0xffff00";
 		donpcevent instance_npcname("25FGate102tower", instance_id())+"::OnEnable";
 		areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";
 		areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";
 		areamonster "1@tower",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1";
		
		// party rewards.
 		addrid(2, 0, getcharid(1)) {
			if (strcharinfo(3) == strnpcinfo(4)) {
				getitem 512, 1;
				getitem 512, 2;
				getitem 512, 3;
			}
		}
	}
	else instance_announce 0, "Monstros vivos no 25° andar: " + .@mob_dead_num,bc_map,"0x00ff99";
 	end;

Onboxdead1: 
	Announce "[Torre Infinita. And.25] " + strcharinfo(0) +" abriu um dos Baús do Tesouro.",8;
	end;
 }

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...