Pesquisar na Comunidade
Mostrando resultados para as tags ''preciso de ajuda no script''.
Encontrado 1 registro
-
Keria q alguem fizesse 1 script pra vip por item q desse na conta inteira... eu ja tenhu um sistema q da em 1 char soah function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 15 -- dias que serão adicionados 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)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end E tmb arrumei 1 script q da premium function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerPremiumDays(cid) < 0 then doPlayerSendCancel(cid, 'You can only have 90 days of premium account.') return false end doPlayerAddPremiumDays(cid, 30) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "We have added 30 vip days to your account!.") doSendMagicEffect(getThingPosition(cid), 14) doRemoveItem(item.uid) return true end Keria 1 script tanto faz na lib ou por actions q no caso add vip na tabela Viptime da account... ja utilizando sistema do kydrai q eh isvip(cid) keria 1 script q ao clicar no item ganhasse dias vip add na tabela das accounts... Assim eh pra todos os char... ninguem fez ate agora... Seria inovador. :X