NexusXVI Posted November 3, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share Posted November 3, 2013 Can I ask for a script that enables an item to drop on ALL MONSTERS including bosses.* Quantity can be changed to.. not limiting it to 1 drop* And Can black list a couple of monsters to if that's possible.Ex. "Item X" can be dropped on all maps except gold room monsters. Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 3, 2013 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 November 3, 2013 @Patskie your script doesnt work .. variable isnt initialized / trigger to save it. your OnNPCKillEvent will create multiple drop of items based on your black_list_mob array .. as well as several error will be shown.... - script Sample -1,{ OnInit: // blacklisted monsters .blacklist$ = "1002|1003|1004"; end; OnNPCKillEvent: getmapxy( .@map$,.@x,.@y, 0 ); if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) ) makeitem 607,5,.@map$,.@x,.@y; end; } certain MVP / Bosses wont be able to trigger this event since they have their own event label. ex. Bio Lab MVP.... 1 Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 3, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 10 hours ago Share Posted November 3, 2013 Didn't test : - script Sample -1,{ setarray .black_list_mob[0],1002; set .size, getarraysize(.black_list_mob); set .amount, 5; OnNPCKillEvent: getmapxy .@map$, .@x, .@y, 0; for ( set .@i, 0; .@i < .size, set .@i, .@i + 1 ) { if ( killedrid == .black_list_mob[.@i] ) end; else makeitem 607,.amount,.@map$,.@x,.@y; } end; } Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 3, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 10 hours ago Share Posted November 3, 2013 Oh i forgot why i shouldn't use compare! Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 3, 2013 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 November 3, 2013 Oh i forgot why i shouldn't use compare! it have limitation too ...max 255 characters in length ... 1 Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted November 3, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted November 3, 2013 Thanks ill test this guys right away The script works 75% xDBlacklist not working.. added monsters but they drop it still. Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 3, 2013 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 November 3, 2013 typo... change to this if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) ) 1 Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted November 3, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted November 3, 2013 (edited) Works now TNX!!BTW.. is there anychance that the drop could be by %? Edited November 3, 2013 by NexusXVI Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted March 22, 2014 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted March 22, 2014 The Item in the script can't be autolooted with alootid and autoloot commands..How can it be fixed?? Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 22, 2014 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 March 22, 2014 the item is generated by script...not "drop" by monster ... @alootid only loot item that drop by monster itself... other than this....erm... you can use bindatcmd to do some trick to make it work .. assign a temporary variable when they used @alootid ... then...when killed a monster..check for the variable.. if true...then use getitem ... else.... then use makeitem .. 1 Quote Link to comment Share on other sites More sharing options...
Question
NexusXVI
Can I ask for a script that enables an item to drop on ALL MONSTERS including bosses.
* Quantity can be changed to.. not limiting it to 1 drop
* And Can black list a couple of monsters to if that's possible.
Ex. "Item X" can be dropped on all maps except gold room monsters.
Link to comment
Share on other sites
9 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.