Ir para conteúdo

Bug Perfect Sytem Vip


gabisaoo

Posts Recomendados

Ola meu servidor esta bugando algumas coisas: tipo qando acaba a vip do cara ele ainda consege entrar na area vip e por esse motivo o script de qando o vip acaba volta pro templo n esta funcionando coretamente (acho eu): scripts do meu servidor para vcs olharem

 

data/Talckactions/scripts/systemvip.lua:

 

 

 

function onSay(cid, words, param)
if(words == "!buyvip") then
local price = 1000000
if doPlayerRemoveMoney(cid, 1000000) == TRUE then
local days = 30
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, 13540)
local timenow = os.time()

if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, 13540, time)

local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.")
end

elseif(words == "!vipdays") then
local timenow = os.time()
local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.")

elseif(words == "/addvip") then
if getPlayerAccess(cid) == 5 then
local t = string.explode(param, ",")
if not t[2] then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")
end

local player = getPlayerByName(t[1])
local days = t[2]
if not isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.")
end

local daysvalue = days*3600*24
local storageplayer = getPlayerStorageValue(player, 13540)
local timenow = os.time()

local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue)

doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.")
setPlayerStorageValue(player, 13540, time)
local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24))
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.")
end

elseif(words == "/delvip") then
if getPlayerAccess(cid) == 5 then
local dec = MESSAGE_INFO_DESCR
if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end
local C,t = {},string.explode(param, ",")
C.pos = getPlayerPosition(cid)
C.uid = getCreatureByName(t[1])
C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia.
C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip.

if(getPlayerStorageValue(C.uid,13540) < C.time)then
doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.')
else
doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.')
setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time)
end
doSendMagicEffect(C.pos, math.random(28,30))
end
end

return TRUE
end

 

 

 

 

data/talkactions/talkactions.xml:

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
<!-- Gods -->
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

<!-- Community Managers -->
<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>
<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
<talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>
<talkaction log="yes" words="/ban" access="4" event="script" value="ban.lua"/>

<!-- Gamemasters -->
<talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
<talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
<talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
<talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

<!-- Tutors -->
<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

<!-- Players -->
<talkaction words="!vipdays;!buyvip;/checkvip;/addvip;/delvip" script="systemvip.lua"/>
<talkaction words="!frags" event="script" value="frags.lua"/>
<talkaction words="!online" event="script" value="online.lua"/>
<talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!pvp" event="script" value="pvp.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
<talkaction words="!commands" event="script" value="commands.lua"/>
<talkaction words="!spells" script="spellsinfo.lua"/>
<talkaction words="!vipinfo" script="vipinfo.lua"/>

<!-- Houses -->
<talkaction words="!leavehouse" script="leavehouse.lua"/>
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

<!-- Guilds -->
<talkaction words="!createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild" event="function" value="guildJoin"/>

<!-- (Deprecated) Redirect old '/' to '!' -->
<talkaction words="!online" hide="yes" event="script" value="online.lua"/>
<talkaction words="!uptime" hide="yes" event="script" value="uptime.lua"/>
<talkaction words="!masskick" hide="yes" event="script" value="deathlist.lua"/>
<talkaction words="!pvp" hide="yes" event="script" value="pvp.lua"/>
<talkaction words="!serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>

<!-- Custom systems -->
<talkaction words="!notice" event="script" value="notice.lua"/>
<talkaction words="!rank" script="ranks.lua"/>	
<talkaction words="!service" event="script" value="Fragas.lua"/>
<talkaction words="!jail" script="Cadeia.lua"/>
<talkaction words="!unjail" script="Cadeia.lua"/>
<talkaction words="/jail" script="Cadeia.lua"/>
<talkaction words="/unjail" script="Cadeia.lua"/>
<talkaction words="!necromancer" script="demonic.lua"/>
<talkaction words="!nightmare" script="love.lua"/>

