Jump to content

Question

11 answers to this question

Recommended Posts

Posted


- script iuno -,{

OnInit:

while(1) {

if ( getareadropitem( "jupe_ele",34,34,49,54,969 ) < 100 )

makeitem 969,1,"jupe_ele",rand(34,49),rand(34,54);

sleep 800;

}

}

Posted (edited)
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
		
		}
}
Edited by Rock And Paper
Posted

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
		
		}
}
Posted

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

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...