Log in

View Full Version : How to Script Attack Creatures



Silk
12-21-2013, 02:31
I used the "setMeleekill" on and typed in the creatures name + added it to the script and it didn't work, my character walks by the creatures, is it because I use a wand as I'm a Sorcerer? Or is it another problem?

Edit:

My character also doesn't loot, he just looks inside the creature and eats the food and doesn't take gold even though I added "setLoot D7 0B".

Silk
12-21-2013, 12:56
Nvm I figured out the problem, for some strange reason the cavebot doesn't attack creatures or loot items if you add those commands after the walking commands.

xHellsx
12-22-2013, 12:30
The script is ran from top to bottom in lines.
Add all the master command firsts such as set attacks loots etc.