- Ultima Expansion
- Endless Journey
I want to code an item that the player double clicks to summon or spawn a creature that the player controls like a tamed pet, and for the double clicked item used to summon it to disappear upon summoning.
After a few minutes I want the creature to vanish, and for the item to then reappear in the summoner's backpack. Also, if the summoned creature is killed, I want the item to reappear in the summoner's backpack. I want to make sure this happens whether the summoner is online or not (in case he loses connection).
What is the best way to go about this? I could particularly use some help on getting the item to reappear in the summoner's backpack if the creature's timer expires or is killed.
Any sample code to accomplish this would be very helpful also!
Thanks so much!
After a few minutes I want the creature to vanish, and for the item to then reappear in the summoner's backpack. Also, if the summoned creature is killed, I want the item to reappear in the summoner's backpack. I want to make sure this happens whether the summoner is online or not (in case he loses connection).
What is the best way to go about this? I could particularly use some help on getting the item to reappear in the summoner's backpack if the creature's timer expires or is killed.
Any sample code to accomplish this would be very helpful also!
Thanks so much!