Ir para conteúdo
  • 0

Problemas com VIP


lucashdias

Pergunta

Bom dia caros.

 

No meu OT possuo sistema de VIP, porém os players quando criam um char novo, eles iniciam com um determinado tempo de VIP. Veja msg:

 

 

10:56 Você tem 10% de exp a mais agora! (Premium Time (VIP)).

10:56 Você possui 3 dia(s) de premium restantes.

 

Vocês poderiam estar me ajudando a remover isso? Eu já procurei em tudo, mas não sei como remover.

 

Muito obrigado!

Link para o comentário
Compartilhar em outros sites

13 respostass a esta questão

Posts Recomendados

  • 0

Creatures.Xml:

 

 

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

<creaturescripts>

 

<!-- Config Basica -->

 

<event type="login" name="PlayerLogin" event="script" value="login.lua"/>

<event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>

<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>

<event type="login" name="PremCheck" script="premcheck.lua"/>

<event type="receivemail" name="Mail" event="script" value="mail.lua"/>

<!--event type="reportbug" name="SaveReportBug" script="reportbug.lua"/-->

<event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>

<event type="logout" name="demonOakLogout" event="script" value="demonOakLogout.lua"/>

<event type="death" name="demonOakDeath" event="script" value="demonOakDeath.lua"/>

<event type="textedit" name="demonOakComplete" event="script" value="demonOakComplete.lua"/>

<event type="advance" name="receba50" script="receba50.lua"/>

<event type="advance" name="receba100" script="receba100.lua"/>

<event type="advance" name="recebadoll" script="recebadoll.lua"/>

<event type="kill" name="ArenaKill" event="script" value="arenakill.lua"/>

<event type="death" name="monster2" event="script" value="monster2.lua"/>

<event type="death" name="zaoPortals" event="script" value="zaoPortals.lua"/>

<event type="kill" name="Frags" event="script" value="frags.lua"/>

<event type="login" name="Ip" event="script" value="playerip.lua"/>

<event type="advance" name="fullmh" event="script" value="fullmh.lua"/>

<event type="login" name="LoginProtect" event="script" value="delay.lua"/>

<event type="statschange" name="MonsterProtect" event="script" value="delaydois.lua"/>

 

 

<!-- Inquisition Full Quest -->

<event type="kill" name="inquisitionPortals" script="Inquisition.lua"/>

<event type="kill" name="BountyHunter" event="script" value="kill.lua"/>

<event type="kill" name="killbossesbroadcast" event="script" value="killbossesbroadcast.lua"/>

 

<!-- Bless System -->

<event type="death" name="ProtectLevel" event="script" value="levelprotection.lua"/>

 

<!-- Firewalker Boots -->

<event type="death" name="PythiusDead" script="pythius_the_rotten.lua" />

 

<!-- Idle -->

<event type="think" name="Idle" event="script" value="idle.lua"/>

 

<!-- Zombie Event -->

<event type="statschange" name="zombieevent" event="script" value="zombievent.lua"/>

 

<!-- VIP EXP -->

<event type="login" name="ExpVip" script="vipexp.lua"/>

 

<!-- End VIP -->

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

<event type="login" name="Vip" event="script" value="vip.lua"/>

 

<!-- Dota -->

<event type="death" name="ga1" event="script" value="ga1.lua"/>

<event type="death" name="ga2" event="script" value="ga2.lua"/>

<event type="death" name="ga3" event="script" value="ga3.lua"/>

<event type="death" name="gv1" event="script" value="gv1.lua"/>

<event type="death" name="gv2" event="script" value="gv2.lua"/>

<event type="death" name="gv3" event="script" value="gv3.lua"/>

 

<!-- WoE -->

<event type="death" name="empe_broken" event="script" value="empe_broken.lua"/>

<event type="death" name="pre_empes" event="script" value="pre_empes.lua"/>

<event type="statschange" name="empe_dmg" event="script" value="empe_dmg.lua"/>

<event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/>

<event type="statschange" name="vs_guard" event="script" value="vs_guard.lua"/>

<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>

</creaturescripts>

 

 

Login.lua:

 

 

local config = {

useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))

}

 

function onLogin(cid)

 

local text = " Bem vindo ao Ferumbras OT, aqui está uma lista de comandos:\n!bless -> Get blessed by the Gods\n!exp -> List of exp to advance for another level\n!frags -> See your current frags\nCtrl+R -> Report bugs to staff\n- Visit our webpage constantly."

local useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))

local loss = getConfigValue('deathLostPercent')

 

