• 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

This is suppose to Make a wall on server start up That will be able to be removed by another script But Nothing happends

this is the Other Script that will interact with it

Code:
function onUse(cid, item, frompos, item2, topos)
local id = 3364
local time = 2
local pos1 = {x = 1562, y = 1568, z = 7}
local pos2 = {x = 1561, y = 1568, z = 7}
local pos3 = {x = 1562, y = 1568, z = 7, stackpos = 1}
local pos4 = {x = 1561, y = 1568, z = 7, stackpos = 1}

if item.itemid == 1440 then 
        doCleanTile(pos3,false)
        doCleanTile(pos4,false)
	doPlayerSendTextMessage(cid,22,"The platform you are standing on shakes for a second.")
	addEvent(doCreateItem,time * 1000, id,1,pos1)
	addEvent(doCreateItem,time * 1000, id,1,pos2)
    end
    return true
end

If You Need To Ask Questions Just click The Live support and select department script in the Signature
 
Back
Top