<talkaction filter="word" words="/guild" script="guildcast.lua"/>
<talkaction words="!afk" event="script" value="afk.lua"/>
<!-- custon By Revange -->
<!-- pollsystem talkactions -->
   <talkaction words="!createpoll" event="script" value="PollSystem.lua"/>
   <talkaction words="!activatepoll" event="script" value="PollSystem.lua"/>
   <talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/>
   <talkaction words="!seepoll" event="script" value="PollSystem.lua"/>
   <talkaction words="!seeresults" event="script" value="PollSystem.lua"/>
   <talkaction words="!remvotes" event="script" value="PollSystem.lua"/>
   <talkaction words="!rempoll" event="script" value="PollSystem.lua"/>
   <talkaction words="!votepoll" event="script" value="PollSystem.lua"/>

<talkaction words="love" script="love.lua"/>

<talkaction words="!guildwar" event="script" value="attackguild.lua"/>
</talkactions>

 

 

 

 

data/creaturescripts/creaturescripts.xml:

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>

<event type="combat" name="CombatVoc" event="script" value="noatk.lua"/>
        <event type="login" name="ExpVip" script="vipexp.lua"/>
<event type="login" name="checkvip" script="endvip.lua"/>

<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>

<event type="think" name="Idle" event="script" value="idle.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>
<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

<event type="PrepareDeath" name="pvparena" script="pvparena.lua"/>
<event type="advance" name="advance" script="advance.lua"/>
<event type="attack" name="attackguild" script="attackguild.lua"/>
<event type="death" name="incendio" script="incendioMonster.lua"/>
   </creaturescripts>

 

 

 

 

data/craturescripts/scripts/expvip.lua:

 

 

 

function onLogin(cid) 

local rate = 2.0 -- 50% 
local config = { 
welvip = "você tem "..((rate - 1)*100).."% de exp a mais agora!", 
not_vip = "Tornesse vip e ganhe "..((rate - 1)*100).."% a mais de experiencia!", 
s = 13540, -- storage vip 
} 

if getPlayerStorageValue(cid, config.s) - os.time() >= 1 then 
doPlayerSetExperienceRate(cid, rate) 
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welvip) 
else 
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_vip) 
end 
return TRUE 
end

 

 

 

 

 

data/creaturescripts/scripts/endvip.lua:

 

 

 

function onLogin(cid) 

if getPlayerStorageValue(cid, 13540) - os.time() > 0 then 
setPlayerStorageValue(cid, 9898, 1) 
end 

-- se quiser pode adicionar mais vocações 

local pos = { 
[1]= {x = 160, y= 54, z= 7}, -- sorcerer 
[2]= {x = 162, y= 54, z= 7}, -- druid 
[3]= {x = 164, y= 54, z= 7}, -- paladin 
[4]= {x = 168, y= 54, z= 7}, -- knight 
[5]= {x = 148, y= 54, z= 7}, -- master sorcerer 
[6]= {x = 158, y= 54, z= 7}, -- elder druid 
[7]= {x = 178, y= 54, z= 7}, -- royal paladin 
[8]= {x = 188, y= 54, z= 7}, -- elite knight 
[9]= {x = 198, y= 54, z= 7}, -- epic master sorcerer 
[10]= {x = 165, y= 54, z= 7}, -- epic royal paladin 
[12]= {x = 169, y= 54, z= 7} -- epic elite knight 
} 


if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then 
doTeleportThing(cid ,pos[getPlayerVocation(cid)]) 
doPlayerPopupFYI(cid, "Sua vip Account acabou.") 
setPlayerStorageValue(cid, 9898, -1) 
end 
return TRUE 
end

 

 

 

Ae galera postei ai tudo que tinha no meu servidor relacionado a vip deem uma olhada e veem se tem alguma coisa em conflito ou alguma coisa errada e postem ai as soluções.Obrigado a todos q responderem.

Editado por gabisaoo
Link para o comentário
Compartilhar em outros sites

data/movements/movements.xml:

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<movements>

<!-- Decaying tiles -->

<movevent type="StepIn" itemid="293" event="script" value="decay.lua"/>

<movevent type="StepIn" itemid="461" event="script" value="decay.lua"/>

<movevent event="StepIn" actionid="13540" script="vip.lua" />

<!-- Swimming -->

<movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/>

<movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/>

 

<!-- Underwater drown -->

<movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/>

<movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/>

 

<!-- (Depot & Level) tiles -->

<movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/>

<movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/>

<movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/>

<movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/>

<movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/>

<movevent type="StepIn" itemid="10551" event="script" value="tiles.lua"/>

