NexusXVI Posted November 3, 2013 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
Emistry Posted November 3, 2013 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
Patskie Posted November 3, 2013 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
Patskie Posted November 3, 2013 Posted November 3, 2013 Oh i forgot why i shouldn't use compare! Quote
Emistry Posted November 3, 2013 Posted November 3, 2013 Oh i forgot why i shouldn't use compare! it have limitation too ...max 255 characters in length ... 1 Quote
NexusXVI Posted November 3, 2013 Author 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
Emistry Posted November 3, 2013 Posted November 3, 2013 typo... change to this if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) ) 1 Quote
NexusXVI Posted November 3, 2013 Author 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
NexusXVI Posted March 22, 2014 Author Posted March 22, 2014 The Item in the script can't be autolooted with alootid and autoloot commands..How can it be fixed?? Quote
Emistry Posted March 22, 2014 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
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.
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.