Snap Posted April 7, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Share Posted April 7, 2012 Does anyone has a Script that every time i kill a monster, the monster will drop a specific coin which is bronze coin? Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 12, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 12, 2012 [ Pastebin ] Monster Drop Extra Items when Killed tr0n script will stop the script if the 1st monster ID in the list doesnt match with the killedrid instead of "end" he can ty change it to "continue" to loop for the rest ID anyway... there is a easier way...but required a src mod.. cant remember what topic....but i just remember the topic is about mvp announcer.. and...you can find that src mod in the svn changelog.. Quote Link to comment Share on other sites More sharing options...
Lilith Posted April 8, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted April 8, 2012 - script OnNPCKillEvent -1,{ OnNPCKillEvent: getitem 673,1; end; } Quote Link to comment Share on other sites More sharing options...
Snap Posted April 8, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Author Share Posted April 8, 2012 Lets be specific. Can be this for MVP Monster Only? Quote Link to comment Share on other sites More sharing options...
tr0n Posted April 12, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted April 12, 2012 - script OnNPCKillEvent -1,{ OnNPCKillEvent: if(killedrid!=<MONSTER ID HERE>)end; getitem 673,1; end; } if you want to use more then one monster id: setarray .monsterids[0],<monster id here>,<monster id here>,...; OnNPCKillEvent: for(set .@i, 0; .@i<getarraysize(.monsterids);set.@i,.@i+1) { if(killedrid==.monsterids[.@i]) { getitem 673,1; end; } } end; didn't tested but should work I think. Quote Link to comment Share on other sites More sharing options...
tr0n Posted April 12, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted April 12, 2012 oh totally forgot that haha. Sry xD I corrected it. Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 12, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 12, 2012 wrong at the second script if(killedrid!=.monsterids[.@i]){ <----------Wrong getitem 673,1; end; Quote Link to comment Share on other sites More sharing options...
tr0n Posted April 12, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted April 12, 2012 wrong at the second script if(killedrid!=.monsterids[.@i]){ <----------Wrong getitem 673,1; end; now it's correct. oh man I was too tired to write this easy sh*t Quote Link to comment Share on other sites More sharing options...
Question
Snap
Does anyone has a Script that every time i kill a monster, the monster will drop a specific coin which is bronze coin?
Link to comment
Share on other sites
7 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.