gcaraca 0 Postado Agosto 13, 2009 Share Postado Agosto 13, 2009 Então, eu queria q no meu server o player começasse com 3 dias de premium, tem como isso? já procurei em tudo mas não axo Link para o comentário Compartilhar em outros sites More sharing options...
Khost 0 Postado Agosto 13, 2009 Share Postado Agosto 13, 2009 Amigo vá no account mananger , dps vá em accounts dps vá num campo que ta assim : ae embaixo se bota: premdays 3 Obrigado, espero ter ajudado! Link para o comentário Compartilhar em outros sites More sharing options...
delton 6 Postado Agosto 13, 2009 Share Postado Agosto 13, 2009 Caso não de certo manda o arquivo login.lua que fica na pasta creaturescripts... =D Link para o comentário Compartilhar em outros sites More sharing options...
gcaraca 0 Postado Agosto 13, 2009 Autor Share Postado Agosto 13, 2009 (editado) Tipow, eu uso site e n account manager :S Quando ao login.lua, ta ae: Obs: Esse sistema vip n estou usando, estou usando o msm sistema só q como premium account msm. local message = [[Para ver as novidades se quiser é so digitar !notice Para maiores informações sobre o OT visite o blog: www.sotserv.blogspot.com Ou o Fórum www.#####.com Enjoy xD]] function onLogin(cid) if vipTime(cid) >= 1 then if vipTime(cid) >= os.time() then db.executeQuery("UPDATE `accounts` SET `vip_days` = ".. (vipTime(cid) - os.time()) / 86400 .." WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";") else db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";") db.executeQuery("UPDATE `accounts` SET `vip_days` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";") end end if haveVipDays(cid) == FALSE then if isVip(cid) == TRUE then db.executeQuery("UPDATE `players` SET `town_id` = 1, `posx` = 1019, `posy` = 1030, `posz` = 7 WHERE `players`.`account_id` = ".. getPlayerAccountId(cid) ..";") db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";") local Position = getTownTemplePosition(1) doTeleportThing(cid, Position) doSendMagicEffect(Position, 10) doPlayerSetTown(cid, 1) end end registerCreatureEvent(cid, "PlayerKill") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena doPlayerPopupFYI(cid, message) registerCreatureEvent(cid, "PlayerDeath") --registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.-- registerCreatureEvent(cid, "KilledMonstersCounter") registerCreatureEvent(cid, "playeradvance") return TRUE end Editado Agosto 13, 2009 por gcaraca Link para o comentário Compartilhar em outros sites More sharing options...
satan666 12 Postado Agosto 13, 2009 Share Postado Agosto 13, 2009 poe uma função onlogin que seta 3 dias de premium. function onLogin(cid)if not isPremium(cid) then doPlayerAddPremiumDays(cid, 3) doPlayerSendTextMessage(cid, 22, "voce ganhou 3 dia de premium account") end Link para o comentário Compartilhar em outros sites More sharing options...
gcaraca 0 Postado Agosto 13, 2009 Autor Share Postado Agosto 13, 2009 (editado) Mais tipow dps q akba esse dias ele n vai coloka denovo? Editado Agosto 13, 2009 por gcaraca Link para o comentário Compartilhar em outros sites More sharing options...
satan666 12 Postado Agosto 13, 2009 Share Postado Agosto 13, 2009 esqueci disso ta ae refeito o script. function onLogin(cid)if not isPremium(cid) and getPlayerStorageValue(cid,1020) == -1 then doPlayerAddPremiumDays(cid, 3) setPlayerStorageValue(cid, 1020,1) doPlayerSendTextMessage(cid, 22, "voce ganhou 3 dia de premium account") end muda a storage pra o que você quiser. Link para o comentário Compartilhar em outros sites More sharing options...
gcaraca 0 Postado Agosto 14, 2009 Autor Share Postado Agosto 14, 2009 pra que serve o storage value? :S Link para o comentário Compartilhar em outros sites More sharing options...
satan666 12 Postado Agosto 14, 2009 Share Postado Agosto 14, 2009 uai pra ele não ganhar de novo os 3 dias de premium. function onLogin(cid)if not isPremium(cid) and getPlayerStorageValue(cid,1020) == -1 then doPlayerAddPremiumDays(cid, 3) setPlayerStorageValue(cid, 1020,1) doPlayerSendTextMessage(cid, 22, "voce ganhou 3 dia de premium account") end return TRUE end esqueci de fechar a função. Link para o comentário Compartilhar em outros sites More sharing options...
dragonlord666 0 Postado Agosto 16, 2009 Share Postado Agosto 16, 2009 é bem facil vo dexa asim tambem Link para o comentário Compartilhar em outros sites More sharing options...
DaNDaNrOxX 15 Postado Agosto 26, 2009 Share Postado Agosto 26, 2009 Problema Resolvido, :button_cancel: Tópico Fechado Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados