Full Version : Bring home after X amount if time?
xmlspawner >>Q&A >>Bring home after X amount if time?
<< Prev | Next >>
afonso- 04-09-2006
Before anything else, a million thanks for creating such a wonderfull script!
Here's my question: I have a warhorse spawn somwhere in the world. I wanted to prevent players from luring it and preventing it from respawning, so the horse would come back if he was away for very long, is there a way to set the bring home function to work every X hours?
Thanks in advance
Afonso
LowCastle- 04-09-2006
I believe what you want is a second spawner next to the one that spawns your warhorse.
On your warhorse spawner, make sure your warhorse is assigned to Sub 1.
On the second spawner, have an entry like this:
SETONSPAWN[,spawnername],1/location/(x, y, z)
Of course you'll want to change "spawnername" to the name of your warhorse spawner, and change the (x, y, z) to the location you want the warhorse to return to.
Then just set the mindelay/maxdelay of the second spawner to the delay you want between moving the warhorse back to that location.
I hope this helps.
afonso- 04-09-2006
Thanks for the prompt answer That really helped
By the way, while we're on topic, is there a way of making act as if the lured horse was killed and just respawn?
ArteGordon- 04-09-2006
if you set the Duration property on the spawner, then it will automatically despawn after that amount of time.