Jump to content

Perfect Vip System 3.0


Recommended Posts

Perfect Vip system 3.0

 

Última atualização: 14/08/12

 

 

Versão Testada:TFS 0.3.6 - 8.54 - 8.6 - 9.6

Créditos pelas modificações: Kydrai,Vodkart e Marcryzius

 

 

Oque Contém no Sistema vip 3.0?

 

-- Sistema de vip feita por Charcter e não pela account

-- Compra Vip pela talkaction (Comando !buyvip )

-- Tile para somente Players Vip passarem

-- verifica quantos dias de Vip o character ainda possui.

-- Administradores(GOD) podem adicionar e remover dias de Vip para characters.

-- Administradores(GOD) podem checkar dias de Vip dos Players.

-- Agora é feita pela DB

 

 

setas_menores.jpgComandos:

 

 

!buyvip -- compra "X" números de dias por "Y" preço.

 

 

!vipdays -- retorna quanto dias de vip o character Possui

 

 

/checkvip Nick -- retorna os dias de vip restante do jogador

 

 

/addvip Nick,days -- adiciona uma quantia pré definida para o jogador

 

 

/delvip Nick,days -- remove certos dias de vip do character de um jogador

 

 

 

setas_menores.jpgQuery

 

Primeiro passado execute essa query na sua DB:

 

ALTER TABLE `players` ADD `vipacess` INT(15) NOT NULL DEFAULT 0;

 

 

Agora vá em Data/lib/050-function e adicione essas funções:

 

function getCharacterAcess(cid)
local query = db.getResult("SELECT `vipacess` FROM `players` WHERE `id` = "..getPlayerGUID(cid))
if query:getID() ~= -1 then return query:getDataInt("vipacess") end
end
function getCharacterDays(cid)
local acess = math.ceil((getCharacterAcess(cid) - os.time())/(86400))
return acess <= 0 and 0 or acess
end
function HaveCharaterAcess(cid)
return getCharacterDays(cid) > 0 and true or false
end
function setAcessTime(cid, time)
return db.executeQuery("UPDATE `players` SET `vipacess` = "..time.." WHERE `id` = "..getPlayerGUID(cid))
end
function addCharacterAcess(cid, days)
local add = (days <= 0 and 1 or days)*86400
local time = getCharacterDays(cid) == 0 and (os.time() + add) or (getCharacterAcess(cid) + add)
return setAcessTime(cid, time)
end
function doRemoveCharacterAcess(cid, days)
local remove = days*86400
local time = getCharacterAcess(cid) - remove
return setAcessTime(cid, (time <= 0 and 1 or time))
end
function getVipAcessDate(cid)
if HaveCharaterAcess(cid) then return os.date("%d/%m/%y %X", getCharacterAcess(cid)) end
return false
end

 

 

 

 

setas_menores.jpgTalkactions

 

agora em talkactions/scripts

 

 

vipsystemplayer.lua

function onSay(cid, words, param)  
if(words == "!buyvip") then
local days = 10
local price = 50000  
if not doPlayerRemoveMoney(cid, price) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.") return true
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.")  
addCharacterAcess(cid, days)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem "..getCharacterDays(cid).." dias de VIP, ela acaba em "..getVipAcessDate(cid))     
elseif(words == "!vipdays") then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem "..getCharacterDays(cid).." dias de VIP. "..(getCharacterDays(cid) > 0 and "ela acaba em "..getVipAcessDate(cid).."." or ""))  
end
return true
end

 

vipsystemgod.lua

function onSay(cid, words, param)  
if(words == "/checkvip") then  
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true
end
local player = getPlayerByName(param)  
if not isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") return true
end
return doPlayerPopupFYI(cid, "O jogador tem "..getCharacterDays(player).." dias de VIP no character.")  
elseif(words == "/addvip") then  
local t = string.explode(param, ",")  
if not tonumber(t[2]) then  
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true
end  
	local player = getPlayerByNameWildcard(t[1])
	if(not player)then
			return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.")
	end
addCharacterAcess(player, tonumber(t[2]))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você adicionou "..tonumber(t[2]).." dias de VIP no player "..getCreatureName(player))	
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..tonumber(t[2]).." dias de VIP no seu character.")	
elseif(words == "/delvip") then
local t = string.explode(param, ",")  
if not tonumber(t[2]) then  
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true
end  
	local player = getPlayerByNameWildcard(t[1])
	if(not player)then
			return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.")
	end
doRemoveCharacterAcess(player, tonumber(t[2]))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você removeu "..tonumber(t[2]).." dias de VIP do jogador "..getCreatureName(player)..".")  
end
return true
end

 

 