<movevent type="StepOut" itemid="10552" event="script" value="tiles.lua"/>

<!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> -->

 

<!-- Traps -->

<movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/>

<movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/>

<movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/>

<movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/>

<movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/>

<movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/>

 

<!-- Citizen teleport -->

<movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>

 

<!-- Walkback when walking on quest chest -->

<movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/>

<movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/>

 

<!-- (Level & quest) doors -->

<movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10783" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10785" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10792" event="script" value="closingdoor.lua"/>

<movevent type="StepOut" itemid="10794" event="script" value="closingdoor.lua"/>

<movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10783" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10785" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10792" event="script" value="walkback.lua"/>

<movevent type="StepIn" itemid="10794" event="script" value="walkback.lua"/>

 

<!-- Snow footprint tiles -->

<movevent type="StepIn" itemid="670" event="script" value="snow.lua"/>

<movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/>

 

<!-- Create bread movements -->

<movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/>

<movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/>

<movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/>

<movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/>

 

<!-- Campfires -->

<movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1423" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1424" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1425" event="function" value="onAddField"/>

 

<!-- Fields -->

<movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1487" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1488" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1489" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1490" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1491" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1492" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1493" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1494" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1495" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1496" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1497" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1498" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1499" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1500" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1501" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1502" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1503" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1504" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1505" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1506" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1507" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="1508" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="7359" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="7360" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="11094" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="11094" event="function" value="onAddField"/>

<movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/>

<movevent type="AddItem" itemid="11095" event="function" value="onAddField"/>

 

<!-- Boots -->

<movevent type="Equip" itemid="2195" slot="feet" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2195" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="6132" slot="feet" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="6132" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2640" slot="feet" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2640" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7886" slot="feet" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7886" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7892" slot="feet" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7892" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7891" slot="feet" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7891" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7893" slot="feet" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7893" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="9932" slot="feet" level="130" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="9932" slot="feet" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="9933" slot="feet" level="130" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="9933" slot="feet" event="function" value="onDeEquipItem"/>

 

<!-- Amulets -->

<movevent type="Equip" itemid="2161" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2161" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2170" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2170" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2172" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2172" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2197" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2197" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2198" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2198" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2199" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2199" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2200" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2200" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2201" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2201" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2173" slot="necklace" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2173" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7887" slot="necklace" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7887" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7888" slot="necklace" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7888" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7889" slot="necklace" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7889" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7890" slot="necklace" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7890" slot="necklace" event="function" value="onDeEquipItem"/>

<movevent type="Equip" fromid="10018" toid="10021" slot="necklace" level="80" event="function" value="onEquipItem"/>

<movevent type="DeEquip" fromid="10018" toid="10021" slot="necklace" event="function" value="onDeEquipItem"/>

 

<!-- Rings -->

<movevent type="Equip" itemid="2164" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2164" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2165" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2202" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2202" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2166" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2203" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2203" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2167" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2204" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2204" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2168" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2205" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2205" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2169" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2206" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2206" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2207" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2210" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2210" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2208" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2211" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2211" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2209" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2212" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2212" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2213" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2215" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2215" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2214" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="2216" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2216" slot="ring" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="6300" slot="ring" event="function" value="onEquipItem"/>

<movevent type="Equip" itemid="6301" slot="ring" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="6301" slot="ring" event="function" value="onDeEquipItem"/>

 

<!-- Helmets -->

<movevent type="Equip" itemid="5461" slot="head" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="5461" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2474" slot="head" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2474" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2343" slot="head" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2343" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2323" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2323" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7900" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7900" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7901" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7901" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7902" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7902" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7903" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7903" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8820" slot="head" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8820" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="9778" slot="head" level="80" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="9778" slot="head" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="10016" slot="head" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="10016" slot="head" event="function" value="onDeEquipItem"/>

 

<!-- Armors -->

<movevent type="DeEquip" itemid="2505" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2505" slot="armor" level="130" event="function" value="onEquipItem">

<vocation id="2"/>

<vocation id="5" showInDescription="0"/>

