Most likely your not seeing the entire error.[25/11/2014 15:51:48] > ERROR: Unable to load Actions!
and i did all what he said
<!-- VipSystem (Credits StreamSide and Empty) --!>
<action actionid="5788" script="other/vip door.lua" />
<action itemid="XXXX" script="other/vip.lua"/>
Empty) --!>
Empty) -->
function onStepIn(cid, item, pos, fromPos)
if getPlayerVipDays(cid) >= 1 then doSendMagicEffect(pos, CONST_ME_TELEPORT)
doTeleportThing(cid, {x=661, y=2351, z=6})
doSendMagicEffect({x=661, y=2351, z=6}, CONST_ME_TELEPORT)
else
doTeleportThing(cid, {x=1000, y=1000, z=7})
doSendMagicEffect({x=1000, y=1000, z=7}, CONST_ME_TELEPORT)
doPlayerSendCancel(cid,'You ain\'t a vip player!')
end
end
function onAddItem(moveitem, tileitem, position)
if hasProperty(moveitem.uid, CONST_PROP_BLOCKSOLID) then
doRemoveItem(moveitem.uid)
else
doTeleportThing(moveitem.uid, {x=1000, y=1000, z=7})
doSendMagicEffect({x=1000, y=1000, z=7}, CONST_ME_TELEPORT)
end
end
<movevent type="StepIn" actionid="9007" event="script" value="viptp.lua" />
sorry i couldn't do it on map editor may you make it for me step by step? i mean where can i write ID of vip doorMap editor.
Further down the same link is VIP msg appearance.Code:<action actionid="5788" script="other/vip door.lua" />
Where is it? lol on actions or movements?Code:function onStepIn(cid, item, pos, fromPos) if getPlayerVipDays(cid) >= 1 then doSendMagicEffect(pos, CONST_ME_TELEPORT) doTeleportThing(cid, {x=661, y=2351, z=6}) doSendMagicEffect({x=661, y=2351, z=6}, CONST_ME_TELEPORT) else doTeleportThing(cid, {x=1000, y=1000, z=7}) doSendMagicEffect({x=1000, y=1000, z=7}, CONST_ME_TELEPORT) doPlayerSendCancel(cid,'You ain\'t a vip player!') end end function onAddItem(moveitem, tileitem, position) if hasProperty(moveitem.uid, CONST_PROP_BLOCKSOLID) then doRemoveItem(moveitem.uid) else doTeleportThing(moveitem.uid, {x=1000, y=1000, z=7}) doSendMagicEffect({x=1000, y=1000, z=7}, CONST_ME_TELEPORT) end end
Code:<movevent type="StepIn" actionid="9007" event="script" value="viptp.lua" />
Map Editor -> Place Quest Door -> Right Click -> Set ActionID 5788 -> Save Map -> Rehost Server -> Profitsorry i couldn't do it on map editor may you make it for me step by step? i mean where can i write ID of vip door
On Action Id Or another one?
btw i tried twice and there still not working >.< help me please
in movement lolWhere is it? lol on actions or movements?
is it teleport vip? or... VIP appearance on the player? lol cuz i found x/z/y and i think this for spots not for player and i need it for appearance on playerin movement lol
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerStorageValue(cid, 11551) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 27)
doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
end
end
return true
end
<globalevent name="Vip" interval="5" script="Vipeffect.lua"/>
thx its working goodu need Vip appear on player per 5 second ?
Code:function onThink(interval, lastExecution) for _, name in ipairs(getOnlinePlayers()) do local cid = getPlayerByName(name) if getPlayerStorageValue(cid, 11551) >= 1 then doSendMagicEffect(getPlayerPosition(cid), 27) doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED) end end return true end
Code:<globalevent name="Vip" interval="5" script="Vipeffect.lua"/>