legolas23
New Member
- Joined
- Jan 8, 2009
- Messages
- 537
- Reaction score
- 3
This is script for vi bridge ,it works like this one on rookgar in rl tibia but instead of pacc it checks player for vip and tp somewhere if he hasn't. So there's no ability to pass without it
data/movements/scripts/vipbridge.lua
in movements.xml add
Rep++
data/movements/scripts/vipbridge.lua
Code:
function onStepIn(cid, item, position, fromPosition)
[B]local config = {
uniqueid = 1234, ---item unique id
vipstorage = 1234, ---- storage of vip player
kickpos = {x=1232, y=234, z=234, stackpos=1 } --- position where non vip player will be kicked
}[/B]
if(item.uid == config.uniqueid) then
if (getPlayerStorageValue(cid, config.vipstorage) == 0) then
doTeleportThing(cid, config.kickpos)
doCreatureSay(cid, "Only Vip players can pass here!, TALKTYPE_ORANGE_2, getCreaturePosition(cid))
else
doPlayerSendTextMessage(cid, 20, 'Hiho vip Player!')
end
return TRUE
end
in movements.xml add
Code:
<movevent type="StepIn" itemid="[B]UNIQUEID HERE[/B]" event="script" value="vipbridge.lua"/>
Rep++
Last edited: