Sir MoX
New Member
- Joined
- Jan 14, 2009
- Messages
- 285
- Reaction score
- 1
well In the first one is the premium bridge of rookgard but when a player NON premium pass says the same thing as it were premium "you are premium, pass" and the player pass why its that if he is NON premium:
and the second its for the lvl 2 way to the rookgard huntings but instead of let him go the player teleports 1 floor down:
please someone help me!
function onStepIn(cid, item, pos)
if item.actionid == 2000 and item.itemid == 446 then
if isPremium(cid) then
doPlayerSendTextMessage(cid,22,"You have premium, Pass.")
doTransformItem(item.uid, item.itemid+1)
else
cidd = getPlayerPosition(cid)
local pos = {x=1008, y=991, z=7, stackpos=1}
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,22,"Only Premium players are allowed to cross the bridge.")
end
end
end
function onStepOut(cid, item, pos)
if item.actionid == 2000 and item.itemid == 447 then
if isPremium(cid) then
doTransformItem(item.uid, item.itemid-1)
end
end
end
and the second its for the lvl 2 way to the rookgard huntings but instead of let him go the player teleports 1 floor down:
function onStepIn(cid, item, pos)
endpos = {x=1008, y=996, z=7}
level = getPlayerLevel(cid)
msg = "Only player level 2 may pass!"
if item.actionid == 9101 and level < 2 then
doTeleportThing(cid, endpos)
doSendMagicEffect(endpos, 14)
doPlayerSendTextMessage(cid, 22, msg)
end
if level >= 2 and item.itemid == 446 then
doTransformItem(item.uid, 445)
end
return 1
end
function onStepOut(cid, item, pos)
if level >= 2 and item.itemid == 445 then
doTransformItem(item.uid, 446)
end
end
please someone help me!