• 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!

MoveEvent Vip Bridge Script

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 :p



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:
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 :p



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++

This scrips is 100% bugged.
Lua:
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
}
Have to be:
Lua:
local config = {
uniqueid = 1234,  ---item unique id
vipstorage = 1234, ---- storage of vip player
kickpos = {x=1232, y=234, z=234} --- position where non vip player will be kicked
}
 
This scrips is 100% bugged.
Lua:
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
}
Have to be:
Lua:
local config = {
uniqueid = 1234,  ---item unique id
vipstorage = 1234, ---- storage of vip player
kickpos = {x=1232, y=234, z=234} --- position where non vip player will be kicked
}

It's not 100% ;d, it is only cfg :eek:
 
End.

function onstepin(cid, item, position, fromposition)

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
}

if(item.uid == config.uniqueid) then --this (if)
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
end--end needed for close (if) of line 9
return true
end
 
PHP:
function onStepIn(cid, item, position, fromPosition)
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
}

    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
	end
	return TRUE
end

:)
 
What i have to put the unique id?? were i get that?? help please!! im really new in this !! and how i make the bridge?? in what materials ??
 
Back
Top