GOSTARIA DO SCRIPT USADO NO HEROSERV NAS PORTA D VIP PARA SO VIP PASSAR
GOSTARIA DO SCRIPT PRA COMPRA VIP TBEM AGRADECIDO !
GOSTARIA DO SCRIPT USADO NO HEROSERV NAS PORTA D VIP PARA SO VIP PASSAR
GOSTARIA DO SCRIPT PRA COMPRA VIP TBEM AGRADECIDO !
--não é meu--
da door:
em actions/scripts
function onUse(cid, item, frompos, item2, topos)local storageValue = 13540
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=784, y=805, z=7} -- onde será teleportado
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2075 and getPlayerStorageValue(cid,13540) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doCreatureSay(cid, "Seja Bem vindo!!!", TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, "Voce nao tem acesso vip vip access.", TALKTYPE_ORANGE_1)
end
return 1
end
actions.xml
<action actionid="2075" script="vip.lua"/>
da vip:
em talkactions/scripts
function onSay(cid, words, param)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
return TRUE
end
em talkactions.xml
<talkaction words="!buyvip" event="script" value="buyvip.lua"/>
peguei de outro.
voltando aos poucos.
É CAMPEÃO CARIOCA 2010 PORRA !