Jump to content
  • 0

All monster drop request


Question

Posted

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

Posted

@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....

  • Upvote 1
Posted

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;   
}
Posted

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 ..

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...