• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

VIP System

imback1

Unknown member
Joined
Jul 11, 2013
Messages
785
Solutions
1
Reaction score
46
Hello
Is it possible to give me how to make VIP System because I do not know how? Thanks
Step By Step please ;)

The Forgotten Server,,version 0.3.6,,Tibia 8.60
 
thx i gone try it :P

[25/11/2014 15:51:48] > ERROR: Unable to load Actions!
and i did all what he said
 
Last edited by a moderator:
[25/11/2014 15:51:48] > ERROR: Unable to load Actions!
and i did all what he said
Most likely your not seeing the entire error.
Code:
  <!-- VipSystem (Credits StreamSide and Empty) --!>
<action actionid="5788" script="other/vip door.lua" />
<action itemid="XXXX" script="other/vip.lua"/>
Very first line of code is slightly incorrect.
Change
Code:
Empty) --!>
to this
Code:
Empty) -->
 
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.
Code:
<action actionid="5788" script="other/vip door.lua" />
Further down the same link is VIP msg appearance.
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 door
On Action Id Or another one?
btw i tried twice and there still not working >.< help me please

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" />
Where is it? lol on actions or movements?
 
Last edited by a moderator:
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 door
On Action Id Or another one?
btw i tried twice and there still not working >.< help me please
Map Editor -> Place Quest Door -> Right Click -> Set ActionID 5788 -> Save Map -> Rehost Server -> Profit
 
u 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"/>
 
u 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"/>
thx its working good ;)
 
Back
Top