Hello all.. Atm I am working on building a quest bot on a MUD I play. Right now I'm still in the design stage, but I've got a basic idea of how I want to do it. First off a lil bit of background
The Quest system on LoC(the mud I play) is fairly simple. You gain the quest from the questmaster, and are assigned a task to kill 5 mobs and locate 1 item. The item can either be locateable(via a spell) down to the room it's in(room name anyways), or it can be only traceable to a general area. Also, there are a number of mobs that share the same short-string, the only differences being in ansi colourcoding. Players in this mud are able to teleport themselves around at will, given that they're teleporting to a mob. Certain mobs are flagged "noteleport", in that we cannot travel directly to them.
Basically I'm planning on making entries into a db for each mob, a one time thing. From there I need to setup triggers to pull the appropriate record, and get the correct way to move to the mob and kill it. Also I will establish set search paths through each area, to comb through the area and find the item) All fine and dandy, but I face two problems:
1) How can I deal with multiple mobs of the same short-string, such as WILD BOAR(purple) and WILD BOAR(red/orange)
2) How can I establish a given way to select the appropriate search path for a given item?
Sample Output:
You may find the Wand of the Sun God, Mephisto within the whereabouts of the area: Hell
You have been charged by Volcano Questmaster to complete the following quest
* Find and return the Wand of the Sun God, Mephisto.
* Find and slay Wild Boar.
* Find and slay a Forest Drake.
* Find and slay a Fungal Bloom.
* Find and slay An evil owl.
* Find and slay Drow Guard.
Jerle Minara,
zMUD 6.34
Win 2k Advanced Server