<vocation id="1"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2503" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2503" slot="armor" level="130" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="Equip" itemid="2472" slot="armor" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2472" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2487" slot="armor" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2487" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2492" slot="armor" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2492" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2466" slot="armor" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2466" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2476" slot="armor" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2476" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2500" slot="armor" level="60" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2500" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2660" slot="armor" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2660" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7884" slot="armor" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7884" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7897" slot="armor" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7897" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7898" slot="armor" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7898" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7899" slot="armor" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7899" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8819" slot="armor" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8819" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8821" slot="armor" level="50" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="8821" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8865" slot="armor" level="65" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8865" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8866" slot="armor" event="function" value="onEquipItem">

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8866" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8867" slot="armor" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8867" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8868" slot="armor" level="75" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8868" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8869" slot="armor" level="75" event="function" value="onEquipItem">

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8869" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8870" slot="armor" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8870" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8871" slot="armor" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8871" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8872" slot="armor" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8872" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8877" slot="armor" level="60" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8877" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8878" slot="armor" level="60" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8878" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8879" slot="armor" level="60" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8879" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8880" slot="armor" level="130" event="function" value="onEquipItem">

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8880" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8881" slot="armor" level="90" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8881" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8882" slot="armor" level="90" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8882" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8883" slot="armor" level="90" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8883" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8884" slot="armor" level="90" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8884" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8885" slot="armor" level="75" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8885" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8886" slot="armor" level="75" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8886" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8887" slot="armor" level="75" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8887" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8888" slot="armor" level="100" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8888" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8889" slot="armor" level="100" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8889" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8890" slot="armor" level="100" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8890" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8891" slot="armor" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8891" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8892" slot="armor" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8892" slot="armor" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="9776" slot="armor" level="80" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="9776" slot="armor" event="function" value="onDeEquipItem"/>

 

<!-- Legs -->

<movevent type="Equip" itemid="2477" slot="legs" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2477" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2488" slot="legs" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2488" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2470" slot="legs" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="2470" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="2504" slot="legs" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="2504" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7885" slot="legs" level="40" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7885" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7894" slot="legs" level="40" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7894" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7895" slot="legs" level="40" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7895" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="7896" slot="legs" level="40" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="7896" slot="legs" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="9777" slot="legs" level="80" event="function" value="onEquipItem">

<vocation id="3"/>

<vocation id="7" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="9777" slot="legs" event="function" value="onDeEquipItem"/>

 

<!-- Shields -->

<movevent type="Equip" fromid="8905" toid="8909" slot="shield" level="100" event="function" value="onEquipItem">

<vocation id="4"/>

<vocation id="8" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" fromid="8905" toid="8909" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8900" slot="shield" level="30" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8900" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8901" slot="shield" level="40" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8901" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8902" slot="shield" level="50" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8902" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8904" slot="shield" level="70" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8904" slot="shield" event="function" value="onDeEquipItem"/>

<movevent type="Equip" itemid="8918" slot="shield" level="80" event="function" value="onEquipItem">

<vocation id="1"/>

<vocation id="5" showInDescription="0"/>

<vocation id="2"/>

<vocation id="6" showInDescription="0"/>

</movevent>

<movevent type="DeEquip" itemid="8918" slot="shield" event="function" value="onDeEquipItem"/>

 

<!-- Other -->

<movevent type="Equip" itemid="9956" slot="pickupable" event="function" value="onEquipItem"/>

<movevent type="DeEquip" itemid="9956" slot="pickupable" event="function" value="onDeEquipItem"/>

<movevent event="StepIn" actionid="29000" script="vipsystem.lua"/>

<movevent type="StepIn" actionid="13700" event="script" value="vipe.lua"/>

<movevent type="StepIn" itemid="473" event="script" value="vipsys.lua"/>

<movevent type="StepIn" itemid="472" event="script" value="vipsys2.lua"/>

<movevent type="StepIn" itemid="9194" event="script" value="piso_doidao3.lua"/>

 

</movements>

 

 

Editado por gabisaoo
Link para o comentário
Compartilhar em outros sites

n sabia qal dos dois era puis os dois

 

 

data/movements/scripts/vip.lua:

 

 

 

function onStepIn(cid, item, pos)

 

 

 

-- teleports config

teleport1 ={x=154, y=46, z=7}

 

 

 

if isPlayer(cid) then

 

if item.actionid == 13540 then

 

vip = getPlayerStorageValue(cid,13540)

