NightJar Posted February 9, 2018 Posted February 9, 2018 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 Quote
0 hendra814 Posted February 9, 2018 Posted February 9, 2018 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 Quote
0 NightJar Posted February 9, 2018 Author Posted February 9, 2018 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 ? Quote
0 NightJar Posted February 9, 2018 Author Posted February 9, 2018 I want it to get gold every time a peco is kileed not random :'( Thanks! Quote
0 fTakano Posted February 9, 2018 Posted February 9, 2018 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; } Quote
0 rabmaster Posted September 26, 2020 Posted September 26, 2020 Have one a Idea for Idle Kick for Alchemist and Mercanary Quote
Question
NightJar
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
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.