Jump to content
  • 0
Sign in to follow this  
Lulupard

Increase drop from monters by type

Question

2 answers to this question

Recommended Posts

  • 0

first, remove the existing drop:

delmonsterdrop(<mob id or name>, <item id>)

 

then add it back, with a different drop rate:

addmonsterdrop(<mob id or name>, <item id>, <rate>)

 

This will only change one monster at a time, so you must hard-code all the mob ids in your script.

 

An alternative could be to iterate over ALL monsters in a loop starting from id 1001 and checking with getmonsterinfo() if the race is RC_Fish, but the loop would be insanely long and block the thread (so requires freeloop), which would make the server completely unresponsive while processing the loop. If you only plan to do it in OnInit or when a custom atcommand is called it would probably be fine though.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.