Prince Of Light
New Member
- Joined
- Jan 3, 2010
- Messages
- 10
- Reaction score
- 0
When A Object Is Used By A Premmy Player It Teleports The Player To X Postion...
Why Dosent This Script Work?
actions\Action.XML :
actions\scripts\quests\pacctp.lua :
Why Dosent This Script Work?
actions\Action.XML :
Code:
<action actionid="2002" event="script" value="quests/pacctp.lua"/>
actions\scripts\quests\pacctp.lua :
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x=1019, y=860, z=7, stackpos = 1}
if item.aid == 2002 then
if isPremium(cid) == true then
doTeleportThing(cid, newPos)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
elseif isPremium(cid) == false then
doPlayerSendTextMessage(0, cid, 22, 'You Must Be Premmium To Use This Object!')
end
end
return true
end