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
  • 0

As I was planning on doing automatic weekly drop increases, that does not sound very promising.

 

Thank you for the answer anyway! :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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