Hello, now im here with a question.
How can i do so a GameObject deletes after use?!?
I have a thought that this script will work but i dont know
(not good in Lua when it came to Objects)
Code:
function SM_Objectiv_onUse(Unit)
Unit:SpawnCreature(940808, 374.531311, -124.924187, 32.495598, 1.610082, 168, 60000)
end
function SM_Objectiv_delete(pGameObject, event, pMisc)
pMisc:Gameobjectdelete (950900)
end
RegisterGameObjectEvent (950900 ,4, "SM_Objectiv_onUse")
RegisterGameObjectEvent (950900 ,5, "SM_Objectiv_delete")
and here is the Sql of the Object.
Code:
INSERT INTO `gameobject_names` VALUES ('950900','10','210','Scarlet Hold Registry','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
Plox Help ^^