Erio-chan Posted July 24, 2017 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 97 Reputation: 10 Joined: 07/23/16 Last Seen: August 31, 2018 Share Posted July 24, 2017 (edited) I have found this script here it makes player drop item 100% when die (monster/player kill). I wanted to implement it on all map so I disabled first line in OnPCDieEvent and also the pk points. Is it possible to disable this script by having special item on my inventory? (example "apple") - script Bloodymode -1,{ OnPCDieEvent: //if ( strcharinfo(3) != "moc_fild12" ) end; // set your map //if ( pkpoints < 100 ) end; // decide on the pk points getinventorylist; if ( !@inventorylist_count ) end; .@r = rand( @inventorylist_count ); delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r]; getmapxy .@map$, .@x, .@y, 0; makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r]; end; } Edited July 25, 2017 by Erio-chan Quote Link to comment Share on other sites More sharing options...
1 Enthr Posted July 24, 2017 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 88 Reputation: 10 Joined: 01/15/16 Last Seen: January 18 Share Posted July 24, 2017 just add the line after the OnPCDieEvent: if (countitem(501) >= 1) end; where, 501 is the id of the item 1 Quote Link to comment Share on other sites More sharing options...
0 Erio-chan Posted July 25, 2017 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 97 Reputation: 10 Joined: 07/23/16 Last Seen: August 31, 2018 Author Share Posted July 25, 2017 @Enthrthank you, I will try it <3 Quote Link to comment Share on other sites More sharing options...
Question
Erio-chan
I have found this script here it makes player drop item 100% when die (monster/player kill).
I wanted to implement it on all map so I disabled first line in OnPCDieEvent and also the pk points.
Is it possible to disable this script by having special item on my inventory? (example "apple")
- script Bloodymode -1,{ OnPCDieEvent: //if ( strcharinfo(3) != "moc_fild12" ) end; // set your map //if ( pkpoints < 100 ) end; // decide on the pk points getinventorylist; if ( !@inventorylist_count ) end; .@r = rand( @inventorylist_count ); delitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r]; getmapxy .@map$, .@x, .@y, 0; makeitem2 @inventorylist_id[.@r], @inventorylist_amount[.@r], .@map$, .@x, .@y, @inventorylist_identify[.@r], @inventorylist_refine[.@r], @inventorylist_attribute[.@r], @inventorylist_card1[.@r], @inventorylist_card2[.@r], @inventorylist_card3[.@r], @inventorylist_card4[.@r]; end; }
Link to comment
Share on other sites
2 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.