em talkactions.xml adicione as tags:

 

<talkaction words="!buyvip;!vipdays" event="script" value="vipsystemplayer.lua"/>
<talkaction words="/addvip;/delvip;/checkvip" access="4" event="script" value="vipsystemgod.lua"/>

 

 

setas_menores.jpgItem Vip

 

item que adiciona vip no character

 

actions/script

 

addvipdays.lua

function onUse(cid, item, fromPosition, itemEx, toPosition)
local days = 15
addCharacterAcess(cid, (days <= 0 and 1 or days))
doRemoveItem(item.uid,1)
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem "..getCharacterDays(cid).." dias de VIP, ela acaba em "..getVipAcessDate(cid))
end

 

Actions.xml

<action itemid="ID DO SEU ITEM" script="addvipdays.lua"/>

 

 

setas_menores.jpgVip Door

 

actions/script

 

perfectvipdoor.lua

function onUse(cid, item, frompos, item2, topos)
if not HaveCharaterAcess(cid) then
return doPlayerSendTextMessage(cid,22,"Você precisa ser vip para passar aqui.")
end
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, topos, true)
return true
end

 

actions.xml

<action actionid="7779" script="perfectvipdoor.lua"/>

 

 

 

setas_menores.jpg Tile VIP

 

 

em movements/scripts crie um arquivo.lua e renomeie para

 

 

vipe.lua

function onStepIn(cid, item, position, fromPosition)
if item.actionid == 13700 and not HaveCharaterAcess(cid) then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"você não é vip.")
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return true
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"bem vindo.")
return true
end

 

 

Em movements.xml adicione a tag:

 

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

 

 

 

no seu piso coloque ACTIONID 13700

 

 

 

setas_menores.jpgFim Vip

 

em creaturescript/script

 

 

endvip.lua

function onLogin(cid)
if getCharacterDays(cid) > 0 then
setPlayerStorageValue(cid, 9898, 1)
elseif getPlayerStorageValue(cid, 9898) == 1 and getCharacterDays(cid) <= 0 then
doPlayerSetTown(cid, 1)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 9898, -1)
end
return true
end

 

em creaturescript.xml adicione a tag:

 

<event type="login" name="CheckVip" script="endvip.lua"/>

Edited by Vodkart
Link to comment
Share on other sites

Opa, vê se você consegue me ajudar. Eu estou usando um sistema que adiciona vip pelo site. E como você comentou desse os.time() eu gostaria de saber se time() é a mesma coisa que os.time(). Porque eu configuro com os.time() e ele não retorna nenhum valor, já quando coloco apenas time() ele retonar um valor numérico grande.

 

Obrigado.

 

 

-----------------

EDIT:

 

Já resolvi o meu problema =)

Obrigado navamente!

Edited by GODHalf
Link to comment
Share on other sites

Aii MaN me dá um help aii :worriedsmiley:

 

OLha onde adiciono essa parte ?

 

em talkactions.xml adicione a tag:

 

<talkaction words="!vipdays;/addvip;/delvip" script="systemvip.lua"/>

 

Talkaction

 

 

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

<talkactions>

 

<talkaction log="yes" words="!rain" access="5" event="script" value="rain.lua"/>

 

<!-- 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"/>

<talkaction log="yes" words="/info" access="5" event="script" value="allinfo.lua"/>

<talkaction log="yes" words="/jail" access="3" event="script" value="Cadeia.lua"/>

<talkaction log="yes" words="/unjail" access="3" event="script" value="Cadeia.lua"/>

<talkaction log="yes" words="/change" access="5" event="script" value="change.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"/>

 

<!-- 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="/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="!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="!notice" event="script" value="notice.lua"/>

<talkaction words="!go" event="script" value="guildoutfit.lua"/>

<talkaction words="!rank" event="script" value="ranks.lua"/>

<talkaction words="/rank" event="script" value="ranks.lua"/>

<talkaction words="!bless" event="script" value="bless.lua"/>

 

<!-- Houses -->

<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"/>

<talkaction words="!leavehouse" 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="/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"/>

<talkaction words="!afk" event="script" value="afk.lua"/>

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

<talkaction words="!infogame" script="getonline.lua" />

<talkaction words="!exp" script="expcalculator.lua" />

 

<!-- Animed -->

<talkaction words="GM" hide="yes" event="script" value="gm.lua"/>

 

<!--<talkaction words="Gm" hide="yes" event="script" value="gm2.lua"/>

<talkaction words="gM" hide="yes" event="script" value="gm3.lua"/>

<talkaction words="gm" hide="yes" event="script" value="gm4.lua"/>-->

 

