Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×

Script Command: getrandmob() 1.1


About This File

Another quick package up of a small command I've had lying around for a long time. Grabs a random monster from one of the branch databases. Useful for hunter quests, disguise events, and anything else you can think of. Uses database stored in memory, so it's faster and more efficient than running SQL queries and doesn't require you to use SQL dbs for items and mobs.

/*==========================================

* Fetches a random mob_id

* getrandmob(num,type);

*

* type: Where to fetch from:

* 0: dead branch list

* 1: poring list

* 2: bloody branch list

* num: Mob level to check against (0 = all)

*------------------------------------------*/

To add, simply place the files into the src/custom folder. If you already use those files, add the new code into your existing populated files and do a clean make.


What's New in Version 1.1   See changelog

Released

  • Added (0 = all) level difference capability

×
×
  • Create New...