NightJar Posted February 9, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 47 Reputation: 0 Joined: 12/24/17 Last Seen: Yesterday at 02:06 AM Share 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 Link to comment Share on other sites More sharing options...
0 hendra814 Posted February 9, 2018 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 1187 Reputation: 161 Joined: 06/12/12 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 NightJar Posted February 9, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 47 Reputation: 0 Joined: 12/24/17 Last Seen: Yesterday at 02:06 AM Author Share 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 Link to comment Share on other sites More sharing options...
0 NightJar Posted February 9, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 47 Reputation: 0 Joined: 12/24/17 Last Seen: Yesterday at 02:06 AM Author Share Posted February 9, 2018 I want it to get gold every time a peco is kileed not random :'( Thanks! Quote Link to comment Share on other sites More sharing options...
0 fTakano Posted February 9, 2018 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 31 Reputation: 11 Joined: 07/02/12 Last Seen: Yesterday at 10:08 AM Share 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 Link to comment Share on other sites More sharing options...
0 rabmaster Posted September 26, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 06/18/12 Last Seen: November 27, 2021 Share Posted September 26, 2020 Have one a Idea for Idle Kick for Alchemist and Mercanary Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.