Jump to content
  • 0

Auto get item when mob is killed


NightJar

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

Hi,

 

can i ask how to auto get item when a mob is killed?? 

I want the gold automatically add the gold on inventory.

Thanks! Here is my script. 

goldroom.txt

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1183
  • Reputation:   160
  • Joined:  06/12/12
  • Last Seen:  

36 minutes ago, NightJar said:

Hi,

 

can i ask how to auto get item when a mob is killed?? 

I want the gold automatically add the gold on inventory.

Thanks! Here is my script. 

goldroom.txt

put this script at then end of script

-	script	Drop_extra	-1,{

OnNPCKillEvent:
if( strcharinfo(3) != "ordeal_3-2" ) {end;}
if( rand( 100 ) <= 10) {
{ .@item_id = 969;

getitem .@item_id,1;  }
end; 
}


}

player will get gold with probability rate 10% and only at map ordeal_3_2

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

1 hour ago, hendra814 said:

put this script at then end of script


-	script	Drop_extra	-1,{

OnNPCKillEvent:
if( strcharinfo(3) != "ordeal_3-2" ) {end;}
if( rand( 100 ) <= 10) {
{ .@item_id = 969;

getitem .@item_id,1;  }
end; 
}


}

player will get gold with probability rate 10% and only at map ordeal_3_2

hi, at the very end of the script ? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

I want it to get gold every time a peco is kileed not random :'( Thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   11
  • Joined:  07/02/12
  • Last Seen:  

6 minutes ago, NightJar said:

I want it to get gold every time a peco is kileed not random :'( Thanks!

-	script	Drop_extra	-1,{

OnNPCKillEvent:
if( strcharinfo(3) != "ordeal_3-2" ) {end;}
getitem .@item_id,1; 
end;

OnInit:
.@item_id = 969;
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/18/12
  • Last Seen:  

Have one a Idea for Idle Kick for Alchemist and Mercanary

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