Jump to content

Rock And Paper

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Rock And Paper

  1. OnNPCKillEvent will not work on the monster that already have their own custom event label ..

     

    you have to find that event label inside your script and add ur makeitem script command there ...

     

    Which won't work because killedrid isn't set with custom labels... Unless they actually listened to me.

     

     

    >sorry it now works typo on compare, i have a new problem getitem doesnt work on instance mobs, but if I manually @monster it, it drops gold.

     

     

     

     

    http://rathena.org/board/tracker/issue-7817-onmobdeathevents/

     

    Do that modification then find the label inside your endless tower script and paste this after it.

     

    getmapxy(@m$,@x,@y,0);  
    if (compare(strcharinfo(3),"1@tower") || compare(strcharinfo(3),"2@tower") || compare(strcharinfo(3),"3@tower") || compare(strcharinfo(3),"4@tower") || compare(strcharinfo(3),"5@tower") || compare(strcharinfo(3),"6@tower"))
    {
    if(killedrid == 1002) // Poring
    		{
    		makeitem 969,1,@m$,@x,@y; //Gold
    
    		if (rand(100) < 20) // 20% chance of activating.
    		makeitem 616,1,@m$,@x,@y; // OCA
    		
    		}
    }
    

     

    thanks skorm, Fixed

  2. i have added this on ET script.

    OnMyMobDead:
    
    if(killedrid == 1086) // GTB
    		{
    			getitem 616,1; //OCA
    			getitem 714,1;
    
    			if (rand(100) < 51) // 50% chance of activating.
    			{
    				getitem 2246,1;
    			}
    			
    			if (rand(100) < 21) // 20% chance of activating.
    				getitem 4128,1; //card
    		}
    		else
    		getitem 969,1;
    
    	set .@mob_dead_num,mobcount("1@tower",instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead");
    	if (.@mob_dead_num < 1) {
    		initnpctimer;
    		//SetItemPartyInMap in_102floor 5
    	}
    	else
    		instance_announce 0, "Remaining Monsters on the 5th Level - " + .@mob_dead_num,bc_map,"0x00ff99";
    	end;
    
    OnTimer5000:
    	instance_announce 0, "All Monsters on the 5th Level have been defeated.",bc_map,"0xffff00";
    	donpcevent instance_npcname("5FGate102tower", instance_id())+"::OnEnable";
    	stopnpctimer;
    	end;
    }
    

    Im getting Gold on normal mob but on GTB it doesnt drop anything.

     

    That's because Killedrid isn't set on custom mob event labels... I submited this as a bug but it guess it was overlooked check your other post for a solution.

     

    Thank You.

  3. if( compare( strcharinfo(3),"1@tower" )
    

     

    sorry it now works typo on compare, i have a new problem getitem doesnt work on instance mobs, but if I manually @monster it, it drops gold.

     

    -	script	gold	-1,{
    
    OnNpcKillEvent:
    getmapxy(@m$,@x,@y,0);  
       
    
    if (compare(strcharinfo(3),"1@tower") || compare(strcharinfo(3),"2@tower") || compare(strcharinfo(3),"3@tower") || compare(strcharinfo(3),"4@tower") || compare(strcharinfo(3),"5@tower") || compare(strcharinfo(3),"6@tower"))
    {
    if(killedrid == 1002) // Poring
    		{
    		makeitem 969,1,@m$,@x,@y; //Gold
    
    		if (rand(100) < 20) // 20% chance of activating.
    		makeitem 616,1,@m$,@x,@y; // OCA
    		
    		}
    }
    
  4. i have added this on ET script.

    OnMyMobDead:
    
    if(killedrid == 1086) // GTB
    		{
    			getitem 616,1; //OCA
    			getitem 714,1;
    
    			if (rand(100) < 51) // 50% chance of activating.
    			{
    				getitem 2246,1;
    			}
    			
    			if (rand(100) < 21) // 20% chance of activating.
    				getitem 4128,1; //card
    		}
    		else
    		getitem 969,1;
    
    	set .@mob_dead_num,mobcount("1@tower",instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead");
    	if (.@mob_dead_num < 1) {
    		initnpctimer;
    		//SetItemPartyInMap in_102floor 5
    	}
    	else
    		instance_announce 0, "Remaining Monsters on the 5th Level - " + .@mob_dead_num,bc_map,"0x00ff99";
    	end;
    
    OnTimer5000:
    	instance_announce 0, "All Monsters on the 5th Level have been defeated.",bc_map,"0xffff00";
    	donpcevent instance_npcname("5FGate102tower", instance_id())+"::OnEnable";
    	stopnpctimer;
    	end;
    }
    

    Im getting Gold on normal mob but on GTB it doesnt drop anything.

  5. thank you kamikaze666, i used nomobloot but it also removed the drops from the MVP

     

    also thanks euphy finally got the code for it.

     

    But how do i emulate the drops of MVP? Misc drop is 100%, equips are on 50% and card is on 1%.

  6. It's actually pretty easy to do with my new version of the Endless Tower script (v2.2).

    • Add the 'nomobloot' mapflag to all x@tower maps, which will disable drops from all monsters except MVPs.
    • In the "OnMyMobDead" labels, create your desired drops with either 'makeitem' or simply 'getitem' (using any conditions you need).

     

    Can you please guide me how to add a nomobloot mapflag on @tower 1-2 sample lines will do. thanks

  7. Can i Request a custom drop via script that all monsters except MVP on endless tower ONLY drops a certain item like gold or potion.

    It wont drop jellopy or other items, only the specific item stated on the script.

     

    Sample on floor 1-25 : all monsters except MVP only drops Red potion.

    on Floor 26-50 : all monsters except MVP only drops yellow potion

    51-75 : White

    76-100 : Ygg

     

    thanks.

×
×
  • Create New...