Cm Himen
flesh,no-ip.org
for rook i need a premmy bridge like in reg tibia anyone can come across this or has one? that would be great
function onStepin(blah balh)
teleportpos = {x=111,y=111,z=1}
if isPlayer(cid) == 1 then
if isPremium(cid) == 0 then
doTeleportThing(cid,teleportpos)
end
end
end
function onStepIn(cid, item, position)
if item.actionid == ACTIONID then
if isPremium(cid) == 1 then
elseif
if isPremium(cid) == 0 then
if doTeleportThing(x=,y=,z= FALSE) then
doSendMagicEffect(cid, CONST_ME_POFF)
end
end
end
end
end
function onStepIn(cid, item, position, fromPosition)
teleportpos = {x=111,y=111,z=1}
if isPlayer(cid) == 1 then
if isPremium(cid) == 0 then
doTeleportThing(cid,teleportpos,FALSE)
doPlayerSendTextMessage(cid,'You must be premium to cross this bridge.',25)
end
end
end
Oke this is really fast made and not tested but try it out..
Code:function onStepIn(cid, item, position) if item.actionid == ACTIONID then if isPremium(cid) == 1 then elseif if isPremium(cid) == 0 then if doTeleportThing(x=,y=,z= FALSE) then doSendMagicEffect(cid, CONST_ME_POFF) end end end end end
function onStepIn(cid, item, position)
newPos = getCreaturePosition(cid).x + 2
if item.actionid == ACTIONID then
if isPremium(cid) == FALSE then
doTeleportThing(cid, newPos, 0)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
end
end
end
local nPos = {
x = 00,
y = 00,
z = 0
}
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if isPremium(cid) == FALSE then
doTeleportThing(cid, nPos)
end
end
return TRUE
end
<movevent event="StepIn" actionid="6180" script="pacc_pass1.lua" />
function onStepIn(cid, item, position, fromPosition)
if isPremium(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to Premium area!")
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need premium to enter this area.")
doSendMagicEffect(getPlayerPosition(cid), 9)
end
return TRUE
end
function onStepIn(cid, item, position, position)
if isPremium(cid) == TRUE then
local newposition = {x = position.x+3, y = position.y, z = position.z}
doTeleportThing(cid, newposition)
doSendMagicEffect(newposition, 12)
doCreatureSay(cid, "You need to have a Premium Account to enter this area.", TALKTYPE_ORANGE_2)
end
return TRUE
end