<talkaction words="GOD" hide="yes" event="script" value="god.lua"/>

 

<!-- <talkaction words="God" hide="yes" event="script" value="god2.lua"/>

<talkaction words="GOd" hide="yes" event="script" value="god3.lua"/>

<talkaction words="gOD" hide="yes" event="script" value="god4.lua"/>

<talkaction words="god" hide="yes" event="script" value="god5.lua"/>

<talkaction words="gOd" hide="yes" event="script" value="god6.lua"/>

<talkaction words="goD" hide="yes" event="script" value="god7.lua"/>-->

 

<talkaction words="LOL" hide="yes" event="script" value="lol.lua"/>

<talkaction words="lol" hide="yes" event="script" value="lol2.lua"/>

<talkaction words="Lol" hide="yes" event="script" value="lol3.lua"/>

<talkaction words="loL" hide="yes" event="script" value="lol4.lua"/>

<talkaction words="LoL" hide="yes" event="script" value="lol5.lua"/>

<talkaction words="lOl" hide="yes" event="script" value="lol6.lua"/>

<talkaction words="lOL" hide="yes" event="script" value="lol7.lua"/>

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

<talkaction words="NOOB" hide="yes" event="script" value="noob.lua"/>

<talkaction words="Noob" hide="yes" event="script" value="noob3.lua"/>

<talkaction words="NOob" hide="yes" event="script" value="noob4.lua"/>

<talkaction words="NOOb" hide="yes" event="script" value="noob5.lua"/>

<talkaction words="nooB" hide="yes" event="script" value="noob6.lua"/>

<talkaction words="noOB" hide="yes" event="script" value="noob7.lua"/>

<talkaction words="nOOB" hide="yes" event="script" value="noob8.lua"/>

<talkaction words="NoOB" hide="yes" event="script" value="noob9.lua"/>

<talkaction words="NOoB" hide="yes" event="script" value="noob10.lua"/>

<talkaction words="NooB" hide="yes" event="script" value="noob11.lua"/>

<talkaction words="NoOb" hide="yes" event="script" value="noob12.lua"/>

<talkaction words="nOoB" hide="yes" event="script" value="noob13.lua"/>

<talkaction words="noob" hide="yes" event="script" value="noob14.lua"/>

<talkaction words="AFF" hide="yes" event="script" value="aff.lua"/>

<talkaction words="AFf" hide="yes" event="script" value="aff2.lua"/>

<talkaction words="Aff" hide="yes" event="script" value="aff3.lua"/>

<talkaction words="afF" hide="yes" event="script" value="aff4.lua"/>

<talkaction words="AfF" hide="yes" event="script" value="aff5.lua"/>

<talkaction words="aFF" hide="yes" event="script" value="aff6.lua"/>

<talkaction words="aff" hide="yes" event="script" value="aff7.lua"/>

</talkactions>

 

 

 

:up:

Link to comment
Share on other sites

KaLListo0,

 

bote em talkactions.

 

Cara eu sei que é pra por em talkactions mais eu coloquei a minha Talkactions.xml ali em spoilier ja pra me falarem em que lugar da talkactions eu tenho que por

caso você não tenha percebido

 

 

 

 

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

<talkactions>

 

<talkaction log="yes" words="!rain" access="5" event="script" value="rain.lua"/>

 

<!-- 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"/>

<talkaction log="yes" words="/info" access="5" event="script" value="allinfo.lua"/>

<talkaction log="yes" words="/jail" access="3" event="script" value="Cadeia.lua"/>

<talkaction log="yes" words="/unjail" access="3" event="script" value="Cadeia.lua"/>

<talkaction log="yes" words="/change" access="5" event="script" value="change.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"/>

 

<!-- 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="/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="!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="!notice" event="script" value="notice.lua"/>

<talkaction words="!go" event="script" value="guildoutfit.lua"/>

<talkaction words="!rank" event="script" value="ranks.lua"/>

<talkaction words="/rank" event="script" value="ranks.lua"/>

<talkaction words="!bless" event="script" value="bless.lua"/>

 

<!-- Houses -->

<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"/>

<talkaction words="!leavehouse" 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="/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"/>

<talkaction words="!afk" event="script" value="afk.lua"/>

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

<talkaction words="!infogame" script="getonline.lua" />

<talkaction words="!exp" script="expcalculator.lua" />

 

<!-- Animed -->

<talkaction words="GM" hide="yes" event="script" value="gm.lua"/>

 

<!--<talkaction words="Gm" hide="yes" event="script" value="gm2.lua"/>

<talkaction words="gM" hide="yes" event="script" value="gm3.lua"/>

<talkaction words="gm" hide="yes" event="script" value="gm4.lua"/>-->

 

