Jump to content
  • 0

All monster drop request


NexusXVI

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;   
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Oh i forgot why i shouldn't use compare! -_- 

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Oh i forgot why i shouldn't use compare! -_-

it have limitation too ...max 255 characters in length ...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

Thanks ill test this guys right away



The script works 75% xD

Blacklist not working.. added monsters but they drop it still.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

typo...

change to this

if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) )
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

Works now TNX!!

BTW.. is there anychance that the drop could be by %?

Edited by NexusXVI
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

The Item in the script can't be autolooted with alootid and autoloot commands..

How can it be fixed??

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...