Jump to content
  • 0

Room That Dropping Gold


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

room jupe_ele 
Gold Dropping everywhere

 

help can anyone help me to have that :( thankyou very much
 

 



Fix :) thankyou !

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  


- script gold -1,{

OnNpcKillEvent:

getmapxy .@map$,.@x,.@y;

if(.@map$=="jupe_ele") {

geitem 969,1;

}

end;

}

Edited by szarkab123
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


OnNPCKillEvent:

if( strcharinfo(3) == "jupe_ele" )

getitem 969,1;

end;

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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

}

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

-	script	gold	-1,{
OnNpcKillEvent:
getmapxy .@map$,.@x,.@y;
   if(.@map$==jupe_ele) {
      geitem 969,1;
      }
end;
}

 

How to do this on instance maps?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


if( compare( strcharinfo(3),"jupe_ele" )

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

if( compare( strcharinfo(3),"jupe_ele" )

 

i tested it on endless instance(map 0011@tower) it didnt work, but if i warp to none instance 1@tower it works.

Edited by Rock And Paper
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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
		
		}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  04/12/12
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...