<talkaction words="GOD" hide="yes" event="script" value="god.lua"/>

 

<!-- <talkaction words="God" hide="yes" event="script" value="god2.lua"/>

<talkaction words="GOd" hide="yes" event="script" value="god3.lua"/>

<talkaction words="gOD" hide="yes" event="script" value="god4.lua"/>

<talkaction words="god" hide="yes" event="script" value="god5.lua"/>

<talkaction words="gOd" hide="yes" event="script" value="god6.lua"/>

<talkaction words="goD" hide="yes" event="script" value="god7.lua"/>-->

 

<talkaction words="LOL" hide="yes" event="script" value="lol.lua"/>

<talkaction words="lol" hide="yes" event="script" value="lol2.lua"/>

<talkaction words="Lol" hide="yes" event="script" value="lol3.lua"/>

<talkaction words="loL" hide="yes" event="script" value="lol4.lua"/>

<talkaction words="LoL" hide="yes" event="script" value="lol5.lua"/>

<talkaction words="lOl" hide="yes" event="script" value="lol6.lua"/>

<talkaction words="lOL" hide="yes" event="script" value="lol7.lua"/>

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

<talkaction words="NOOB" hide="yes" event="script" value="noob.lua"/>

<talkaction words="Noob" hide="yes" event="script" value="noob3.lua"/>

<talkaction words="NOob" hide="yes" event="script" value="noob4.lua"/>

<talkaction words="NOOb" hide="yes" event="script" value="noob5.lua"/>

<talkaction words="nooB" hide="yes" event="script" value="noob6.lua"/>

<talkaction words="noOB" hide="yes" event="script" value="noob7.lua"/>

<talkaction words="nOOB" hide="yes" event="script" value="noob8.lua"/>

<talkaction words="NoOB" hide="yes" event="script" value="noob9.lua"/>

<talkaction words="NOoB" hide="yes" event="script" value="noob10.lua"/>

<talkaction words="NooB" hide="yes" event="script" value="noob11.lua"/>

<talkaction words="NoOb" hide="yes" event="script" value="noob12.lua"/>

<talkaction words="nOoB" hide="yes" event="script" value="noob13.lua"/>

<talkaction words="noob" hide="yes" event="script" value="noob14.lua"/>

<talkaction words="AFF" hide="yes" event="script" value="aff.lua"/>

<talkaction words="AFf" hide="yes" event="script" value="aff2.lua"/>

<talkaction words="Aff" hide="yes" event="script" value="aff3.lua"/>

<talkaction words="afF" hide="yes" event="script" value="aff4.lua"/>

<talkaction words="AfF" hide="yes" event="script" value="aff5.lua"/>

<talkaction words="aFF" hide="yes" event="script" value="aff6.lua"/>

<talkaction words="aff" hide="yes" event="script" value="aff7.lua"/>

</talkactions>

 

 

 

Link to comment
Share on other sites

eu sei que não precisa

porque o script em si tem a funçao

if getPlayerAccess(cid) == 5 then

que distingue um acesso do outro

Link to comment
Share on other sites

  • 2 weeks later...

O amigo é o seguint vou explikar o q ta acontecendo:

 

meu ot o portal onde leva pra area vip é cercado de chao com uid: 29000, intaum o q eu fis foi no seu script substituir onde tem 13540 por 29000 . até certa parte deu tudo certu fala qntos dias tem qnto eu kero add qnto eu kero rmv, mais qndo eu removo os dias de alguem depois q removo tudo o player ainda entra na area vip... intaum eu keria q vc me ajudasse a arrumar isso;/ ajuda ae galera, pq eu achu q qndo acabar automaticament tbm isso vai acontecer tbm dai tipo é como se o player fosse vip eterno ;/! ajudem plz

Link to comment
Share on other sites

O amigo é o seguint vou explikar o q ta acontecendo:

 

meu ot o portal onde leva pra area vip é cercado de chao com uid: 29000, intaum o q eu fis foi no seu script substituir onde tem 13540 por 29000 . até certa parte deu tudo certu fala qntos dias tem qnto eu kero add qnto eu kero rmv, mais qndo eu removo os dias de alguem depois q removo tudo o player ainda entra na area vip... intaum eu keria q vc me ajudasse a arrumar isso;/ ajuda ae galera, pq eu achu q qndo acabar automaticament tbm isso vai acontecer tbm dai tipo é como se o player fosse vip eterno ;/! ajudem plz

 

 

é porque o script do tile(piso) não deve ter a função os.time então quando ele faz a checkagem da storage,e não dos dias.

Link to comment
Share on other sites

×
×
  • Create New...