Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local message =
- [[
- Essa é a sua Árvore de Habilidades.
- E esses são alguns pontos importantes que você deve saber:
- + Você obtém pontos de habilidade sempre que avançar de nível.
- + Deixe o Mouse em cima da habilidade para ver informações sobre ela, como:
- + Palavra Mágica para invocar a magia.
- + Mana gasta ao usar.
- + Status, se a magia é para Free ou Premium Account.
- + Pontos necessários para aprender essa técnica
- + Informações sobre a habilidade.
- + Para aprender uma habilidade, basta clicar sobre ela.
- ]]
- function getPlayerHP(cid)
- local query = db.getResult("SELECT `healthmax` FROM `players` WHERE `id` = " .. getPlayerGUID(cid))
- if query:getID() ~= -1 then
- return tonumber(query:getDataString("healthmax"))
- end
- return 0
- end
- function onSay(cid, words, param, channel)
- local ek = getPlayerStorageValue(cid, 657814690) local ck = getPlayerStorageValue(cid, 657814709) local tk = getPlayerStorageValue(cid, 657814725)
- local ek1 = getPlayerStorageValue(cid, 657814691) local ck1 = getPlayerStorageValue(cid, 657814710) local tk1 = getPlayerStorageValue(cid, 657814726)
- local ek2 = getPlayerStorageValue(cid, 657814692) local ck2 = getPlayerStorageValue(cid, 657814711) local tk2 = getPlayerStorageValue(cid, 657814727)
- local ek3 = getPlayerStorageValue(cid, 657814693) local ck3 = getPlayerStorageValue(cid, 657814712) local tk3 = getPlayerStorageValue(cid, 657814728)
- local ek4 = getPlayerStorageValue(cid, 657814694) local ck4 = getPlayerStorageValue(cid, 657814713) local tk4 = getPlayerStorageValue(cid, 657814729)
- local ek5 = getPlayerStorageValue(cid, 657814695) local ck5 = getPlayerStorageValue(cid, 657814714) local tk5 = getPlayerStorageValue(cid, 657814730)
- local ek6 = getPlayerStorageValue(cid, 657814696) local ck6 = getPlayerStorageValue(cid, 657814715) local tk6 = getPlayerStorageValue(cid, 657814731)
- local ek7 = getPlayerStorageValue(cid, 657814697) local ck7 = getPlayerStorageValue(cid, 657814716) local tk7 = getPlayerStorageValue(cid, 657814732)
- local ek8 = getPlayerStorageValue(cid, 657814698) local ck8 = getPlayerStorageValue(cid, 657814717) local tk8 = getPlayerStorageValue(cid, 657814733)
- local ek9 = getPlayerStorageValue(cid, 657814699) local ck9 = getPlayerStorageValue(cid, 657814718) local tk9 = getPlayerStorageValue(cid, 657814734)
- local ek10 = getPlayerStorageValue(cid, 657814700) local ck10 = getPlayerStorageValue(cid, 657814719) local tk10 = getPlayerStorageValue(cid, 657814735)
- local ek11 = getPlayerStorageValue(cid, 657814701) local ck11 = getPlayerStorageValue(cid, 657814720) local tk11 = getPlayerStorageValue(cid, 657814736)
- local ek12 = getPlayerStorageValue(cid, 657814702) local ck12 = getPlayerStorageValue(cid, 657814721) local tk12 = getPlayerStorageValue(cid, 657814737)
- local ek13 = getPlayerStorageValue(cid, 657814703) local ck13 = getPlayerStorageValue(cid, 657814722) local tk13 = getPlayerStorageValue(cid, 657814738)
- local ek14 = getPlayerStorageValue(cid, 657814704) local ck14 = getPlayerStorageValue(cid, 657814723) local tk14 = getPlayerStorageValue(cid, 657814739)
- local ek15 = getPlayerStorageValue(cid, 657814705) local ck15 = getPlayerStorageValue(cid, 657814724) local pp = getPlayerStorageValue(cid, 657814750)
- local ek16 = getPlayerStorageValue(cid, 657814706)
- local ek17 = getPlayerStorageValue(cid, 657814707)
- local ek18 = getPlayerStorageValue(cid, 657814708)
- local MoneyProg = getPlayerStorageValue(cid, 85649710)
- local ManaProg = getPlayerStorageValue(cid, 85649711)
- local SummonProg = getPlayerStorageValue(cid, 85649712)
- local CraftProg = getPlayerStorageValue(cid, 85649713)
- --[[
- [1] - Curar (1) [16] - Explosion Mort (2)
- [2] - Correr (1) [17] - Explosion Poison (2)
- [3] - Explosion Fire (2) [18] - Debuff Drunk (1)
- [4] - Explosion Holy (2) [19] - Escudo Espiritual (1)
- [5] - Explosion Ice (2) [20] - Grande Cura (1)
- [6] - Conjurar Balas (3) [21] - Curar Parceiro (1)
- [7] - Remover Status (1) [22] - Cura em Massa (1)
- [8] - Lux (1) [23] - Regenerar Espirito (3)
- [9] - Gran Lux (1) [24] - Cancelar Invisibilidade (1)
- [10] - Escalar (1) [25] - Ativar Invisibilidade (1)
- [11] - Corda Especial (1) [26] - Explosion Energy (2)
- [12] - Bussula (1) [27] - Regenerar SP (3)
- [13] - Grande Corrida (1) [28] - Empurrar Inimigos (3)
- [14] - Provocar Inimigo (1) [29] - Paralyze (3)
- [15] - Defesa Aprimorada (3) [30] - Refletir Dano (3)
- ]]
- local t = string.explode(param, " ")
- if (param == "Refresh") then
- doPlayerSendCancel(cid, "EmailRefresh "..getCad(cid).." "..getEmail(cid).."")
- if getPlayerVocation(cid) == 0 then
- doPlayerSendCancel(cid, "NoVocSkills")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- elseif getPlayerVocation(cid) == 1 then
- doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00 "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
- elseif getPlayerVocation(cid) == 3 then
- doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.." "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
- elseif getPlayerVocation(cid) == 2 then
- doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.." "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
- end
- end
- if (param == "CheckMail") then
- doPlayerSendCancel(cid, "EmailRefresh "..getCad(cid).." "..getEmail(cid).."")
- doPlayerSendCancel(cid, " ")
- end
- if t[1] == "Email" then
- if not t[2] then doPlayerPopupFYI(cid, "Digite seu e-mail.") return true end
- if t[3] == "1" then
- doSetEmail(cid, ""..t[2].."@hotmail.com")
- if getCad(cid) == 0 then doAddCad(cid, 1) end
- doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@hotmail.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- elseif t[3] == "2" then
- doSetEmail(cid, ""..t[2].."@outlook.com")
- if getCad(cid) == 0 then doAddCad(cid, 1) end
- doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@outlook.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- elseif t[3] == "3" then
- doSetEmail(cid, ""..t[2].."@gmail.com")
- if getCad(cid) == 0 then doAddCad(cid, 1) end
- doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@gmail.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- elseif t[3] == "4" then
- if not t[2] then doPlayerPopupFYI(cid, "Digite uma Recovery Key.") return true end
- if t[2] == getKey(cid) then
- doPlayerPopupFYI(cid, "Recovery Key Correta!\nAgora você pode editar seu e-mail")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- doPlayerSendCancel(cid, "EmailRefresh 0 ")
- else
- doPlayerPopupFYI(cid, "Recovery Key Incorreta!")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- if (param == "Says") then
- if getPlayerStorageValue(cid, 1265789614) == -1 then
- setPlayerStorageValue(cid, 1265789614, 1)
- doPlayerSendCancel(cid, "Dialogos 1") -- Desabilitar Dialogos com NPC
- doPlayerSendCancel(cid, "CancelSound")
- doPlayerSendCancel(cid, " ")
- else
- setPlayerStorageValue(cid, 1265789614, -1)
- doPlayerSendCancel(cid, "Dialogos 0") -- Habilitar Dialogos
- doPlayerSendCancel(cid, "CancelSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- local vita = getPlayerStorageValue(cid, 680050)
- local espi = getPlayerStorageValue(cid, 680051)
- local expe = getPlayerStorageValue(cid, 680052)
- local ppoint = getPlayerStorageValue(cid, 680055)
- local DES = getPlayerSkillLevel(cid, 5)
- local MultXP = 0
- local XPEvent = 0
- if getEXPEvent(cid) == 1 then
- XPEvent = 0
- else
- XPEvent = getEXPEvent(cid)
- end
- if getPlayerLevel(cid) < 30 then
- MultXP = (31 - getPlayerLevel(cid)) + XPEvent
- else
- MultXP = XPEvent
- end
- if (param == "Money") then
- if pp >= 1 then
- if MoneyProg < 100 then
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- doPlayerSendCancel(cid, "Master "..(MoneyProg +1).." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- if MoneyProg == -1 then
- setPlayerStorageValue(cid, 85649710, getPlayerStorageValue(cid, 85649710) + 2)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- setPlayerStorageValue(cid, 85649710, getPlayerStorageValue(cid, 85649710) + 1)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- end
- if MoneyProg == 99 then
- doPlayerPopupFYI(cid, "Skill Master: Dinheiro DESBLOQUEADA!\n\nDobra as recompensas em gold obtidas\natravés do sistema de Tasks.")
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- --==== CONQUISTA ==--
- setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
- if getPlayerStorageValue(cid, 764335) == 3 then
- setPlayerStorageValue(cid, 382281, 1)
- addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
- addEvent(doPlayerSendCancel, 3010, cid, " ")
- end
- end
- addEvent(RefreshAbility, 10, cid)
- else
- doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif (param == "Mana") then
- if pp >= 1 then
- if ManaProg < 100 then
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..(ManaProg +1).." "..SummonProg.." "..CraftProg.."")
- if ManaProg == -1 then
- setPlayerStorageValue(cid, 85649711, getPlayerStorageValue(cid, 85649711) + 2)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- setPlayerStorageValue(cid, 85649711, getPlayerStorageValue(cid, 85649711) + 1)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- end
- if ManaProg == 99 then
- doPlayerPopupFYI(cid, "Skill Master: Mana DESBLOQUEADA!\n\nAumenta sua taxa de regeneração\n de HP/MP dentro de Protection Zone (PZ).")
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- --==== CONQUISTA ==--
- setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
- if getPlayerStorageValue(cid, 764335) == 3 then
- setPlayerStorageValue(cid, 382281, 1)
- addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
- addEvent(doPlayerSendCancel, 3010, cid, " ")
- end
- end
- addEvent(RefreshAbility, 10, cid)
- else
- doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif (param == "Summon") then
- if pp >= 1 then
- if SummonProg < 100 then
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..(SummonProg +1).." "..CraftProg.."")
- if SummonProg == -1 then
- setPlayerStorageValue(cid, 85649712, getPlayerStorageValue(cid, 85649712) + 2)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- setPlayerStorageValue(cid, 85649712, getPlayerStorageValue(cid, 85649712) + 1)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- end
- if SummonProg == 99 then
- doPlayerPopupFYI(cid, "Skill Master: Summon DESBLOQUEADA!\n\nTodos os Summons ganham cura em área.")
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- --==== CONQUISTA ==--
- setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
- if getPlayerStorageValue(cid, 764335) == 3 then
- setPlayerStorageValue(cid, 382281, 1)
- addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
- addEvent(doPlayerSendCancel, 3010, cid, " ")
- end
- end
- addEvent(RefreshAbility, 10, cid)
- else
- doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif (param == "Craft") then
- if pp >= 1 then
- if CraftProg < 100 then
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..(CraftProg +1).."")
- if CraftProg == -1 then
- setPlayerStorageValue(cid, 85649713, getPlayerStorageValue(cid, 85649713) + 2)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- setPlayerStorageValue(cid, 85649713, getPlayerStorageValue(cid, 85649713) + 1)
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- end
- if CraftProg == 99 then
- doPlayerPopupFYI(cid, "Skill Master: Craft DESBLOQUEADA!\n\nTodos os monstros possuem chance\nde droparem containers de craft.")
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- --==== CONQUISTA ==--
- setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
- if getPlayerStorageValue(cid, 764335) == 3 then
- setPlayerStorageValue(cid, 382281, 1)
- addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
- addEvent(doPlayerSendCancel, 3010, cid, " ")
- end
- end
- addEvent(RefreshAbility, 10, cid)
- else
- doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- if (param == "VocTanker") then
- if getPlayerStorageValue(cid, 974631852) == -1 then
- setPlayerStorageValue(cid, 974631852, 1)
- setPlayerStorageValue(cid, 020319, 50)
- setPlayerStorageValue(cid, 657814725, 2) -- Skill 1 [Correr]
- setPlayerStorageValue(cid, 657814726, 1) -- Skill 2 [Curar]
- setPlayerStorageValue(cid, 657814727, 2) -- Skill 3 [Corda Especial]
- setPlayerStorageValue(cid, 657814728, 1) -- Skill 4 [Lux]
- setPlayerStorageValue(cid, 657814729, 1) -- Skill 5 [Escalar]
- setPlayerStorageValue(cid, 657814731, 1) -- Skill 7 [Bussula]
- setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
- setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
- setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
- if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
- doPlayerLearnInstantSpell(cid, "Correr")
- doPlayerLearnInstantSpell(cid, "Corda Especial")
- doPlayerSetVocation(cid, 1)
- doSendMagicEffect(getPlayerPosition(cid), 49)
- addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Tanker]\n==================\n")
- addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
- addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
- addEvent(doPlayerSendCancel, 8011, cid, " ")
- addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
- addEvent(doPlayerSendCancel, 10011, cid, " ")
- addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
- addEvent(doPlayerSendTextMessage, 18010, cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Veja os atributos disponíveis na aba 'Skills (Ctrl + S)\nVocê possui "..getPlayerLevel(cid).." pontos de atributo. Distribua entre as 6 opções de atributo disponível'.")
- addEvent(doPlayerSendCancel, 18011, cid, " ")
- doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00")
- doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
- doPlayerSendCancel(cid, "!DelVocational")
- doPlayerSendCancel(cid, " ")
- addEvent(onAbility, 25000, cid)
- end
- elseif (param == "VocCurandeiro") then
- if getPlayerStorageValue(cid, 974631852) == -1 then
- setPlayerStorageValue(cid, 974631852, 1)
- setPlayerStorageValue(cid, 020319, 50)
- setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
- setPlayerStorageValue(cid, 657814690, 2) -- Skill 1 [Curar]
- setPlayerStorageValue(cid, 657814691, 2) -- Skill 2 [Correr]
- setPlayerStorageValue(cid, 657814692, 2) -- Skill 3 [Lux]
- setPlayerStorageValue(cid, 657814693, 2) -- Skill 4 [Corda Especial]
- setPlayerStorageValue(cid, 657814694, 1) -- Skill 5 [Bussula]
- setPlayerStorageValue(cid, 657814696, 1) -- Skill 7 [Escalar]
- setPlayerStorageValue(cid, 657814697, 1) -- Skill 8 [Invisibilidade]
- setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
- if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
- setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
- doPlayerLearnInstantSpell(cid, "Curar")
- doPlayerLearnInstantSpell(cid, "Correr")
- doPlayerLearnInstantSpell(cid, "Lux")
- doPlayerLearnInstantSpell(cid, "Corda Especial")
- doPlayerSetVocation(cid, 2)
- doSendMagicEffect(getPlayerPosition(cid), 49)
- addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Curandeiro]\n==================\n")
- addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
- addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
- addEvent(doPlayerSendCancel, 8011, cid, " ")
- addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
- addEvent(doPlayerSendCancel, 10011, cid, " ")
- addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
- addEvent(doPlayerSendTextMessage, 18010, cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Veja os atributos disponíveis na aba 'Skills (Ctrl + S)\nVocê possui "..getPlayerLevel(cid).." pontos de atributo. Distribua entre as 6 opções de atributo disponível'.")
- addEvent(doPlayerSendCancel, 18011, cid, " ")
- doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.."")
- doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
- doPlayerSendCancel(cid, "!DelVocational")
- doPlayerSendCancel(cid, " ")
- addEvent(onAbility, 26000, cid)
- end
- elseif (param == "VocEspecialista") then
- if getPlayerStorageValue(cid, 974631852) == -1 then
- setPlayerStorageValue(cid, 974631852, 1)
- setPlayerStorageValue(cid, 020319, 50)
- setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
- setPlayerStorageValue(cid, 657814709, 2) -- Skill 1 [Curar]
- setPlayerStorageValue(cid, 657814710, 2) -- Skill 4 [Lux]
- setPlayerStorageValue(cid, 657814711, 1) -- Skill 5 [Remover Status]
- setPlayerStorageValue(cid, 657814714, 1) -- Skill 8 [Bussula]
- if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
- setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
- setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
- doPlayerLearnInstantSpell(cid, "Curar")
- doPlayerLearnInstantSpell(cid, "Lux")
- doPlayerSetVocation(cid, 3)
- doSendMagicEffect(getPlayerPosition(cid), 49)
- addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Especialista]\n==================\n")
- addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
- addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
- addEvent(doPlayerSendCancel, 8011, cid, " ")
- addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
- addEvent(doPlayerSendCancel, 10011, cid, " ")
- addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
- addEvent(doPlayerSendTextMessage, 18010, cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Veja os atributos disponíveis na aba 'Skills (Ctrl + S)\nVocê possui "..getPlayerLevel(cid).." pontos de atributo. Distribua entre as 6 opções de atributo disponível'.")
- addEvent(doPlayerSendCancel, 18011, cid, " ")
- doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.."")
- doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
- doPlayerSendCancel(cid, "!DelVocational")
- doPlayerSendCancel(cid, " ")
- addEvent(onAbility, 25000, cid)
- end
- elseif (param == "AddVitalidade") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
- setCreatureMaxHealth(cid, getPlayerHP(cid) + 25)
- doCreatureAddHealth(cid, getPlayerHP(cid) + 25)
- local playerid = getPlayerGUID(cid)
- db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 25).." WHERE `id` = " .. playerid .. ";")
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +25")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
- doPlayerSendCancel(cid, "TankerAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
- local playerid = getPlayerGUID(cid)
- setCreatureMaxHealth(cid, getPlayerHP(cid) + 15)
- doCreatureAddHealth(cid, getPlayerHP(cid) + 15)
- db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 15).." WHERE `id` = " .. playerid .. ";")
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +15")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
- doPlayerSendCancel(cid, "EspecialistaAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
- local playerid = getPlayerGUID(cid)
- setCreatureMaxHealth(cid, getPlayerHP(cid) + 10)
- doCreatureAddHealth(cid, getPlayerHP(cid) + 10)
- db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 10).." WHERE `id` = " .. playerid .. ";")
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +10")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
- doPlayerSendCancel(cid, "CurandeiroAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif (param == "AddEspiritualidade") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
- setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 10)
- doCreatureAddMana(cid, getCreatureMaxMana(cid))
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +10")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
- doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
- setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 15)
- doCreatureAddMana(cid, getCreatureMaxMana(cid))
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +15")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
- doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
- setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 25)
- doCreatureAddMana(cid, getCreatureMaxMana(cid))
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +25")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
- doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif (param == "AddCapacidade") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 15))
- doPlayerSave(cid)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +15")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
- doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 20))
- doPlayerSave(cid)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +20")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
- doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 10))
- doPlayerSave(cid)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +10")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
- doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif (param == "AddPotencia") then
- if getPlayerVocation(cid) == 0 then
- doPlayerPopupFYI(cid, "Somente jogadores com Vocation podem adicionar pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688855, 1)
- local fist = getPlayerSkillLevel(cid, 0)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 1")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688855, 1)
- local fist = getPlayerSkillLevel(cid, 0)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 1")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688855, 1)
- local fist = getPlayerSkillLevel(cid, 0)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 1")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif (param == "AddExperiencia") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
- doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
- doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) >= 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
- doSendMagicEffect(getPlayerPosition(cid), 14)
- addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
- addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
- doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
- doPlayerSendCancel(cid, "AtributosSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif (param == "AddDestreza") then
- if getPlayerVocation(cid) == 0 then
- doPlayerPopupFYI(cid, "Somente jogadores com Vocation podem adicionar pontos aqui.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- return true
- elseif getPlayerVocation(cid) == 1 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688856, 1)
- local DEST = getPlayerSkillLevel(cid, 5)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 0")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 3 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688856, 1)
- local DEST = getPlayerSkillLevel(cid, 5)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 0")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- if(getTilePzInfo(getCreaturePosition(cid))) then
- if getPlayerStorageValue(cid, 680055) == 1 then
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
- setPlayerStorageValue(cid, 688856, 1)
- local DEST = getPlayerSkillLevel(cid, 5)
- local playerid = getPlayerGUID(cid)
- local mount = 1
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
- elseif getPlayerStorageValue(cid, 680055) > 1 then
- doPlayerSendCancel(cid, "#DigitarPontos 0")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- local t = string.explode(param, ",")
- if t[1] == "PotAdd" then
- if tonumber(t[2]) then
- if getPlayerStorageValue(cid, 680055) >= tonumber(t[2]) then
- local mount = t[2]
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - mount)
- setPlayerStorageValue(cid, 688855, 1)
- local fist = getPlayerSkillLevel(cid, 0)
- local playerid = getPlayerGUID(cid)
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
- else
- doPlayerPopupFYI(cid, "ALERTA: Você não possui tantos pontos disponíveis.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente numeros.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- if t[1] == "DezAdd" then
- if tonumber(t[2]) then
- if getPlayerStorageValue(cid, 680055) >= tonumber(t[2]) then
- local mount = t[2]
- setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - mount)
- setPlayerStorageValue(cid, 688856, 1)
- local DEST = getPlayerSkillLevel(cid, 5)
- local playerid = getPlayerGUID(cid)
- doRemoveCreature(cid)
- db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
- else
- doPlayerPopupFYI(cid, "ALERTA: Você não possui tantos pontos disponíveis.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- else
- doPlayerPopupFYI(cid, "ALERTA: Somente numeros.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- if (param == "Um") then
- return true
- elseif (param == "Dois") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk1 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814726, 2) -- Skill 2 [Curar]
- doPlayerLearnInstantSpell(cid, "Curar")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- return true
- elseif getPlayerVocation(cid) == 3 then
- return true
- end
- elseif (param == "Tres") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- return true
- elseif getPlayerVocation(cid) == 3 then
- return true
- end
- elseif (param == "Quatro") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk3 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814728, 2) -- Skill 4 [Lux]
- setPlayerStorageValue(cid, 657814734, 1) -- Skill 12 [Conjurar Balas]
- doPlayerLearnInstantSpell(cid, "Lux")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- elseif getPlayerVocation(cid) == 2 then
- return true
- elseif getPlayerVocation(cid) == 3 then
- return true
- end
- end
- elseif (param == "Cinco") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk4 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814729, 2) -- Skill 5 [Escalar]
- doPlayerLearnInstantSpell(cid, "Escalar")
- if tk5 == -1 then setPlayerStorageValue(cid, 657814730, 1) end -- Skill 6 [Remover Status]
- if tk7 == -1 then setPlayerStorageValue(cid, 657814732, 1) end -- Skill 9 [Gran Lux]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek4 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814694, 2) -- Skill 5 [Bussula]
- setPlayerStorageValue(cid, 657814695, 1) -- Skill 6 [Invisibilidade]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck2 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814711, 2) -- Skill 5 [Remover Status]
- setPlayerStorageValue(cid, 657814712, 1) -- Skill 6 [Corda Especial]
- doPlayerLearnInstantSpell(cid, "Remover Status")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Seis") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk5 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814730, 2) -- Skill 6 [Remover Status]
- doPlayerLearnInstantSpell(cid, "Remover Status")
- if tk8 == -1 then setPlayerStorageValue(cid, 657814733, 1) end -- Skill 10 [Explosion Fire]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek5 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814695, 2) -- Skill 6 [Invisibilidade]
- setPlayerStorageValue(cid, 657814698, 1) -- Skill 10 [Escudo Espiritual]
- doPlayerLearnInstantSpell(cid, "Ativar Invisibilidade")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck3 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814712, 2) -- Skill 5 [Remover Status]
- doPlayerLearnInstantSpell(cid, "Corda Especial")
- if ck4 == -1 then setPlayerStorageValue(cid, 657814713, 1) end -- Skill 7 [Correr]
- if ck7 == -1 then setPlayerStorageValue(cid, 657814716, 1) end -- Skill 10 [Escudo Espiritual]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Sete") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk6 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814731, 2) -- Skill 7 [Bussula]
- if tk5 == -1 then setPlayerStorageValue(cid, 657814730, 1) end -- Skill 6 [Remover Status]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek6 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814696, 2) -- Skill 7 [Escalar]
- setPlayerStorageValue(cid, 657814699, 1) -- Skill 11 [Gran Lux]
- doPlayerLearnInstantSpell(cid, "Escalar")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck4 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814713, 2) -- Skill 7 [Correr]
- doPlayerLearnInstantSpell(cid, "Correr")
- if ck3 == -1 then setPlayerStorageValue(cid, 657814712, 1) end -- Skill 6 [Corda Especial]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Oito") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- if ek7 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814697, 2) -- Skill 8 [Cancelar Invisibilidade]
- doPlayerLearnInstantSpell(cid, "Cancelar Invisibilidade")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck5 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814714, 2) -- Skill 8 [Bussula]
- if ck4 == -1 then setPlayerStorageValue(cid, 657814713, 1) end -- Skill 7 [Correr]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Nove") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk7 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814732, 2) -- Skill 9 [Gran Lux]
- doPlayerLearnInstantSpell(cid, "Gran Lux")
- if tk8 == -1 then setPlayerStorageValue(cid, 657814733, 1) end -- Skill 10 [Explosion Fire]
- if tk10 == -1 then setPlayerStorageValue(cid, 657814735, 1) end -- Skill 13 [Provocar Inimigo]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- return true
- elseif getPlayerVocation(cid) == 3 then
- if ck6 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814715, 2) -- Skill 9 [Debuff Drunk]
- setPlayerStorageValue(cid, 657814719, 1) -- Skill 13 [Conjurar Balas]
- doPlayerLearnInstantSpell(cid, "Debuff Drunk")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Dez") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk8 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814733, 2) -- Skill 10 [Explosion Fire]
- doPlayerLearnInstantSpell(cid, "Explosion Fire")
- if tk7 == -1 then setPlayerStorageValue(cid, 657814732, 1) end -- Skill 9 [Gran Lux]
- if tk11 == -1 then setPlayerStorageValue(cid, 657814736, 1) end -- Skill 14 [Grande Corrida]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek8 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814698, 2) -- Skill 8 [Escudo Espiritual]
- if ek9 == -1 then setPlayerStorageValue(cid, 657814699, 1) end -- Skill 11 [Gran Lux]
- if ek12 == -1 then setPlayerStorageValue(cid, 657814702, 1) end -- Skill 14 [Grande Cura]
- doPlayerLearnInstantSpell(cid, "Escudo Espiritual")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck7 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814716, 2) -- Skill 10 [Escudo Espiritual]
- doPlayerLearnInstantSpell(cid, "Escudo Espiritual")
- if ck6 == -1 then setPlayerStorageValue(cid, 657814715, 1) end -- Skill 9 [Debuff Drunk]
- if ck11 == -1 then setPlayerStorageValue(cid, 657814720, 1) end -- Skill 14 [Gran Lux]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Onze") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- if ek9 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814699, 2) -- Skill 11 [Gran Lux]
- doPlayerLearnInstantSpell(cid, "Gran Lux")
- if ek8 == -1 then setPlayerStorageValue(cid, 657814698, 1) end -- Skill 10 [Escudo Espiritual]
- if ek10 == -1 then setPlayerStorageValue(cid, 657814700, 1) end -- Skill 12 [Conjurar Balas]
- if ek13 == -1 then setPlayerStorageValue(cid, 657814703, 1) end -- Skill 15 [Remover Status]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck8 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814717, 2) -- Skill 11 [Escalar]
- doPlayerLearnInstantSpell(cid, "Escalar")
- if ck9 == -1 then setPlayerStorageValue(cid, 657814718, 1) end -- Skill 12 [Explosion Poison]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Doze") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk9 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814734, 2) -- Skill 12 [Conjurar Balas]
- setPlayerStorageValue(cid, 657814738, 1) -- Skill 16 [Explosion Ice]
- doPlayerLearnInstantSpell(cid, "Conjurar Balas")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek10 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814700, 2) -- Skill 12 [Conjurar Balas]
- doPlayerLearnInstantSpell(cid, "Conjurar Balas")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck9 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814718, 2) -- Skill 12 [Explosion Poison]
- doPlayerLearnInstantSpell(cid, "Explosion Poison")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Treze") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk10 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814735, 2) -- Skill 13 [Provocar Inimigo]
- doPlayerLearnInstantSpell(cid, "Provocar Inimigo")
- if tk11 == -1 then setPlayerStorageValue(cid, 657814736, 1) end -- Skill 14 [Grande Corrida]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek11 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814701, 2) -- Skill 13 [Grande Corrida]
- doPlayerLearnInstantSpell(cid, "Grande Corrida")
- setPlayerStorageValue(cid, 657814705, 1) -- Skill 17 [Explosion Energy]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck10 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814719, 2) -- Skill 13 [Conjurar Balas]
- doPlayerLearnInstantSpell(cid, "Conjurar Balas")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Quatorze") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk11 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814736, 2) -- Skill 14 [Grande Corrida]
- doPlayerLearnInstantSpell(cid, "Grande Corrida")
- setPlayerStorageValue(cid, 657814737, 1) -- Skill 15 [Explosion Holy]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek12 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814702, 2) -- Skill 14 [Grande Cura]
- doPlayerLearnInstantSpell(cid, "Grande Cura")
- setPlayerStorageValue(cid, 657814701, 1) -- Skill 13 [Grande Corrida]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck11 == 1 then
- if pp >= 1 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
- setPlayerStorageValue(cid, 657814720, 2) -- Skill 14 [Gran Lux]
- doPlayerLearnInstantSpell(cid, "Gran Lux")
- setPlayerStorageValue(cid, 657814721, 1) -- Skill 15 [Provocar Inimigo]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Quinze") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk12 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814737, 2) -- Skill 15 [Explosion Holy]
- doPlayerLearnInstantSpell(cid, "Explosion Holy")
- setPlayerStorageValue(cid, 657814739, 1) -- Skill 19 [Defesa Aprimorada]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek13 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814703, 2) -- Skill 15 [Remover Status]
- doPlayerLearnInstantSpell(cid, "Remover Status")
- if ek14 == -1 then setPlayerStorageValue(cid, 657814704, 1) end -- Skill 16 [Cura em Massa]
- if ek17 == -1 then setPlayerStorageValue(cid, 657814707, 1) end -- Skill 19 [Curar Parceiro]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck12 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814721, 2) -- Skill 15 [Empurrar Inimigos]
- doPlayerLearnInstantSpell(cid, "Empurrar Inimigos")
- setPlayerStorageValue(cid, 657814717, 1) -- Skill 11 [Escalar]
- setPlayerStorageValue(cid, 657814723, 1) -- Skill 19 [Paralyze]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Dezesseis") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk13 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814738, 2) -- Skill 15 [Explosion Ice]
- doPlayerLearnInstantSpell(cid, "Explosion Ice")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek14 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814704, 2) -- Skill 16 [Cura em Massa]
- doPlayerLearnInstantSpell(cid, "Cura em Massa")
- setPlayerStorageValue(cid, 657814708, 1) -- Skill 20 [Regenerar SP]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- return true
- end
- elseif (param == "Dezessete") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- if ek15 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814705, 2) -- Skill 17 [Explosion Energy]
- doPlayerLearnInstantSpell(cid, "Explosion Energy")
- setPlayerStorageValue(cid, 657814706, 1) -- Skill 18 [Regenerar Espirito]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- return true
- end
- elseif (param == "Dezoito") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- if ek16 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814706, 2) -- Skill 18 [Regenerar Espirito]
- doPlayerLearnInstantSpell(cid, "Regenerar Espirito")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck13 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814722, 2) -- Skill 18 [Explosion Mort]
- doPlayerLearnInstantSpell(cid, "Explosion Mort")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Dezenove") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- if tk14 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814739, 2) -- Skill 19 [Defesa Aprimorada]
- doPlayerLearnInstantSpell(cid, "Defesa Aprimorada")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 2 then
- if ek17 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814707, 2) -- Skill 19 [Curar Parceiro]
- doPlayerLearnInstantSpell(cid, "Curar Parceiro")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck14 == 1 then
- if pp >= 2 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
- setPlayerStorageValue(cid, 657814723, 2) -- Skill 19 [Paralyze]
- doPlayerLearnInstantSpell(cid, "Paralyze")
- setPlayerStorageValue(cid, 657814722, 1) -- Skill 18 [Explosion Mort]
- setPlayerStorageValue(cid, 657814724, 1) -- Skill 20 [Refletir Dano]
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- elseif (param == "Vinte") then
- if getPlayerVocation(cid) == 0 then
- return true
- elseif getPlayerVocation(cid) == 1 then
- return true
- elseif getPlayerVocation(cid) == 2 then
- if ek18 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814708, 2) -- Skill 20 [Regenerar SP]
- doPlayerLearnInstantSpell(cid, "Regenerar SP")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- elseif getPlayerVocation(cid) == 3 then
- if ck15 == 1 then
- if pp >= 3 then
- setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
- setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
- setPlayerStorageValue(cid, 657814724, 2) -- Skill 20 [Refletir Dano]
- doPlayerLearnInstantSpell(cid, "Refletir Danos")
- addEvent(RefreshAbility, 10, cid)
- doPlayerSendCancel(cid, "LearnSSounds")
- doPlayerSendCancel(cid, " ")
- else
- doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
- doPlayerSendCancel(cid, "AlertaSound")
- doPlayerSendCancel(cid, " ")
- end
- end
- end
- end
- return TRUE
- end
- function RefreshAbility(cid)
- local ek = getPlayerStorageValue(cid, 657814690) local ck = getPlayerStorageValue(cid, 657814709) local tk = getPlayerStorageValue(cid, 657814725)
- local ek1 = getPlayerStorageValue(cid, 657814691) local ck1 = getPlayerStorageValue(cid, 657814710) local tk1 = getPlayerStorageValue(cid, 657814726)
- local ek2 = getPlayerStorageValue(cid, 657814692) local ck2 = getPlayerStorageValue(cid, 657814711) local tk2 = getPlayerStorageValue(cid, 657814727)
- local ek3 = getPlayerStorageValue(cid, 657814693) local ck3 = getPlayerStorageValue(cid, 657814712) local tk3 = getPlayerStorageValue(cid, 657814728)
- local ek4 = getPlayerStorageValue(cid, 657814694) local ck4 = getPlayerStorageValue(cid, 657814713) local tk4 = getPlayerStorageValue(cid, 657814729)
- local ek5 = getPlayerStorageValue(cid, 657814695) local ck5 = getPlayerStorageValue(cid, 657814714) local tk5 = getPlayerStorageValue(cid, 657814730)
- local ek6 = getPlayerStorageValue(cid, 657814696) local ck6 = getPlayerStorageValue(cid, 657814715) local tk6 = getPlayerStorageValue(cid, 657814731)
- local ek7 = getPlayerStorageValue(cid, 657814697) local ck7 = getPlayerStorageValue(cid, 657814716) local tk7 = getPlayerStorageValue(cid, 657814732)
- local ek8 = getPlayerStorageValue(cid, 657814698) local ck8 = getPlayerStorageValue(cid, 657814717) local tk8 = getPlayerStorageValue(cid, 657814733)
- local ek9 = getPlayerStorageValue(cid, 657814699) local ck9 = getPlayerStorageValue(cid, 657814718) local tk9 = getPlayerStorageValue(cid, 657814734)
- local ek10 = getPlayerStorageValue(cid, 657814700) local ck10 = getPlayerStorageValue(cid, 657814719) local tk10 = getPlayerStorageValue(cid, 657814735)
- local ek11 = getPlayerStorageValue(cid, 657814701) local ck11 = getPlayerStorageValue(cid, 657814720) local tk11 = getPlayerStorageValue(cid, 657814736)
- local ek12 = getPlayerStorageValue(cid, 657814702) local ck12 = getPlayerStorageValue(cid, 657814721) local tk12 = getPlayerStorageValue(cid, 657814737)
- local ek13 = getPlayerStorageValue(cid, 657814703) local ck13 = getPlayerStorageValue(cid, 657814722) local tk13 = getPlayerStorageValue(cid, 657814738)
- local ek14 = getPlayerStorageValue(cid, 657814704) local ck14 = getPlayerStorageValue(cid, 657814723) local tk14 = getPlayerStorageValue(cid, 657814739)
- local ek15 = getPlayerStorageValue(cid, 657814705) local ck15 = getPlayerStorageValue(cid, 657814724) local pp = getPlayerStorageValue(cid, 657814750)
- local ek16 = getPlayerStorageValue(cid, 657814706)
- local ek17 = getPlayerStorageValue(cid, 657814707)
- local ek18 = getPlayerStorageValue(cid, 657814708)
- local MoneyProg = getPlayerStorageValue(cid, 85649710)
- local ManaProg = getPlayerStorageValue(cid, 85649711)
- local SummonProg = getPlayerStorageValue(cid, 85649712)
- local CraftProg = getPlayerStorageValue(cid, 85649713)
- if getPlayerVocation(cid) == 0 then
- doPlayerSendCancel(cid, "NoVocSkills")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- elseif getPlayerVocation(cid) == 1 then
- doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00 "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- elseif getPlayerVocation(cid) == 3 then
- doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.." "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- elseif getPlayerVocation(cid) == 2 then
- doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.." "..pp.."")
- doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
- doPlayerSendCancel(cid, " ")
- end
- return TRUE
- end
- function onAbility(cid)
- doPlayerSendCancel(cid, "##AbilityTree")
- doPlayerSendCancel(cid, " ")
- addEvent(doPlayerSendTextMessage, 10, cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Clique na opção 'Árvore de Habilidades' para ver suas habilidades.")
- return TRUE
- end
Add Comment
Please, Sign In to add comment