Hello,
Okay so let me quickly bring you up to speed on my predicament.
I am a beginner programmer, but I have managed to come up with a pretty neat little script that allows my players to summon vendors and class trainers from an item.
The Problem: People think its funny to run around randomly spawning thousands of vendors everywhere (even though I made it so they de-spawn after 2 mintues) and its very annoying to me and to my players, so I came up with two different options of dealing with this.
Option 1: Limit the time between summoning vendors.
I tried to limit the time between summons to 20 seconds but Heres what happened:
Say Player1 spawns a vendor in orgrimar,
Then Player 2 tries to spawn a vendor in ironforge and it will tell them that they need to wait 20 seconds before spawning another vendor.
See my problem? Let me show you the better, yet equally broken option.
Option 2: De-spawn the players last vendor when they summon a new one.
I tried to do this but just like the last option, if Player1 summons a vendor in orgrimar and Player2 then summons a vendor in ironforge, Player1's vendor will de-spawn
So, My question is, how would I make it so the vendors will in effect 'bind' to the player without using MySQL/DB so that I could later de-spawn them?
Thanks in advance![]()