Fu Manchu
Sepultra™
- Joined
- Jan 28, 2011
- Messages
- 439
- Reaction score
- 9
I'm trying to do stuff by hand.. not sure what is missing here. Can any one help? thx..
Vipscroll.lua
I also tried
[lUA]local newPos = {x = 513, y = 810, z = 4}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 0 then
doPlayerSendCancel(cid, "Sorry you are not vip.")
return 0
else
doTeleportThing (cid, newPos)
end
return 1
end[/code]
Actions.xml
What Am i missing?
Vipscroll.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x = 513, y = 810, z = 4}
if getPlayerVipDays(cid) > 1 then
doTeleportThing (cid, newPos)
else
doPlayerSendCancel(cid, "Sorry you are not vip.")
end
return true
end
I also tried
[lUA]local newPos = {x = 513, y = 810, z = 4}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 0 then
doPlayerSendCancel(cid, "Sorry you are not vip.")
return 0
else
doTeleportThing (cid, newPos)
end
return 1
end[/code]
Actions.xml
XML:
<action itemid="2112" event="script" value="Vipscroll.lua"/>
What Am i missing?
Last edited: