Animera
* * * * *
Everytime i throw my server online there will be 4 npcs summoned on X, Y ,Z? ofcourse all the 4 npcs on differen coordination.
local npc = {
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}}
}
function onStartup()
for i = 1,#npc do
doCreateNpc(npc[i][1], npc[i][2], true)
end
return true
end
local npc = {
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}},
{"npcname",{x = xxx, y = yyy, z = z}}
}
function onStartup()
for i = 1,#npc do
[COLOR=red]doCreateNpc[/COLOR](npc[i][1], npc[i][2], true)
end
return true
end
You had doCreatureNpc XDCode:local npc = { {"npcname",{x = xxx, y = yyy, z = z}}, {"npcname",{x = xxx, y = yyy, z = z}}, {"npcname",{x = xxx, y = yyy, z = z}}, {"npcname",{x = xxx, y = yyy, z = z}} } function onStartup() for i = 1,#npc do [COLOR=red]doCreateNpc[/COLOR](npc[i][1], npc[i][2], true) end return true end