if vip == -1 then

doPlayerSendCancel(cid,"Esta área é exclusiva para players vips.")

 

 

doTeleportThing(cid,teleport1)

 

 

else

 

end

 

end

 

end

 

end

 

 

 

 

 

data/movements/scripts/vipe.lua:

 

 

 

function onStepIn(cid, item, position, fromPosition)

 

local tileConfig = {

kickPos = fromPosition,

kickEffect = CONST_ME_POFF,

kickMsg = "You need to be a vip to access this area.",

enterMsg = "Welcome to vip area. Enjoy!",

enterEffect = CONST_ME_MAGIC_BLUE,

vipStorage = 13540,

}

 

if(getPlayerStorageValue(cid, tileConfig.vipStorage) <= 0) then

doTeleportThing(cid, tileConfig.kickPos)

doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)

doPlayerSendCancel(cid, tileConfig.kickMsg)

return

end

 

doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg)

doSendMagicEffect(position, tileConfig.enterEffect)

return true

end

 

 

Editado por gabisaoo
Link para o comentário
Compartilhar em outros sites

primeira coisa que você faz é remover esses 2 script /\.

 

feito isso use este:

 

vá até movements/scripts crie um arquivo.lua e renomeie para vipe.lua

dentro coloque:

-- Script Vip Sytem 1.0 --
function onStepIn(cid, item, position, fromPosition)

local config = {
msgDenied = "Você não e vip ,fale com Administrador do Server.",
msgWelcome = "Seja Bem Vindo a Area vip."
}

if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return TRUE
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
return TRUE
end

 

 

Em movements.xml adicione a tag:

 

<movevent type="StepIn" uniqueid="13700" event="script" value="vipe.lua"/>

 

 

 

Ah e no data/Talkactions/scripts/systemvip.lua substitua por essa:

 

 

-- Script SYtem vip 1.0 --

function onSay(cid, words, param)
if(words == "!buyvip") then
local price = 1000000
if doPlayerRemoveMoney(cid, price) == TRUE then
local days = 30
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, 13540)
local timenow = os.time()

if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, 13540, time)

local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.")
end

elseif(words == "!vipdays") then
local timenow = os.time()
local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.")

elseif(words == "/checkvip") then
if getPlayerAccess(cid) == 5 then
if not param then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")
end

local player = getPlayerByName(param)
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

local timenow = os.time()

local quantity = math.floor((getPlayerStorageValue(player, 13540) - timenow)/(24 * 60 * 60))
doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") 
return TRUE
end

elseif(words == "/addvip") then
if getPlayerAccess(cid) == 5 then
local t = string.explode(param, ",")
if not t[2] then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")
end

local player = getPlayerByName(t[1])
local days = t[2]
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

local daysvalue = days*3600*24
local storageplayer = getPlayerStorageValue(player, 13540)
local timenow = os.time()

local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue)

doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.")
setPlayerStorageValue(player, 13540, time)
local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24))
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.")
end

elseif(words == "/delvip") then
if getPlayerAccess(cid) == 5 then 
local dec = MESSAGE_INFO_DESCR
if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end
local C,t = {},string.explode(param, ",")
C.pos = getPlayerPosition(cid)
C.uid = getCreatureByName(t[1])
C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia.
C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip.
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.")
return TRUE
end

if(getPlayerStorageValue(C.uid,13540) < C.time)then
doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.')
else
doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.')
setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time)
end
doSendMagicEffect(C.pos, math.random(28,30)) 
end
end

return TRUE
end

 

 

Link para o comentário
Compartilhar em outros sites

vo test jaja posto o resultado

 

ai cara o problema ta sendo o siginte eu crio um novo char ele n entra na area vip dai eu compro o vip dai ele entra na area vip normalmente mas qando eu entro com o gm e retiro o o vip do char ele ainda consege entra na area vip e eu ja confiri entrei com a char e olhei o vipdays e estava 0 mas mesmo assim ele entra na area vip, cara tenta faze assim ai na sua casa,

cria um char da vip pra ele ai entra com o gm e tira o vip dele e ele aidna consigira entrar na area vip

 

Obs: n tem algum outro geito de retirar totalmente o vip do player?(talvez seria um solução, só uma ideia sei la)

Editado por gabisaoo
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...