• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Is this possible and if it is could someone help me with it?

Animera

* * * * *
Joined
Dec 9, 2008
Messages
2,449
Solutions
5
Reaction score
618
Location
ANIMERARPG.ONLINE
Everytime i throw my server online there will be 4 npcs summoned on X, Y ,Z? ofcourse all the 4 npcs on differen coordination.
 
I work on OT since 7.5 and i always used simone until a few days ago.. Today i tried to add 4 npcs, i imported them put spawn and put the npc on the map and saved. and then replaced the old file to the new one with WinSCP to my hoster. Every map change i made worked except the npcs they aren't inside and i also put the npcs files on the server and also the server doesn't give any error.

How to fix this?


So i try it with a script.
 
there you go.

It's a Globalevent:
LUA:
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


kind regards, Evil Hero.
 
Last edited:
Code:
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 XD
 
Code:
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 XD

copied it out of the sources (comments) didn't noticed that the comment was wrong, thanks for telling me :p
 
Back
Top