• 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!

Server Start Up Wall Create Need Help

Blackcody

RiseOfTibia Owner
Joined
Aug 31, 2008
Messages
136
Reaction score
1
Code:
function onStartup(cid, item, frompos, item2, topos)
doPlayerSendTextMessage(cid, 22, "Welcome back "..getPlayerName(cid).."!")
local id = 3364
local pos1 = {x = 1562, y = 1568, z = 7}
local pos2 = {x = 1561, y = 1568, z = 7}

addEvent(doCreateItem, id,1,pos1)
addEvent(doCreateItem, id,1,pos2)then
doPlayerSendTextMessage(cid, 22, "Welcome back "..getPlayerName(cid).."!")
	return true
end
 
Last edited:
Code:
function onStartup(cid, item, frompos, item2, topos)
doPlayerSendTextMessage(cid, 22, "Welcome back "..getPlayerName(cid).."!")
local id = 3364
local pos1 = {x = 1562, y = 1568, z = 7}
local pos2 = {x = 1561, y = 1568, z = 7}

addEvent(doCreateItem, id,1,pos1)
addEvent(doCreateItem, id,1,pos2)then
doPlayerSendTextMessage(cid, 22, "Welcome back "..getPlayerName(cid).."!")
	return true
end

onStart? With variables "cid, item, frompos, item2, topos"?!

Code:
local id = 3364
local pos = {
	[1] = {x = 1562, y = 1568, z = 7},
	[2] = {x = 1561, y = 1568, z = 7}
}

function onStartup()
	doCreateItem(id, 1, pos[1])
	doCreateItem(id, 1, pos[2])
	return true
end
 
Back
Top