if(loss ~= nil) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

end

 

local lastLogin = getPlayerLastLoginSaved(cid)

if(lastLogin > 0) then

doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, text)

else

doPlayerSendOutfitWindow(cid)

end

 

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

 

registerCreatureEvent(cid, "Mail")

registerCreatureEvent(cid, "GuildMotd")

 

registerCreatureEvent(cid, "Idle")

if(config.useFragHandler) then

registerCreatureEvent(cid, "SkullCheck")

end

 

registerCreatureEvent(cid, "inquisitionPortals")

registerCreatureEvent(cid, "logosite")

registerCreatureEvent(cid, "receba50")

registerCreatureEvent(cid, "receba100")

registerCreatureEvent(cid, "recebadoll")

registerCreatureEvent(cid, "FirstItems")

registerCreatureEvent(cid, "countKill")

registerCreatureEvent(cid, "SaveReportBug")

--registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, "AdvanceSave")

registerCreatureEvent(cid, "upgain")

registerCreatureEvent(cid, "kill")

registerCreatureEvent(cid, "castlogin")

registerCreatureEvent(cid, "castlogout")

registerCreatureEvent(cid, "parceria")

registerCreatureEvent(cid, "parceria_look")

registerCreatureEvent(cid, "receba")

registerCreatureEvent(cid, "recebadoll")

registerCreatureEvent(cid, "gain")

--registerCreatureEvent(cid, "30")

registerCreatureEvent(cid, "ArenaKill")

registerCreatureEvent(cid, "ExpVip")

registerCreatureEvent(cid, "RushCombat")

registerCreatureEvent(cid, "RushAttack")

registerCreatureEvent(cid, "RushDead")

registerCreatureEvent(cid, "fullmh")

registerCreatureEvent(cid, "RushOutfit")

registerCreatureEvent(cid, "killbossesbroadcast")

registerCreatureEvent(cid, "EndVip")

registerCreatureEvent(cid, "PythiusDead")

registerCreatureEvent(cid, "zombieevent")

registerCreatureEvent(cid, "Achievements")

registerCreatureEvent(cid, "premcheck")

registerCreatureEvent(cid, "Frags")

registerCreatureEvent(cid, "demonOakLogout")

registerCreatureEvent(cid, "demonOakDeath")

registerCreatureEvent(cid, "demonOakComplete")

registerCreatureEvent(cid, "PlayerDeath")

registerCreatureEvent(cid, "BountyHunter")

registerCreatureEvent(cid, "vocationvip")

registerCreatureEvent(cid, "vip")

registerCreatureEvent(cid, "blessfree")

registerCreatureEvent(cid, "ProtectLevel")

 

return true

end

 

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

  • 0

vip.lua:

 

 

function onLogin(cid)

local temple = { x = 32360, y = 31782, z = 7}

if vip.hasVip(cid) == true then

if getPlayerStorageValue(cid,55555) ~= 1 then

setPlayerStorageValue(cid,55555,1)

end

else

local outfit = {lookType = 128, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

if getPlayerStorageValue(cid,55555) == 1 then

doTeleportThing(cid,temple)

doPlayerSendTextMessage(cid, 22, "Sua vip acabou, para renova-la acesse o nosso site!")

db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `id` = ".. getAccountIdByName(getPlayerName(cid)) ..";")

setPlayerPromotionLevel(cid, 1)

doPlayerSetTown(cid,4)

setPlayerStorageValue(cid, 55555, 0)

setPlayerStorageValue(cid, 55556,0)

doPlayerSetVocation(cid, getPlayerVocation(cid)-4)

doCreatureChangeOutfit(cid, outfit)

setPlayerPromotionLevel(cid, 1)

end

end

return true

end

 

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

  • 0

Olha, um jeito fácil, só que chato de resolver é abrir arquivo por arquivo com o bloco de notas da pasta creaturescripts/scripts , apertar CTRL+F e colar isso:

 

10:56 Você possui 3 dia(s) de premium restantes.

 

E quando achar, nos passar o script inteiro. :/

Link para o comentário
Compartilhar em outros sites

  • 0

Cara se remover a tag que o LTK disse. Os players VIP não teram 10% a mais de XP. :/

 

Não quero que eles tenham 10%, apenas acesso as areas.

E com esses spoilers, vc sabe me dizer, qual é o ACTION_ID da VIP? Eu criei uns pisos pra somente vip ter acesso, mas não consegui arrumar direito, pois não sei qual é ao certo o ACTION_ID dos vips.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...