Guest User

Skills

a guest
Mar 1st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 85.86 KB | None | 0 0
  1. local message =
  2. [[
  3. Essa é a sua Árvore de Habilidades.
  4. E esses são alguns pontos importantes que você deve saber:
  5.  
  6. + Você obtém pontos de habilidade sempre que avançar de nível.
  7. + Deixe o Mouse em cima da habilidade para ver informações sobre ela, como:
  8.  
  9.     + Palavra Mágica para invocar a magia.
  10.     + Mana gasta ao usar.
  11.     + Status, se a magia é para Free ou Premium Account.
  12.     + Pontos necessários para aprender essa técnica
  13.     + Informações sobre a habilidade.
  14.    
  15. + Para aprender uma habilidade, basta clicar sobre ela.
  16. ]]
  17.  
  18. function getPlayerHP(cid)
  19.     local query = db.getResult("SELECT `healthmax` FROM `players` WHERE `id` = " .. getPlayerGUID(cid))
  20.         if query:getID() ~= -1 then
  21.     return tonumber(query:getDataString("healthmax"))
  22.         end
  23.     return 0
  24. end
  25.  
  26. function onSay(cid, words, param, channel)
  27. local ek = getPlayerStorageValue(cid, 657814690)        local ck = getPlayerStorageValue(cid, 657814709)        local tk = getPlayerStorageValue(cid, 657814725)
  28. local ek1 = getPlayerStorageValue(cid, 657814691)       local ck1 = getPlayerStorageValue(cid, 657814710)       local tk1 = getPlayerStorageValue(cid, 657814726)
  29. local ek2 = getPlayerStorageValue(cid, 657814692)       local ck2 = getPlayerStorageValue(cid, 657814711)       local tk2 = getPlayerStorageValue(cid, 657814727)
  30. local ek3 = getPlayerStorageValue(cid, 657814693)       local ck3 = getPlayerStorageValue(cid, 657814712)       local tk3 = getPlayerStorageValue(cid, 657814728)
  31. local ek4 = getPlayerStorageValue(cid, 657814694)       local ck4 = getPlayerStorageValue(cid, 657814713)       local tk4 = getPlayerStorageValue(cid, 657814729)
  32. local ek5 = getPlayerStorageValue(cid, 657814695)       local ck5 = getPlayerStorageValue(cid, 657814714)       local tk5 = getPlayerStorageValue(cid, 657814730)
  33. local ek6 = getPlayerStorageValue(cid, 657814696)       local ck6 = getPlayerStorageValue(cid, 657814715)       local tk6 = getPlayerStorageValue(cid, 657814731)
  34. local ek7 = getPlayerStorageValue(cid, 657814697)       local ck7 = getPlayerStorageValue(cid, 657814716)       local tk7 = getPlayerStorageValue(cid, 657814732)
  35. local ek8 = getPlayerStorageValue(cid, 657814698)       local ck8 = getPlayerStorageValue(cid, 657814717)       local tk8 = getPlayerStorageValue(cid, 657814733)
  36. local ek9 = getPlayerStorageValue(cid, 657814699)       local ck9 = getPlayerStorageValue(cid, 657814718)       local tk9 = getPlayerStorageValue(cid, 657814734)
  37. local ek10 = getPlayerStorageValue(cid, 657814700)      local ck10 = getPlayerStorageValue(cid, 657814719)      local tk10 = getPlayerStorageValue(cid, 657814735)
  38. local ek11 = getPlayerStorageValue(cid, 657814701)      local ck11 = getPlayerStorageValue(cid, 657814720)      local tk11 = getPlayerStorageValue(cid, 657814736)
  39. local ek12 = getPlayerStorageValue(cid, 657814702)      local ck12 = getPlayerStorageValue(cid, 657814721)      local tk12 = getPlayerStorageValue(cid, 657814737)
  40. local ek13 = getPlayerStorageValue(cid, 657814703)      local ck13 = getPlayerStorageValue(cid, 657814722)      local tk13 = getPlayerStorageValue(cid, 657814738)
  41. local ek14 = getPlayerStorageValue(cid, 657814704)      local ck14 = getPlayerStorageValue(cid, 657814723)      local tk14 = getPlayerStorageValue(cid, 657814739)
  42. local ek15 = getPlayerStorageValue(cid, 657814705)      local ck15 = getPlayerStorageValue(cid, 657814724)      local pp = getPlayerStorageValue(cid, 657814750)
  43. local ek16 = getPlayerStorageValue(cid, 657814706)
  44. local ek17 = getPlayerStorageValue(cid, 657814707)
  45. local ek18 = getPlayerStorageValue(cid, 657814708)
  46.  
  47. local MoneyProg = getPlayerStorageValue(cid, 85649710)
  48. local ManaProg = getPlayerStorageValue(cid, 85649711)
  49. local SummonProg = getPlayerStorageValue(cid, 85649712)
  50. local CraftProg = getPlayerStorageValue(cid, 85649713)
  51.    
  52. --[[
  53.         [1] - Curar (1)                         [16] - Explosion Mort (2)
  54.         [2] - Correr (1)                        [17] - Explosion Poison (2)
  55.         [3] - Explosion Fire (2)                [18] - Debuff Drunk (1)
  56.         [4] - Explosion Holy (2)                [19] - Escudo Espiritual (1)
  57.         [5] - Explosion Ice (2)                 [20] - Grande Cura (1)
  58.         [6] - Conjurar Balas (3)                [21] - Curar Parceiro (1)
  59.         [7] - Remover Status (1)                [22] - Cura em Massa (1)
  60.         [8] - Lux (1)                           [23] - Regenerar Espirito (3)
  61.         [9] - Gran Lux (1)                      [24] - Cancelar Invisibilidade (1)
  62.         [10] - Escalar (1)                      [25] - Ativar Invisibilidade (1)
  63.         [11] - Corda Especial (1)               [26] - Explosion Energy (2)
  64.         [12] - Bussula (1)                      [27] - Regenerar SP (3)
  65.         [13] - Grande Corrida (1)               [28] - Empurrar Inimigos (3)
  66.         [14] - Provocar Inimigo (1)             [29] - Paralyze (3)
  67.         [15] - Defesa Aprimorada (3)            [30] - Refletir Dano (3)
  68.     ]]
  69.     local t = string.explode(param, " ")
  70.     if (param == "Refresh") then
  71.         doPlayerSendCancel(cid, "EmailRefresh "..getCad(cid).." "..getEmail(cid).."")
  72.         if getPlayerVocation(cid) == 0 then
  73.             doPlayerSendCancel(cid, "NoVocSkills")
  74.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  75.             doPlayerSendCancel(cid, " ")
  76.         elseif getPlayerVocation(cid) == 1 then
  77.             doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00 "..pp.."")
  78.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  79.             doPlayerSendCancel(cid, " ")
  80.             if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
  81.         elseif getPlayerVocation(cid) == 3 then
  82.             doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.." "..pp.."")
  83.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  84.             doPlayerSendCancel(cid, " ")
  85.             if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
  86.         elseif getPlayerVocation(cid) == 2 then
  87.             doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.." "..pp.."")
  88.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  89.             doPlayerSendCancel(cid, " ")
  90.             if getPlayerStorageValue(cid, 020322) == 1 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 020322, 50) end
  91.         end
  92.     end
  93.     if (param == "CheckMail") then
  94.         doPlayerSendCancel(cid, "EmailRefresh "..getCad(cid).." "..getEmail(cid).."")
  95.         doPlayerSendCancel(cid, " ")
  96.     end
  97.     if t[1] == "Email" then
  98.     if not t[2] then doPlayerPopupFYI(cid, "Digite seu e-mail.") return true end
  99.         if t[3] == "1" then
  100.             doSetEmail(cid, ""..t[2].."@hotmail.com")
  101.             if getCad(cid) == 0 then doAddCad(cid, 1) end
  102.             doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@hotmail.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
  103.             doPlayerSendCancel(cid, "AtributosSounds")
  104.             doPlayerSendCancel(cid, " ")
  105.         elseif t[3] == "2" then
  106.             doSetEmail(cid, ""..t[2].."@outlook.com")
  107.             if getCad(cid) == 0 then doAddCad(cid, 1) end
  108.             doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@outlook.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
  109.             doPlayerSendCancel(cid, "AtributosSounds")
  110.             doPlayerSendCancel(cid, " ")
  111.         elseif t[3] == "3" then
  112.             doSetEmail(cid, ""..t[2].."@gmail.com")
  113.             if getCad(cid) == 0 then doAddCad(cid, 1) end
  114.             doPlayerPopupFYI(cid, "O e-mail\n["..t[2].."@gmail.com]\nfoi adicionado com sucesso!\nSua conta agora está registrada.")
  115.             doPlayerSendCancel(cid, "AtributosSounds")
  116.             doPlayerSendCancel(cid, " ")
  117.         elseif t[3] == "4" then
  118.             if not t[2] then doPlayerPopupFYI(cid, "Digite uma Recovery Key.") return true end
  119.             if t[2] == getKey(cid) then
  120.                 doPlayerPopupFYI(cid, "Recovery Key Correta!\nAgora você pode editar seu e-mail")
  121.                 doPlayerSendCancel(cid, "AtributosSounds")
  122.                 doPlayerSendCancel(cid, " ")
  123.                 doPlayerSendCancel(cid, "EmailRefresh 0  ")
  124.             else
  125.                 doPlayerPopupFYI(cid, "Recovery Key Incorreta!")
  126.                 doPlayerSendCancel(cid, "AlertaSound")
  127.                 doPlayerSendCancel(cid, " ")
  128.             end
  129.         end
  130.     end
  131.     if (param == "Says") then
  132.         if getPlayerStorageValue(cid, 1265789614) == -1 then
  133.             setPlayerStorageValue(cid, 1265789614, 1)
  134.             doPlayerSendCancel(cid, "Dialogos 1") -- Desabilitar Dialogos com NPC
  135.             doPlayerSendCancel(cid, "CancelSound")
  136.             doPlayerSendCancel(cid, " ")
  137.         else
  138.             setPlayerStorageValue(cid, 1265789614, -1)
  139.             doPlayerSendCancel(cid, "Dialogos 0") -- Habilitar Dialogos
  140.             doPlayerSendCancel(cid, "CancelSound")
  141.             doPlayerSendCancel(cid, " ")
  142.         end
  143.     end
  144.    
  145.         local vita = getPlayerStorageValue(cid, 680050)
  146.         local espi = getPlayerStorageValue(cid, 680051)
  147.         local expe = getPlayerStorageValue(cid, 680052)
  148.         local ppoint = getPlayerStorageValue(cid, 680055)
  149.         local DES = getPlayerSkillLevel(cid, 5)
  150.         local MultXP = 0
  151.         local XPEvent = 0
  152.         if getEXPEvent(cid) == 1 then
  153.             XPEvent = 0
  154.         else
  155.             XPEvent = getEXPEvent(cid)
  156.         end
  157.         if getPlayerLevel(cid) < 30 then
  158.             MultXP = (31 - getPlayerLevel(cid)) + XPEvent
  159.         else
  160.             MultXP = XPEvent
  161.         end
  162.    
  163.     if (param == "Money") then
  164.         if pp >= 1 then
  165.             if MoneyProg < 100 then
  166.                 setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  167.                 doPlayerSendCancel(cid, "Master "..(MoneyProg +1).." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  168.                
  169.                 if MoneyProg == -1 then
  170.                     setPlayerStorageValue(cid, 85649710, getPlayerStorageValue(cid, 85649710) + 2)
  171.                     doPlayerSendCancel(cid, "AtributosSounds")
  172.                     doPlayerSendCancel(cid, " ")
  173.                 else
  174.                     setPlayerStorageValue(cid, 85649710, getPlayerStorageValue(cid, 85649710) + 1)
  175.                     doPlayerSendCancel(cid, "AtributosSounds")
  176.                     doPlayerSendCancel(cid, " ")
  177.                 end
  178.                
  179.                 if MoneyProg == 99 then
  180.                     doPlayerPopupFYI(cid, "Skill Master: Dinheiro DESBLOQUEADA!\n\nDobra as recompensas em gold obtidas\natravés do sistema de Tasks.")
  181.                     doPlayerSendCancel(cid, "LearnSSounds")
  182.                     doPlayerSendCancel(cid, " ")
  183.                    
  184.                     --==== CONQUISTA ==--
  185.                     setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
  186.                     if getPlayerStorageValue(cid, 764335) == 3 then
  187.                         setPlayerStorageValue(cid, 382281, 1)
  188.                         addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
  189.                         addEvent(doPlayerSendCancel, 3010, cid, " ")
  190.                     end
  191.                 end
  192.                 addEvent(RefreshAbility, 10, cid)
  193.             else
  194.                 doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
  195.                 doPlayerSendCancel(cid, "AlertaSound")
  196.                 doPlayerSendCancel(cid, " ")
  197.             end
  198.         else
  199.             doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  200.             doPlayerSendCancel(cid, "AlertaSound")
  201.             doPlayerSendCancel(cid, " ")
  202.         end
  203.     elseif (param == "Mana") then
  204.         if pp >= 1 then
  205.             if ManaProg < 100 then
  206.                 setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  207.                 doPlayerSendCancel(cid, "Master "..MoneyProg.." "..(ManaProg +1).." "..SummonProg.." "..CraftProg.."")
  208.                
  209.                 if ManaProg == -1 then
  210.                     setPlayerStorageValue(cid, 85649711, getPlayerStorageValue(cid, 85649711) + 2)
  211.                     doPlayerSendCancel(cid, "AtributosSounds")
  212.                     doPlayerSendCancel(cid, " ")
  213.                 else
  214.                     setPlayerStorageValue(cid, 85649711, getPlayerStorageValue(cid, 85649711) + 1)
  215.                     doPlayerSendCancel(cid, "AtributosSounds")
  216.                     doPlayerSendCancel(cid, " ")
  217.                 end
  218.                
  219.                 if ManaProg == 99 then
  220.                     doPlayerPopupFYI(cid, "Skill Master: Mana DESBLOQUEADA!\n\nAumenta sua taxa de regeneração\n de HP/MP dentro de Protection Zone (PZ).")
  221.                     doPlayerSendCancel(cid, "LearnSSounds")
  222.                     doPlayerSendCancel(cid, " ")
  223.                    
  224.                     --==== CONQUISTA ==--
  225.                     setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
  226.                     if getPlayerStorageValue(cid, 764335) == 3 then
  227.                         setPlayerStorageValue(cid, 382281, 1)
  228.                         addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
  229.                         addEvent(doPlayerSendCancel, 3010, cid, " ")
  230.                     end
  231.                 end
  232.                 addEvent(RefreshAbility, 10, cid)
  233.             else
  234.                 doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
  235.                 doPlayerSendCancel(cid, "AlertaSound")
  236.                 doPlayerSendCancel(cid, " ")
  237.             end
  238.         else
  239.             doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  240.             doPlayerSendCancel(cid, "AlertaSound")
  241.             doPlayerSendCancel(cid, " ")
  242.         end
  243.     elseif (param == "Summon") then
  244.         if pp >= 1 then
  245.             if SummonProg < 100 then
  246.                 setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  247.                 doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..(SummonProg +1).." "..CraftProg.."")
  248.                
  249.                 if SummonProg == -1 then
  250.                     setPlayerStorageValue(cid, 85649712, getPlayerStorageValue(cid, 85649712) + 2)
  251.                     doPlayerSendCancel(cid, "AtributosSounds")
  252.                     doPlayerSendCancel(cid, " ")
  253.                 else
  254.                     setPlayerStorageValue(cid, 85649712, getPlayerStorageValue(cid, 85649712) + 1)
  255.                     doPlayerSendCancel(cid, "AtributosSounds")
  256.                     doPlayerSendCancel(cid, " ")
  257.                 end
  258.                
  259.                 if SummonProg == 99 then
  260.                     doPlayerPopupFYI(cid, "Skill Master: Summon DESBLOQUEADA!\n\nTodos os Summons ganham cura em área.")
  261.                     doPlayerSendCancel(cid, "LearnSSounds")
  262.                     doPlayerSendCancel(cid, " ")
  263.                    
  264.                     --==== CONQUISTA ==--
  265.                     setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
  266.                     if getPlayerStorageValue(cid, 764335) == 3 then
  267.                         setPlayerStorageValue(cid, 382281, 1)
  268.                         addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
  269.                         addEvent(doPlayerSendCancel, 3010, cid, " ")
  270.                     end
  271.                 end
  272.                 addEvent(RefreshAbility, 10, cid)
  273.             else
  274.                 doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
  275.                 doPlayerSendCancel(cid, "AlertaSound")
  276.                 doPlayerSendCancel(cid, " ")
  277.             end
  278.         else
  279.             doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  280.             doPlayerSendCancel(cid, "AlertaSound")
  281.             doPlayerSendCancel(cid, " ")
  282.         end
  283.     elseif (param == "Craft") then
  284.         if pp >= 1 then
  285.             if CraftProg < 100 then
  286.                 setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  287.                 doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..(CraftProg +1).."")
  288.                
  289.                 if CraftProg == -1 then
  290.                     setPlayerStorageValue(cid, 85649713, getPlayerStorageValue(cid, 85649713) + 2)
  291.                     doPlayerSendCancel(cid, "AtributosSounds")
  292.                     doPlayerSendCancel(cid, " ")
  293.                 else
  294.                     setPlayerStorageValue(cid, 85649713, getPlayerStorageValue(cid, 85649713) + 1)
  295.                     doPlayerSendCancel(cid, "AtributosSounds")
  296.                     doPlayerSendCancel(cid, " ")
  297.                 end
  298.                
  299.                 if CraftProg == 99 then
  300.                     doPlayerPopupFYI(cid, "Skill Master: Craft DESBLOQUEADA!\n\nTodos os monstros possuem chance\nde droparem containers de craft.")
  301.                     doPlayerSendCancel(cid, "LearnSSounds")
  302.                     doPlayerSendCancel(cid, " ")
  303.                    
  304.                     --==== CONQUISTA ==--
  305.                     setPlayerStorageValue(cid, 764335, getPlayerStorageValue(cid, 764335) + 1)
  306.                     if getPlayerStorageValue(cid, 764335) == 3 then
  307.                         setPlayerStorageValue(cid, 382281, 1)
  308.                         addEvent(doPlayerSendCancel, 3000, cid, "!@Archivements 51 "..getPlayerSex(cid).."")
  309.                         addEvent(doPlayerSendCancel, 3010, cid, " ")
  310.                     end
  311.                 end
  312.                 addEvent(RefreshAbility, 10, cid)
  313.             else
  314.                 doPlayerPopupFYI(cid, "Você não pode adicionar mais pontos aqui.")
  315.                 doPlayerSendCancel(cid, "AlertaSound")
  316.                 doPlayerSendCancel(cid, " ")
  317.             end
  318.         else
  319.             doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  320.             doPlayerSendCancel(cid, "AlertaSound")
  321.             doPlayerSendCancel(cid, " ")
  322.         end
  323.     end
  324.    
  325.     if (param == "VocTanker") then
  326.         if getPlayerStorageValue(cid, 974631852) == -1 then
  327.             setPlayerStorageValue(cid, 974631852, 1)
  328.             setPlayerStorageValue(cid, 020319, 50)
  329.             setPlayerStorageValue(cid, 657814725, 2) -- Skill 1 [Correr]
  330.             setPlayerStorageValue(cid, 657814726, 1) -- Skill 2 [Curar]
  331.             setPlayerStorageValue(cid, 657814727, 2) -- Skill 3 [Corda Especial]
  332.             setPlayerStorageValue(cid, 657814728, 1) -- Skill 4 [Lux]
  333.             setPlayerStorageValue(cid, 657814729, 1) -- Skill 5 [Escalar]
  334.             setPlayerStorageValue(cid, 657814731, 1) -- Skill 7 [Bussula]
  335.             setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
  336.             setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
  337.             setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
  338.             if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
  339.             doPlayerLearnInstantSpell(cid, "Correr")
  340.             doPlayerLearnInstantSpell(cid, "Corda Especial")
  341.             doPlayerSetVocation(cid, 1)
  342.             doSendMagicEffect(getPlayerPosition(cid), 49)
  343.             addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Tanker]\n==================\n")
  344.             addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
  345.             addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
  346.             addEvent(doPlayerSendCancel, 8011, cid, " ")
  347.             addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
  348.             addEvent(doPlayerSendCancel, 10011, cid, " ")
  349.             addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
  350.             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'.")
  351.             addEvent(doPlayerSendCancel, 18011, cid, " ")
  352.             doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00")
  353.             doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
  354.             doPlayerSendCancel(cid, "!DelVocational")
  355.             doPlayerSendCancel(cid, " ")
  356.             addEvent(onAbility, 25000, cid)
  357.         end
  358.     elseif (param == "VocCurandeiro") then
  359.         if getPlayerStorageValue(cid, 974631852) == -1 then
  360.             setPlayerStorageValue(cid, 974631852, 1)
  361.             setPlayerStorageValue(cid, 020319, 50)
  362.             setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
  363.             setPlayerStorageValue(cid, 657814690, 2) -- Skill 1 [Curar]
  364.             setPlayerStorageValue(cid, 657814691, 2) -- Skill 2 [Correr]
  365.             setPlayerStorageValue(cid, 657814692, 2) -- Skill 3 [Lux]
  366.             setPlayerStorageValue(cid, 657814693, 2) -- Skill 4 [Corda Especial]
  367.             setPlayerStorageValue(cid, 657814694, 1) -- Skill 5 [Bussula]
  368.             setPlayerStorageValue(cid, 657814696, 1) -- Skill 7 [Escalar]
  369.             setPlayerStorageValue(cid, 657814697, 1) -- Skill 8 [Invisibilidade]
  370.             setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
  371.             if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
  372.             setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
  373.             doPlayerLearnInstantSpell(cid, "Curar")
  374.             doPlayerLearnInstantSpell(cid, "Correr")
  375.             doPlayerLearnInstantSpell(cid, "Lux")
  376.             doPlayerLearnInstantSpell(cid, "Corda Especial")
  377.             doPlayerSetVocation(cid, 2)
  378.             doSendMagicEffect(getPlayerPosition(cid), 49)
  379.             addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Curandeiro]\n==================\n")
  380.             addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
  381.             addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
  382.             addEvent(doPlayerSendCancel, 8011, cid, " ")
  383.             addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
  384.             addEvent(doPlayerSendCancel, 10011, cid, " ")
  385.             addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
  386.             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'.")
  387.             addEvent(doPlayerSendCancel, 18011, cid, " ")
  388.             doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.."")
  389.             doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
  390.             doPlayerSendCancel(cid, "!DelVocational")
  391.             doPlayerSendCancel(cid, " ")
  392.             addEvent(onAbility, 26000, cid)
  393.         end
  394.     elseif (param == "VocEspecialista") then
  395.         if getPlayerStorageValue(cid, 974631852) == -1 then
  396.             setPlayerStorageValue(cid, 974631852, 1)
  397.             setPlayerStorageValue(cid, 020319, 50)
  398.             setPlayerStorageValue(cid, 020322, 1) -- Quest: Habilidades
  399.             setPlayerStorageValue(cid, 657814709, 2) -- Skill 1 [Curar]
  400.             setPlayerStorageValue(cid, 657814710, 2) -- Skill 4 [Lux]
  401.             setPlayerStorageValue(cid, 657814711, 1) -- Skill 5 [Remover Status]
  402.             setPlayerStorageValue(cid, 657814714, 1) -- Skill 8 [Bussula]
  403.             if getPlayerLevel(cid) > 30 then setPlayerStorageValue(cid, 657814750, (getPlayerLevel(cid) - 30)) else setPlayerStorageValue(cid, 657814750, 0) end -- Pontos Habilidade
  404.             setPlayerStorageValue(cid, 680055, getPlayerLevel(cid)) -- Pontos de Atributo
  405.             setPlayerStorageValue(cid, 542225, 0) -- Limite para receber Pontos Habilidade
  406.             doPlayerLearnInstantSpell(cid, "Curar")
  407.             doPlayerLearnInstantSpell(cid, "Lux")
  408.             doPlayerSetVocation(cid, 3)
  409.             doSendMagicEffect(getPlayerPosition(cid), 49)
  410.             addEvent(doPlayerSendTextMessage, 1000, cid, 22, "==================\nNEW VOCATION\n[Especialista]\n==================\n")
  411.             addEvent(doPlayerSendTextMessage, 8000, cid, MESSAGE_INFO_DESCR, "=================\nMISSAO COMPLETADA!\n=================")
  412.             addEvent(doPlayerSendCancel, 8010, cid, "QuestEndSound")
  413.             addEvent(doPlayerSendCancel, 8011, cid, " ")
  414.             addEvent(doPlayerSendCancel, 10010, cid, "@MissionDesbloqueada")
  415.             addEvent(doPlayerSendCancel, 10011, cid, " ")
  416.             addEvent(doPlayerSendCancel, 18000, cid, "##TutorDois")
  417.             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'.")
  418.             addEvent(doPlayerSendCancel, 18011, cid, " ")
  419.             doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.."")
  420.             doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..expe.." "..(ppoint + getPlayerLevel(cid)).." "..DES.."")
  421.             doPlayerSendCancel(cid, "!DelVocational")
  422.             doPlayerSendCancel(cid, " ")
  423.             addEvent(onAbility, 25000, cid)
  424.         end
  425.     elseif (param == "AddVitalidade") then
  426.         if getPlayerVocation(cid) == 0 then
  427.             return true
  428.         elseif getPlayerVocation(cid) == 1 then
  429.             if(getTilePzInfo(getCreaturePosition(cid))) then
  430.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  431.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  432.                     setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
  433.                     setCreatureMaxHealth(cid, getPlayerHP(cid) + 25)
  434.                     doCreatureAddHealth(cid, getPlayerHP(cid) + 25)
  435.                     local playerid = getPlayerGUID(cid)
  436.                     db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 25).." WHERE `id` = " .. playerid .. ";")
  437.                    
  438.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  439.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +25")
  440.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
  441.                     doPlayerSendCancel(cid, "TankerAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  442.                     doPlayerSendCancel(cid, "AtributosSounds")
  443.                     doPlayerSendCancel(cid, " ")
  444.                 else
  445.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  446.                     doPlayerSendCancel(cid, "AlertaSound")
  447.                     doPlayerSendCancel(cid, " ")
  448.                 end
  449.             else
  450.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  451.                 doPlayerSendCancel(cid, "AlertaSound")
  452.                 doPlayerSendCancel(cid, " ")
  453.             end
  454.         elseif getPlayerVocation(cid) == 3 then
  455.             if(getTilePzInfo(getCreaturePosition(cid))) then
  456.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  457.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  458.                     setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
  459.                     local playerid = getPlayerGUID(cid)
  460.                     setCreatureMaxHealth(cid, getPlayerHP(cid) + 15)
  461.                     doCreatureAddHealth(cid, getPlayerHP(cid) + 15)
  462.                     db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 15).." WHERE `id` = " .. playerid .. ";")
  463.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  464.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +15")
  465.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
  466.                     doPlayerSendCancel(cid, "EspecialistaAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  467.                     doPlayerSendCancel(cid, "AtributosSounds")
  468.                     doPlayerSendCancel(cid, " ")
  469.                 else
  470.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  471.                     doPlayerSendCancel(cid, "AlertaSound")
  472.                     doPlayerSendCancel(cid, " ")
  473.                 end
  474.             else
  475.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  476.                 doPlayerSendCancel(cid, "AlertaSound")
  477.                 doPlayerSendCancel(cid, " ")
  478.             end
  479.         elseif getPlayerVocation(cid) == 2 then
  480.             if(getTilePzInfo(getCreaturePosition(cid))) then
  481.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  482.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  483.                     setPlayerStorageValue(cid, 680050, getPlayerStorageValue(cid, 680050) + 1)
  484.                     local playerid = getPlayerGUID(cid)
  485.                     setCreatureMaxHealth(cid, getPlayerHP(cid) + 10)
  486.                     doCreatureAddHealth(cid, getPlayerHP(cid) + 10)
  487.                     db.executeQuery("UPDATE `players` SET `healthmax` = "..(getPlayerHP(cid) + 10).." WHERE `id` = " .. playerid .. ";")
  488.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  489.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu HP Máximo aumentou em +10")
  490.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Vitalidade]\n==================")
  491.                     doPlayerSendCancel(cid, "CurandeiroAtributos "..(vita+1).." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  492.                     doPlayerSendCancel(cid, "AtributosSounds")
  493.                     doPlayerSendCancel(cid, " ")
  494.                 else
  495.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  496.                     doPlayerSendCancel(cid, "AlertaSound")
  497.                     doPlayerSendCancel(cid, " ")
  498.                 end
  499.             else
  500.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  501.                 doPlayerSendCancel(cid, "AlertaSound")
  502.                 doPlayerSendCancel(cid, " ")
  503.             end
  504.         end
  505.     elseif (param == "AddEspiritualidade") then
  506.         if getPlayerVocation(cid) == 0 then
  507.             return true
  508.         elseif getPlayerVocation(cid) == 1 then
  509.             if(getTilePzInfo(getCreaturePosition(cid))) then
  510.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  511.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  512.                     setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
  513.                     setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 10)
  514.                     doCreatureAddMana(cid, getCreatureMaxMana(cid))
  515.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  516.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +10")
  517.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
  518.                     doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  519.                     doPlayerSendCancel(cid, "AtributosSounds")
  520.                     doPlayerSendCancel(cid, " ")
  521.                 else
  522.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  523.                     doPlayerSendCancel(cid, "AlertaSound")
  524.                     doPlayerSendCancel(cid, " ")
  525.                 end
  526.             else
  527.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  528.                 doPlayerSendCancel(cid, "AlertaSound")
  529.                 doPlayerSendCancel(cid, " ")
  530.             end
  531.         elseif getPlayerVocation(cid) == 3 then
  532.             if(getTilePzInfo(getCreaturePosition(cid))) then
  533.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  534.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  535.                     setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
  536.                     setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 15)
  537.                     doCreatureAddMana(cid, getCreatureMaxMana(cid))
  538.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  539.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +15")
  540.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
  541.                     doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  542.                     doPlayerSendCancel(cid, "AtributosSounds")
  543.                     doPlayerSendCancel(cid, " ")
  544.                 else
  545.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  546.                     doPlayerSendCancel(cid, "AlertaSound")
  547.                     doPlayerSendCancel(cid, " ")
  548.                 end
  549.             else
  550.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  551.                 doPlayerSendCancel(cid, "AlertaSound")
  552.                 doPlayerSendCancel(cid, " ")
  553.             end
  554.         elseif getPlayerVocation(cid) == 2 then
  555.             if(getTilePzInfo(getCreaturePosition(cid))) then
  556.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  557.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  558.                     setPlayerStorageValue(cid, 680051, getPlayerStorageValue(cid, 680051) + 1)
  559.                     setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 25)
  560.                     doCreatureAddMana(cid, getCreatureMaxMana(cid))
  561.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  562.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu MP Máximo aumentou em +25")
  563.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Espiritualidade]\n==================")
  564.                     doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..(espi+1).." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  565.                     doPlayerSendCancel(cid, "AtributosSounds")
  566.                     doPlayerSendCancel(cid, " ")
  567.                 else
  568.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  569.                     doPlayerSendCancel(cid, "AlertaSound")
  570.                     doPlayerSendCancel(cid, " ")
  571.                 end
  572.             else
  573.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  574.                 doPlayerSendCancel(cid, "AlertaSound")
  575.                 doPlayerSendCancel(cid, " ")
  576.             end
  577.         end
  578.     elseif (param == "AddCapacidade") then
  579.         if getPlayerVocation(cid) == 0 then
  580.             return true
  581.         elseif getPlayerVocation(cid) == 1 then
  582.             if(getTilePzInfo(getCreaturePosition(cid))) then
  583.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  584.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  585.                     doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 15))
  586.                     doPlayerSave(cid)
  587.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  588.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +15")
  589.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
  590.                     doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  591.                     doPlayerSendCancel(cid, "AtributosSounds")
  592.                     doPlayerSendCancel(cid, " ")
  593.                 else
  594.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  595.                     doPlayerSendCancel(cid, "AlertaSound")
  596.                     doPlayerSendCancel(cid, " ")
  597.                 end
  598.             else
  599.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  600.                 doPlayerSendCancel(cid, "AlertaSound")
  601.                 doPlayerSendCancel(cid, " ")
  602.             end
  603.         elseif getPlayerVocation(cid) == 3 then
  604.             if(getTilePzInfo(getCreaturePosition(cid))) then
  605.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  606.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  607.                     doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 20))
  608.                     doPlayerSave(cid)
  609.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  610.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +20")
  611.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
  612.                     doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  613.                     doPlayerSendCancel(cid, "AtributosSounds")
  614.                     doPlayerSendCancel(cid, " ")
  615.                 else
  616.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  617.                     doPlayerSendCancel(cid, "AlertaSound")
  618.                     doPlayerSendCancel(cid, " ")
  619.                 end
  620.             else
  621.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  622.                 doPlayerSendCancel(cid, "AlertaSound")
  623.                 doPlayerSendCancel(cid, " ")
  624.             end
  625.         elseif getPlayerVocation(cid) == 2 then
  626.             if(getTilePzInfo(getCreaturePosition(cid))) then
  627.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  628.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  629.                     doPlayerSetMaxCapacity(cid, (getPlayerCap(cid) + 10))
  630.                     doPlayerSave(cid)
  631.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  632.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Capacidade Máxima aumentou em +10")
  633.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Capacidade]\n==================")
  634.                     doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..expe.." "..(ppoint-1).." "..DES.." "..MultXP.."")
  635.                     doPlayerSendCancel(cid, "AtributosSounds")
  636.                     doPlayerSendCancel(cid, " ")
  637.                 else
  638.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  639.                     doPlayerSendCancel(cid, "AlertaSound")
  640.                     doPlayerSendCancel(cid, " ")
  641.                 end
  642.             else
  643.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  644.                 doPlayerSendCancel(cid, "AlertaSound")
  645.                 doPlayerSendCancel(cid, " ")
  646.             end
  647.         end
  648.     elseif (param == "AddPotencia") then
  649.         if getPlayerVocation(cid) == 0 then
  650.             doPlayerPopupFYI(cid, "Somente jogadores com Vocation podem adicionar pontos aqui.")
  651.             doPlayerSendCancel(cid, "AlertaSound")
  652.             doPlayerSendCancel(cid, " ")
  653.         return true
  654.         elseif getPlayerVocation(cid) == 1 then
  655.         if(getTilePzInfo(getCreaturePosition(cid))) then
  656.             if getPlayerStorageValue(cid, 680055) == 1 then
  657.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  658.                 setPlayerStorageValue(cid, 688855, 1)
  659.                 local fist = getPlayerSkillLevel(cid, 0)
  660.                 local playerid = getPlayerGUID(cid)
  661.                 local mount = 1
  662.                 doRemoveCreature(cid)
  663.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
  664.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  665.                 doPlayerSendCancel(cid, "#DigitarPontos 1")
  666.                 doPlayerSendCancel(cid, " ")
  667.             else
  668.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  669.                 doPlayerSendCancel(cid, "AlertaSound")
  670.                 doPlayerSendCancel(cid, " ")
  671.             end
  672.         else
  673.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  674.             doPlayerSendCancel(cid, "AlertaSound")
  675.             doPlayerSendCancel(cid, " ")
  676.         end
  677.         elseif getPlayerVocation(cid) == 3 then
  678.         if(getTilePzInfo(getCreaturePosition(cid))) then
  679.             if getPlayerStorageValue(cid, 680055) == 1 then
  680.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  681.                 setPlayerStorageValue(cid, 688855, 1)
  682.                 local fist = getPlayerSkillLevel(cid, 0)
  683.                 local playerid = getPlayerGUID(cid)
  684.                 local mount = 1
  685.                 doRemoveCreature(cid)
  686.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
  687.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  688.                 doPlayerSendCancel(cid, "#DigitarPontos 1")
  689.                 doPlayerSendCancel(cid, " ")
  690.             else
  691.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  692.                 doPlayerSendCancel(cid, "AlertaSound")
  693.                 doPlayerSendCancel(cid, " ")
  694.             end
  695.         else
  696.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  697.             doPlayerSendCancel(cid, "AlertaSound")
  698.             doPlayerSendCancel(cid, " ")
  699.         end
  700.         elseif getPlayerVocation(cid) == 2 then
  701.         if(getTilePzInfo(getCreaturePosition(cid))) then
  702.             if getPlayerStorageValue(cid, 680055) == 1 then
  703.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  704.                 setPlayerStorageValue(cid, 688855, 1)
  705.                 local fist = getPlayerSkillLevel(cid, 0)
  706.                 local playerid = getPlayerGUID(cid)
  707.                 local mount = 1
  708.                 doRemoveCreature(cid)
  709.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
  710.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  711.                 doPlayerSendCancel(cid, "#DigitarPontos 1")
  712.                 doPlayerSendCancel(cid, " ")
  713.             else
  714.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  715.                 doPlayerSendCancel(cid, "AlertaSound")
  716.                 doPlayerSendCancel(cid, " ")
  717.             end
  718.         else
  719.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  720.             doPlayerSendCancel(cid, "AlertaSound")
  721.             doPlayerSendCancel(cid, " ")
  722.         end
  723.         end
  724.     elseif (param == "AddExperiencia") then
  725.         if getPlayerVocation(cid) == 0 then
  726.             return true
  727.         elseif getPlayerVocation(cid) == 1 then
  728.             if(getTilePzInfo(getCreaturePosition(cid))) then
  729.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  730.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  731.                     setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
  732.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  733.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
  734.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
  735.                     doPlayerSendCancel(cid, "TankerAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
  736.                     doPlayerSendCancel(cid, "AtributosSounds")
  737.                     doPlayerSendCancel(cid, " ")
  738.                 else
  739.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  740.                     doPlayerSendCancel(cid, "AlertaSound")
  741.                     doPlayerSendCancel(cid, " ")
  742.                 end
  743.             else
  744.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  745.                 doPlayerSendCancel(cid, "AlertaSound")
  746.                 doPlayerSendCancel(cid, " ")
  747.             end
  748.         elseif getPlayerVocation(cid) == 3 then
  749.             if(getTilePzInfo(getCreaturePosition(cid))) then
  750.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  751.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  752.                     setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
  753.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  754.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
  755.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
  756.                     doPlayerSendCancel(cid, "EspecialistaAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
  757.                     doPlayerSendCancel(cid, "AtributosSounds")
  758.                     doPlayerSendCancel(cid, " ")
  759.                 else
  760.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  761.                     doPlayerSendCancel(cid, "AlertaSound")
  762.                     doPlayerSendCancel(cid, " ")
  763.                 end
  764.             else
  765.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  766.                 doPlayerSendCancel(cid, "AlertaSound")
  767.                 doPlayerSendCancel(cid, " ")
  768.             end
  769.         elseif getPlayerVocation(cid) == 2 then
  770.             if(getTilePzInfo(getCreaturePosition(cid))) then
  771.                 if getPlayerStorageValue(cid, 680055) >= 1 then
  772.                     setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  773.                     setPlayerStorageValue(cid, 680052, getPlayerStorageValue(cid, 680052) + 1)
  774.                     doSendMagicEffect(getPlayerPosition(cid), 14)
  775.                     addEvent(doPlayerSendTextMessage, 1000, cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua EXP EXTRA aumentou em +1")
  776.                     addEvent(doPlayerSendTextMessage, 1010, cid, 22, "==================\nVOCÊ AVANÇOU EM\n[Experiência]\n==================")
  777.                     doPlayerSendCancel(cid, "CurandeiroAtributos "..vita.." "..espi.." "..(expe+1).." "..(ppoint-1).." "..DES.." "..MultXP.."")
  778.                     doPlayerSendCancel(cid, "AtributosSounds")
  779.                     doPlayerSendCancel(cid, " ")
  780.                 else
  781.                     doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  782.                     doPlayerSendCancel(cid, "AlertaSound")
  783.                     doPlayerSendCancel(cid, " ")
  784.                 end
  785.             else
  786.                 doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  787.                 doPlayerSendCancel(cid, "AlertaSound")
  788.                 doPlayerSendCancel(cid, " ")
  789.             end
  790.         end
  791.     elseif (param == "AddDestreza") then
  792.         if getPlayerVocation(cid) == 0 then
  793.             doPlayerPopupFYI(cid, "Somente jogadores com Vocation podem adicionar pontos aqui.")
  794.             doPlayerSendCancel(cid, "AlertaSound")
  795.             doPlayerSendCancel(cid, " ")
  796.         return true
  797.         elseif getPlayerVocation(cid) == 1 then
  798.         if(getTilePzInfo(getCreaturePosition(cid))) then
  799.             if getPlayerStorageValue(cid, 680055) == 1 then
  800.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  801.                 setPlayerStorageValue(cid, 688856, 1)
  802.                 local DEST = getPlayerSkillLevel(cid, 5)
  803.                 local playerid = getPlayerGUID(cid)
  804.                 local mount = 1
  805.                 doRemoveCreature(cid)
  806.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
  807.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  808.                 doPlayerSendCancel(cid, "#DigitarPontos 0")
  809.                 doPlayerSendCancel(cid, " ")
  810.             else
  811.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  812.                 doPlayerSendCancel(cid, "AlertaSound")
  813.                 doPlayerSendCancel(cid, " ")
  814.             end
  815.         else
  816.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  817.             doPlayerSendCancel(cid, "AlertaSound")
  818.             doPlayerSendCancel(cid, " ")
  819.         end
  820.         elseif getPlayerVocation(cid) == 3 then
  821.         if(getTilePzInfo(getCreaturePosition(cid))) then
  822.             if getPlayerStorageValue(cid, 680055) == 1 then
  823.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  824.                 setPlayerStorageValue(cid, 688856, 1)
  825.                 local DEST = getPlayerSkillLevel(cid, 5)
  826.                 local playerid = getPlayerGUID(cid)
  827.                 local mount = 1
  828.                 doRemoveCreature(cid)
  829.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
  830.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  831.                 doPlayerSendCancel(cid, "#DigitarPontos 0")
  832.                 doPlayerSendCancel(cid, " ")
  833.             else
  834.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  835.                 doPlayerSendCancel(cid, "AlertaSound")
  836.                 doPlayerSendCancel(cid, " ")
  837.             end
  838.         else
  839.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  840.             doPlayerSendCancel(cid, "AlertaSound")
  841.             doPlayerSendCancel(cid, " ")
  842.         end
  843.         elseif getPlayerVocation(cid) == 2 then
  844.         if(getTilePzInfo(getCreaturePosition(cid))) then
  845.             if getPlayerStorageValue(cid, 680055) == 1 then
  846.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - 1)
  847.                 setPlayerStorageValue(cid, 688856, 1)
  848.                 local DEST = getPlayerSkillLevel(cid, 5)
  849.                 local playerid = getPlayerGUID(cid)
  850.                 local mount = 1
  851.                 doRemoveCreature(cid)
  852.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
  853.             elseif getPlayerStorageValue(cid, 680055) > 1 then
  854.                 doPlayerSendCancel(cid, "#DigitarPontos 0")
  855.                 doPlayerSendCancel(cid, " ")
  856.             else
  857.                 doPlayerPopupFYI(cid, "Você não possui pontos de atributos suficientes no momento.")
  858.                 doPlayerSendCancel(cid, "AlertaSound")
  859.                 doPlayerSendCancel(cid, " ")
  860.             end
  861.         else
  862.             doPlayerPopupFYI(cid, "ALERTA: Somente em Protection Zone.")
  863.             doPlayerSendCancel(cid, "AlertaSound")
  864.             doPlayerSendCancel(cid, " ")
  865.         end
  866.         end
  867.     end
  868.    
  869.     local t = string.explode(param, ",")
  870.     if t[1] == "PotAdd" then
  871.         if tonumber(t[2]) then
  872.             if getPlayerStorageValue(cid, 680055) >= tonumber(t[2]) then
  873.                 local mount = t[2]
  874.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - mount)
  875.                 setPlayerStorageValue(cid, 688855, 1)
  876.                 local fist = getPlayerSkillLevel(cid, 0)
  877.                 local playerid = getPlayerGUID(cid)
  878.                 doRemoveCreature(cid)
  879.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. fist + mount ..", `count` = 0 WHERE `skillid` = 0 and `player_id` = " .. playerid .. ";")
  880.             else
  881.                 doPlayerPopupFYI(cid, "ALERTA: Você não possui tantos pontos disponíveis.")
  882.                 doPlayerSendCancel(cid, "AlertaSound")
  883.                 doPlayerSendCancel(cid, " ")
  884.             end
  885.         else
  886.             doPlayerPopupFYI(cid, "ALERTA: Somente numeros.")
  887.             doPlayerSendCancel(cid, "AlertaSound")
  888.             doPlayerSendCancel(cid, " ")
  889.         end
  890.     end
  891.     if t[1] == "DezAdd" then
  892.         if tonumber(t[2]) then
  893.             if getPlayerStorageValue(cid, 680055) >= tonumber(t[2]) then
  894.                 local mount = t[2]
  895.                 setPlayerStorageValue(cid, 680055, getPlayerStorageValue(cid, 680055) - mount)
  896.                 setPlayerStorageValue(cid, 688856, 1)
  897.                 local DEST = getPlayerSkillLevel(cid, 5)
  898.                 local playerid = getPlayerGUID(cid)
  899.                 doRemoveCreature(cid)
  900.                 db.executeQuery("UPDATE `player_skills` SET `value` = ".. DEST + mount ..", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. playerid .. ";")
  901.             else
  902.                 doPlayerPopupFYI(cid, "ALERTA: Você não possui tantos pontos disponíveis.")
  903.                 doPlayerSendCancel(cid, "AlertaSound")
  904.                 doPlayerSendCancel(cid, " ")
  905.             end
  906.         else
  907.             doPlayerPopupFYI(cid, "ALERTA: Somente numeros.")
  908.             doPlayerSendCancel(cid, "AlertaSound")
  909.             doPlayerSendCancel(cid, " ")
  910.         end
  911.     end
  912.     if (param == "Um") then
  913.         return true
  914.     elseif (param == "Dois") then
  915.         if getPlayerVocation(cid) == 0 then
  916.             return true
  917.         elseif getPlayerVocation(cid) == 1 then
  918.             if tk1 == 1 then
  919.                 if pp >= 1 then
  920.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  921.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  922.                     setPlayerStorageValue(cid, 657814726, 2) -- Skill 2 [Curar]
  923.                     doPlayerLearnInstantSpell(cid, "Curar")
  924.                     addEvent(RefreshAbility, 10, cid)
  925.                      
  926.                     doPlayerSendCancel(cid, "LearnSSounds")
  927.                     doPlayerSendCancel(cid, " ")
  928.                 else
  929.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  930.                     doPlayerSendCancel(cid, "AlertaSound")
  931.                     doPlayerSendCancel(cid, " ")
  932.                 end
  933.             end
  934.         elseif getPlayerVocation(cid) == 2 then
  935.             return true
  936.         elseif getPlayerVocation(cid) == 3 then
  937.             return true
  938.         end
  939.     elseif (param == "Tres") then
  940.         if getPlayerVocation(cid) == 0 then
  941.             return true
  942.         elseif getPlayerVocation(cid) == 1 then
  943.             return true
  944.         elseif getPlayerVocation(cid) == 2 then
  945.             return true
  946.         elseif getPlayerVocation(cid) == 3 then
  947.             return true
  948.         end
  949.     elseif (param == "Quatro") then
  950.         if getPlayerVocation(cid) == 0 then
  951.             return true
  952.         elseif getPlayerVocation(cid) == 1 then
  953.             if tk3 == 1 then
  954.                 if pp >= 1 then
  955.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  956.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  957.                     setPlayerStorageValue(cid, 657814728, 2) -- Skill 4 [Lux]
  958.                     setPlayerStorageValue(cid, 657814734, 1) -- Skill 12 [Conjurar Balas]
  959.                     doPlayerLearnInstantSpell(cid, "Lux")
  960.                     addEvent(RefreshAbility, 10, cid)
  961.                      
  962.                     doPlayerSendCancel(cid, "LearnSSounds")
  963.                     doPlayerSendCancel(cid, " ")
  964.                 else
  965.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  966.                     doPlayerSendCancel(cid, "AlertaSound")
  967.                     doPlayerSendCancel(cid, " ")
  968.                 end
  969.         elseif getPlayerVocation(cid) == 2 then
  970.             return true
  971.         elseif getPlayerVocation(cid) == 3 then
  972.             return true
  973.             end
  974.         end
  975.     elseif (param == "Cinco") then
  976.         if getPlayerVocation(cid) == 0 then
  977.             return true
  978.         elseif getPlayerVocation(cid) == 1 then
  979.             if tk4 == 1 then
  980.                 if pp >= 1 then
  981.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  982.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  983.                     setPlayerStorageValue(cid, 657814729, 2) -- Skill 5 [Escalar]
  984.                     doPlayerLearnInstantSpell(cid, "Escalar")
  985.                     if tk5 == -1 then setPlayerStorageValue(cid, 657814730, 1) end -- Skill 6 [Remover Status]
  986.                     if tk7 == -1 then setPlayerStorageValue(cid, 657814732, 1) end -- Skill 9 [Gran Lux]
  987.                     addEvent(RefreshAbility, 10, cid)
  988.                      
  989.                     doPlayerSendCancel(cid, "LearnSSounds")
  990.                     doPlayerSendCancel(cid, " ")
  991.                 else
  992.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  993.                     doPlayerSendCancel(cid, "AlertaSound")
  994.                     doPlayerSendCancel(cid, " ")
  995.                 end
  996.             end
  997.         elseif getPlayerVocation(cid) == 2 then
  998.             if ek4 == 1 then
  999.                 if pp >= 1 then
  1000.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1001.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1002.                     setPlayerStorageValue(cid, 657814694, 2) -- Skill 5 [Bussula]
  1003.                     setPlayerStorageValue(cid, 657814695, 1) -- Skill 6 [Invisibilidade]
  1004.                     addEvent(RefreshAbility, 10, cid)
  1005.                      
  1006.                     doPlayerSendCancel(cid, "LearnSSounds")
  1007.                     doPlayerSendCancel(cid, " ")
  1008.                 else
  1009.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1010.                     doPlayerSendCancel(cid, "AlertaSound")
  1011.                     doPlayerSendCancel(cid, " ")
  1012.                 end
  1013.             end
  1014.         elseif getPlayerVocation(cid) == 3 then
  1015.             if ck2 == 1 then
  1016.                 if pp >= 1 then
  1017.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1018.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1019.                     setPlayerStorageValue(cid, 657814711, 2) -- Skill 5 [Remover Status]
  1020.                     setPlayerStorageValue(cid, 657814712, 1) -- Skill 6 [Corda Especial]
  1021.                     doPlayerLearnInstantSpell(cid, "Remover Status")
  1022.                     addEvent(RefreshAbility, 10, cid)
  1023.                      
  1024.                     doPlayerSendCancel(cid, "LearnSSounds")
  1025.                     doPlayerSendCancel(cid, " ")
  1026.                 else
  1027.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1028.                     doPlayerSendCancel(cid, "AlertaSound")
  1029.                     doPlayerSendCancel(cid, " ")
  1030.                 end
  1031.             end
  1032.         end
  1033.     elseif (param == "Seis") then
  1034.         if getPlayerVocation(cid) == 0 then
  1035.             return true
  1036.         elseif getPlayerVocation(cid) == 1 then
  1037.             if tk5 == 1 then
  1038.                 if pp >= 2 then
  1039.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1040.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1041.                     setPlayerStorageValue(cid, 657814730, 2) -- Skill 6 [Remover Status]
  1042.                     doPlayerLearnInstantSpell(cid, "Remover Status")
  1043.                     if tk8 == -1 then setPlayerStorageValue(cid, 657814733, 1) end -- Skill 10 [Explosion Fire]
  1044.                     addEvent(RefreshAbility, 10, cid)
  1045.                      
  1046.                     doPlayerSendCancel(cid, "LearnSSounds")
  1047.                     doPlayerSendCancel(cid, " ")
  1048.                 else
  1049.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1050.                     doPlayerSendCancel(cid, "AlertaSound")
  1051.                     doPlayerSendCancel(cid, " ")
  1052.                 end
  1053.             end
  1054.         elseif getPlayerVocation(cid) == 2 then
  1055.             if ek5 == 1 then
  1056.                 if pp >= 2 then
  1057.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1058.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1059.                     setPlayerStorageValue(cid, 657814695, 2) -- Skill 6 [Invisibilidade]
  1060.                     setPlayerStorageValue(cid, 657814698, 1) -- Skill 10 [Escudo Espiritual]
  1061.                     doPlayerLearnInstantSpell(cid, "Ativar Invisibilidade")
  1062.                     addEvent(RefreshAbility, 10, cid)
  1063.                      
  1064.                     doPlayerSendCancel(cid, "LearnSSounds")
  1065.                     doPlayerSendCancel(cid, " ")
  1066.                 else
  1067.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1068.                     doPlayerSendCancel(cid, "AlertaSound")
  1069.                     doPlayerSendCancel(cid, " ")
  1070.                 end
  1071.             end
  1072.         elseif getPlayerVocation(cid) == 3 then
  1073.             if ck3 == 1 then
  1074.                 if pp >= 2 then
  1075.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1076.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1077.                     setPlayerStorageValue(cid, 657814712, 2) -- Skill 5 [Remover Status]
  1078.                     doPlayerLearnInstantSpell(cid, "Corda Especial")
  1079.                     if ck4 == -1 then setPlayerStorageValue(cid, 657814713, 1) end -- Skill 7 [Correr]
  1080.                     if ck7 == -1 then setPlayerStorageValue(cid, 657814716, 1) end -- Skill 10 [Escudo Espiritual]
  1081.                     addEvent(RefreshAbility, 10, cid)
  1082.                      
  1083.                     doPlayerSendCancel(cid, "LearnSSounds")
  1084.                     doPlayerSendCancel(cid, " ")
  1085.                 else
  1086.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1087.                     doPlayerSendCancel(cid, "AlertaSound")
  1088.                     doPlayerSendCancel(cid, " ")
  1089.                 end
  1090.             end
  1091.         end
  1092.     elseif (param == "Sete") then
  1093.         if getPlayerVocation(cid) == 0 then
  1094.             return true
  1095.         elseif getPlayerVocation(cid) == 1 then
  1096.             if tk6 == 1 then
  1097.                 if pp >= 1 then
  1098.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1099.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1100.                     setPlayerStorageValue(cid, 657814731, 2) -- Skill 7 [Bussula]
  1101.                     if tk5 == -1 then setPlayerStorageValue(cid, 657814730, 1) end -- Skill 6 [Remover Status]
  1102.                     addEvent(RefreshAbility, 10, cid)
  1103.                      
  1104.                     doPlayerSendCancel(cid, "LearnSSounds")
  1105.                     doPlayerSendCancel(cid, " ")
  1106.                 else
  1107.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1108.                     doPlayerSendCancel(cid, "AlertaSound")
  1109.                     doPlayerSendCancel(cid, " ")
  1110.                 end
  1111.             end
  1112.         elseif getPlayerVocation(cid) == 2 then
  1113.             if ek6 == 1 then
  1114.                 if pp >= 1 then
  1115.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1116.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1117.                     setPlayerStorageValue(cid, 657814696, 2) -- Skill 7 [Escalar]
  1118.                     setPlayerStorageValue(cid, 657814699, 1) -- Skill 11 [Gran Lux]
  1119.                     doPlayerLearnInstantSpell(cid, "Escalar")
  1120.                     addEvent(RefreshAbility, 10, cid)
  1121.                      
  1122.                     doPlayerSendCancel(cid, "LearnSSounds")
  1123.                     doPlayerSendCancel(cid, " ")
  1124.                 else
  1125.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1126.                     doPlayerSendCancel(cid, "AlertaSound")
  1127.                     doPlayerSendCancel(cid, " ")
  1128.                 end
  1129.             end
  1130.         elseif getPlayerVocation(cid) == 3 then
  1131.             if ck4 == 1 then
  1132.                 if pp >= 2 then
  1133.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1134.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1135.                     setPlayerStorageValue(cid, 657814713, 2) -- Skill 7 [Correr]
  1136.                     doPlayerLearnInstantSpell(cid, "Correr")
  1137.                     if ck3 == -1 then setPlayerStorageValue(cid, 657814712, 1) end -- Skill 6 [Corda Especial]
  1138.                     addEvent(RefreshAbility, 10, cid)
  1139.                      
  1140.                     doPlayerSendCancel(cid, "LearnSSounds")
  1141.                     doPlayerSendCancel(cid, " ")
  1142.                 else
  1143.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1144.                     doPlayerSendCancel(cid, "AlertaSound")
  1145.                     doPlayerSendCancel(cid, " ")
  1146.                 end
  1147.             end
  1148.         end
  1149.     elseif (param == "Oito") then
  1150.         if getPlayerVocation(cid) == 0 then
  1151.             return true
  1152.         elseif getPlayerVocation(cid) == 1 then
  1153.             return true
  1154.         elseif getPlayerVocation(cid) == 2 then
  1155.             if ek7 == 1 then
  1156.                 if pp >= 1 then
  1157.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1158.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1159.                     setPlayerStorageValue(cid, 657814697, 2) -- Skill 8 [Cancelar Invisibilidade]
  1160.                     doPlayerLearnInstantSpell(cid, "Cancelar Invisibilidade")
  1161.                     addEvent(RefreshAbility, 10, cid)
  1162.                      
  1163.                     doPlayerSendCancel(cid, "LearnSSounds")
  1164.                     doPlayerSendCancel(cid, " ")
  1165.                 else
  1166.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1167.                     doPlayerSendCancel(cid, "AlertaSound")
  1168.                     doPlayerSendCancel(cid, " ")
  1169.                 end
  1170.             end
  1171.         elseif getPlayerVocation(cid) == 3 then
  1172.             if ck5 == 1 then
  1173.                 if pp >= 1 then
  1174.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1175.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1176.                     setPlayerStorageValue(cid, 657814714, 2) -- Skill 8 [Bussula]
  1177.                     if ck4 == -1 then setPlayerStorageValue(cid, 657814713, 1) end -- Skill 7 [Correr]
  1178.                     addEvent(RefreshAbility, 10, cid)
  1179.                      
  1180.                     doPlayerSendCancel(cid, "LearnSSounds")
  1181.                     doPlayerSendCancel(cid, " ")
  1182.                 else
  1183.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1184.                     doPlayerSendCancel(cid, "AlertaSound")
  1185.                     doPlayerSendCancel(cid, " ")
  1186.                 end
  1187.             end
  1188.         end
  1189.     elseif (param == "Nove") then
  1190.         if getPlayerVocation(cid) == 0 then
  1191.             return true
  1192.         elseif getPlayerVocation(cid) == 1 then
  1193.             if tk7 == 1 then
  1194.                 if pp >= 1 then
  1195.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1196.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1197.                     setPlayerStorageValue(cid, 657814732, 2) -- Skill 9 [Gran Lux]
  1198.                     doPlayerLearnInstantSpell(cid, "Gran Lux")
  1199.                     if tk8 == -1 then setPlayerStorageValue(cid, 657814733, 1) end -- Skill 10 [Explosion Fire]
  1200.                     if tk10 == -1 then setPlayerStorageValue(cid, 657814735, 1) end -- Skill 13 [Provocar Inimigo]
  1201.                     addEvent(RefreshAbility, 10, cid)
  1202.                      
  1203.                     doPlayerSendCancel(cid, "LearnSSounds")
  1204.                     doPlayerSendCancel(cid, " ")
  1205.                 else
  1206.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1207.                     doPlayerSendCancel(cid, "AlertaSound")
  1208.                     doPlayerSendCancel(cid, " ")
  1209.                 end
  1210.             end
  1211.         elseif getPlayerVocation(cid) == 2 then
  1212.             return true
  1213.         elseif getPlayerVocation(cid) == 3 then
  1214.             if ck6 == 1 then
  1215.                 if pp >= 1 then
  1216.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1217.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1218.                     setPlayerStorageValue(cid, 657814715, 2) -- Skill 9 [Debuff Drunk]
  1219.                     setPlayerStorageValue(cid, 657814719, 1) -- Skill 13 [Conjurar Balas]
  1220.                     doPlayerLearnInstantSpell(cid, "Debuff Drunk")
  1221.                     addEvent(RefreshAbility, 10, cid)
  1222.                      
  1223.                     doPlayerSendCancel(cid, "LearnSSounds")
  1224.                     doPlayerSendCancel(cid, " ")
  1225.                 else
  1226.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1227.                     doPlayerSendCancel(cid, "AlertaSound")
  1228.                     doPlayerSendCancel(cid, " ")
  1229.                 end
  1230.             end
  1231.         end
  1232.     elseif (param == "Dez") then
  1233.         if getPlayerVocation(cid) == 0 then
  1234.             return true
  1235.         elseif getPlayerVocation(cid) == 1 then
  1236.             if tk8 == 1 then
  1237.                 if pp >= 3 then
  1238.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1239.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1240.                     setPlayerStorageValue(cid, 657814733, 2) -- Skill 10 [Explosion Fire]
  1241.                     doPlayerLearnInstantSpell(cid, "Explosion Fire")
  1242.                     if tk7 == -1 then setPlayerStorageValue(cid, 657814732, 1) end -- Skill 9 [Gran Lux]
  1243.                     if tk11 == -1 then setPlayerStorageValue(cid, 657814736, 1) end -- Skill 14 [Grande Corrida]
  1244.                     addEvent(RefreshAbility, 10, cid)
  1245.                      
  1246.                     doPlayerSendCancel(cid, "LearnSSounds")
  1247.                     doPlayerSendCancel(cid, " ")
  1248.                 else
  1249.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1250.                     doPlayerSendCancel(cid, "AlertaSound")
  1251.                     doPlayerSendCancel(cid, " ")
  1252.                 end
  1253.             end
  1254.         elseif getPlayerVocation(cid) == 2 then
  1255.             if ek8 == 1 then
  1256.                 if pp >= 2 then
  1257.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1258.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1259.                     setPlayerStorageValue(cid, 657814698, 2) -- Skill 8 [Escudo Espiritual]
  1260.                     if ek9 == -1 then setPlayerStorageValue(cid, 657814699, 1) end -- Skill 11 [Gran Lux]
  1261.                     if ek12 == -1 then setPlayerStorageValue(cid, 657814702, 1) end -- Skill 14 [Grande Cura]
  1262.                     doPlayerLearnInstantSpell(cid, "Escudo Espiritual")
  1263.                     addEvent(RefreshAbility, 10, cid)
  1264.                      
  1265.                     doPlayerSendCancel(cid, "LearnSSounds")
  1266.                     doPlayerSendCancel(cid, " ")
  1267.                 else
  1268.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1269.                     doPlayerSendCancel(cid, "AlertaSound")
  1270.                     doPlayerSendCancel(cid, " ")
  1271.                 end
  1272.             end
  1273.         elseif getPlayerVocation(cid) == 3 then
  1274.             if ck7 == 1 then
  1275.                 if pp >= 2 then
  1276.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1277.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1278.                     setPlayerStorageValue(cid, 657814716, 2) -- Skill 10 [Escudo Espiritual]
  1279.                     doPlayerLearnInstantSpell(cid, "Escudo Espiritual")
  1280.                     if ck6 == -1 then setPlayerStorageValue(cid, 657814715, 1) end -- Skill 9 [Debuff Drunk]
  1281.                     if ck11 == -1 then setPlayerStorageValue(cid, 657814720, 1) end -- Skill 14 [Gran Lux]
  1282.                     addEvent(RefreshAbility, 10, cid)
  1283.                      
  1284.                     doPlayerSendCancel(cid, "LearnSSounds")
  1285.                     doPlayerSendCancel(cid, " ")
  1286.                 else
  1287.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1288.                     doPlayerSendCancel(cid, "AlertaSound")
  1289.                     doPlayerSendCancel(cid, " ")
  1290.                 end
  1291.             end
  1292.         end
  1293.     elseif (param == "Onze") then
  1294.         if getPlayerVocation(cid) == 0 then
  1295.             return true
  1296.         elseif getPlayerVocation(cid) == 1 then
  1297.             return true
  1298.         elseif getPlayerVocation(cid) == 2 then
  1299.             if ek9 == 1 then
  1300.                 if pp >= 2 then
  1301.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1302.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1303.                     setPlayerStorageValue(cid, 657814699, 2) -- Skill 11 [Gran Lux]
  1304.                     doPlayerLearnInstantSpell(cid, "Gran Lux")
  1305.                     if ek8 == -1 then setPlayerStorageValue(cid, 657814698, 1) end -- Skill 10 [Escudo Espiritual]
  1306.                     if ek10 == -1 then setPlayerStorageValue(cid, 657814700, 1) end -- Skill 12 [Conjurar Balas]
  1307.                     if ek13 == -1 then setPlayerStorageValue(cid, 657814703, 1) end -- Skill 15 [Remover Status]
  1308.                     addEvent(RefreshAbility, 10, cid)
  1309.                      
  1310.                     doPlayerSendCancel(cid, "LearnSSounds")
  1311.                     doPlayerSendCancel(cid, " ")
  1312.                 else
  1313.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1314.                     doPlayerSendCancel(cid, "AlertaSound")
  1315.                     doPlayerSendCancel(cid, " ")
  1316.                 end
  1317.             end
  1318.         elseif getPlayerVocation(cid) == 3 then
  1319.             if ck8 == 1 then
  1320.                 if pp >= 2 then
  1321.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1322.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1323.                     setPlayerStorageValue(cid, 657814717, 2) -- Skill 11 [Escalar]
  1324.                     doPlayerLearnInstantSpell(cid, "Escalar")
  1325.                     if ck9 == -1 then setPlayerStorageValue(cid, 657814718, 1) end -- Skill 12 [Explosion Poison]
  1326.                     addEvent(RefreshAbility, 10, cid)
  1327.                      
  1328.                     doPlayerSendCancel(cid, "LearnSSounds")
  1329.                     doPlayerSendCancel(cid, " ")
  1330.                 else
  1331.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1332.                     doPlayerSendCancel(cid, "AlertaSound")
  1333.                     doPlayerSendCancel(cid, " ")
  1334.                 end
  1335.             end
  1336.         end
  1337.     elseif (param == "Doze") then
  1338.         if getPlayerVocation(cid) == 0 then
  1339.             return true
  1340.         elseif getPlayerVocation(cid) == 1 then
  1341.             if tk9 == 1 then
  1342.                 if pp >= 2 then
  1343.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1344.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1345.                     setPlayerStorageValue(cid, 657814734, 2) -- Skill 12 [Conjurar Balas]
  1346.                     setPlayerStorageValue(cid, 657814738, 1) -- Skill 16 [Explosion Ice]
  1347.                     doPlayerLearnInstantSpell(cid, "Conjurar Balas")
  1348.                     addEvent(RefreshAbility, 10, cid)
  1349.                      
  1350.                     doPlayerSendCancel(cid, "LearnSSounds")
  1351.                     doPlayerSendCancel(cid, " ")
  1352.                 else
  1353.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1354.                     doPlayerSendCancel(cid, "AlertaSound")
  1355.                     doPlayerSendCancel(cid, " ")
  1356.                 end
  1357.             end
  1358.         elseif getPlayerVocation(cid) == 2 then
  1359.             if ek10 == 1 then
  1360.                 if pp >= 2 then
  1361.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1362.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1363.                     setPlayerStorageValue(cid, 657814700, 2) -- Skill 12 [Conjurar Balas]
  1364.                     doPlayerLearnInstantSpell(cid, "Conjurar Balas")
  1365.                     addEvent(RefreshAbility, 10, cid)
  1366.                      
  1367.                     doPlayerSendCancel(cid, "LearnSSounds")
  1368.                     doPlayerSendCancel(cid, " ")
  1369.                 else
  1370.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1371.                     doPlayerSendCancel(cid, "AlertaSound")
  1372.                     doPlayerSendCancel(cid, " ")
  1373.                 end
  1374.             end
  1375.         elseif getPlayerVocation(cid) == 3 then
  1376.             if ck9 == 1 then
  1377.                 if pp >= 3 then
  1378.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1379.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1380.                     setPlayerStorageValue(cid, 657814718, 2) -- Skill 12 [Explosion Poison]
  1381.                     doPlayerLearnInstantSpell(cid, "Explosion Poison")
  1382.                     addEvent(RefreshAbility, 10, cid)
  1383.                      
  1384.                     doPlayerSendCancel(cid, "LearnSSounds")
  1385.                     doPlayerSendCancel(cid, " ")
  1386.                 else
  1387.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1388.                     doPlayerSendCancel(cid, "AlertaSound")
  1389.                     doPlayerSendCancel(cid, " ")
  1390.                 end
  1391.             end
  1392.         end
  1393.     elseif (param == "Treze") then
  1394.         if getPlayerVocation(cid) == 0 then
  1395.             return true
  1396.         elseif getPlayerVocation(cid) == 1 then
  1397.             if tk10 == 1 then
  1398.                 if pp >= 2 then
  1399.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1400.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1401.                     setPlayerStorageValue(cid, 657814735, 2) -- Skill 13 [Provocar Inimigo]
  1402.                     doPlayerLearnInstantSpell(cid, "Provocar Inimigo")
  1403.                     if tk11 == -1 then setPlayerStorageValue(cid, 657814736, 1) end -- Skill 14 [Grande Corrida]
  1404.                     addEvent(RefreshAbility, 10, cid)
  1405.                      
  1406.                     doPlayerSendCancel(cid, "LearnSSounds")
  1407.                     doPlayerSendCancel(cid, " ")
  1408.                 else
  1409.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1410.                     doPlayerSendCancel(cid, "AlertaSound")
  1411.                     doPlayerSendCancel(cid, " ")
  1412.                 end
  1413.             end
  1414.         elseif getPlayerVocation(cid) == 2 then
  1415.             if ek11 == 1 then
  1416.                 if pp >= 2 then
  1417.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1418.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1419.                     setPlayerStorageValue(cid, 657814701, 2) -- Skill 13 [Grande Corrida]
  1420.                     doPlayerLearnInstantSpell(cid, "Grande Corrida")
  1421.                     setPlayerStorageValue(cid, 657814705, 1) -- Skill 17 [Explosion Energy]
  1422.                     addEvent(RefreshAbility, 10, cid)
  1423.                      
  1424.                     doPlayerSendCancel(cid, "LearnSSounds")
  1425.                     doPlayerSendCancel(cid, " ")
  1426.                 else
  1427.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1428.                     doPlayerSendCancel(cid, "AlertaSound")
  1429.                     doPlayerSendCancel(cid, " ")
  1430.                 end
  1431.             end
  1432.         elseif getPlayerVocation(cid) == 3 then
  1433.             if ck10 == 1 then
  1434.                 if pp >= 2 then
  1435.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1436.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1437.                     setPlayerStorageValue(cid, 657814719, 2) -- Skill 13 [Conjurar Balas]
  1438.                     doPlayerLearnInstantSpell(cid, "Conjurar Balas")
  1439.                     addEvent(RefreshAbility, 10, cid)
  1440.                      
  1441.                     doPlayerSendCancel(cid, "LearnSSounds")
  1442.                     doPlayerSendCancel(cid, " ")
  1443.                 else
  1444.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1445.                     doPlayerSendCancel(cid, "AlertaSound")
  1446.                     doPlayerSendCancel(cid, " ")
  1447.                 end
  1448.             end
  1449.         end
  1450.     elseif (param == "Quatorze") then
  1451.         if getPlayerVocation(cid) == 0 then
  1452.             return true
  1453.         elseif getPlayerVocation(cid) == 1 then
  1454.             if tk11 == 1 then
  1455.                 if pp >= 2 then
  1456.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1457.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1458.                     setPlayerStorageValue(cid, 657814736, 2) -- Skill 14 [Grande Corrida]
  1459.                     doPlayerLearnInstantSpell(cid, "Grande Corrida")
  1460.                     setPlayerStorageValue(cid, 657814737, 1) -- Skill 15 [Explosion Holy]
  1461.                     addEvent(RefreshAbility, 10, cid)
  1462.                      
  1463.                     doPlayerSendCancel(cid, "LearnSSounds")
  1464.                     doPlayerSendCancel(cid, " ")
  1465.                 else
  1466.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1467.                     doPlayerSendCancel(cid, "AlertaSound")
  1468.                     doPlayerSendCancel(cid, " ")
  1469.                 end
  1470.             end
  1471.         elseif getPlayerVocation(cid) == 2 then
  1472.             if ek12 == 1 then
  1473.                 if pp >= 2 then
  1474.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1475.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1476.                     setPlayerStorageValue(cid, 657814702, 2) -- Skill 14 [Grande Cura]
  1477.                     doPlayerLearnInstantSpell(cid, "Grande Cura")
  1478.                     setPlayerStorageValue(cid, 657814701, 1) -- Skill 13 [Grande Corrida]
  1479.                     addEvent(RefreshAbility, 10, cid)
  1480.                      
  1481.                     doPlayerSendCancel(cid, "LearnSSounds")
  1482.                     doPlayerSendCancel(cid, " ")
  1483.                 else
  1484.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1485.                     doPlayerSendCancel(cid, "AlertaSound")
  1486.                     doPlayerSendCancel(cid, " ")
  1487.                 end
  1488.             end
  1489.         elseif getPlayerVocation(cid) == 3 then
  1490.             if ck11 == 1 then
  1491.                 if pp >= 1 then
  1492.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1493.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 1)
  1494.                     setPlayerStorageValue(cid, 657814720, 2) -- Skill 14 [Gran Lux]
  1495.                     doPlayerLearnInstantSpell(cid, "Gran Lux")
  1496.                     setPlayerStorageValue(cid, 657814721, 1) -- Skill 15 [Provocar Inimigo]
  1497.                     addEvent(RefreshAbility, 10, cid)
  1498.                      
  1499.                     doPlayerSendCancel(cid, "LearnSSounds")
  1500.                     doPlayerSendCancel(cid, " ")
  1501.                 else
  1502.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1503.                     doPlayerSendCancel(cid, "AlertaSound")
  1504.                     doPlayerSendCancel(cid, " ")
  1505.                 end
  1506.             end
  1507.         end
  1508.     elseif (param == "Quinze") then
  1509.         if getPlayerVocation(cid) == 0 then
  1510.             return true
  1511.         elseif getPlayerVocation(cid) == 1 then
  1512.             if tk12 == 1 then
  1513.                 if pp >= 3 then
  1514.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1515.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1516.                     setPlayerStorageValue(cid, 657814737, 2) -- Skill 15 [Explosion Holy]
  1517.                     doPlayerLearnInstantSpell(cid, "Explosion Holy")
  1518.                     setPlayerStorageValue(cid, 657814739, 1) -- Skill 19 [Defesa Aprimorada]
  1519.                     addEvent(RefreshAbility, 10, cid)
  1520.                      
  1521.                     doPlayerSendCancel(cid, "LearnSSounds")
  1522.                     doPlayerSendCancel(cid, " ")
  1523.                 else
  1524.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1525.                     doPlayerSendCancel(cid, "AlertaSound")
  1526.                     doPlayerSendCancel(cid, " ")
  1527.                 end
  1528.             end
  1529.         elseif getPlayerVocation(cid) == 2 then
  1530.             if ek13 == 1 then
  1531.                 if pp >= 2 then
  1532.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1533.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1534.                     setPlayerStorageValue(cid, 657814703, 2) -- Skill 15 [Remover Status]
  1535.                     doPlayerLearnInstantSpell(cid, "Remover Status")
  1536.                     if ek14 == -1 then setPlayerStorageValue(cid, 657814704, 1) end -- Skill 16 [Cura em Massa]
  1537.                     if ek17 == -1 then setPlayerStorageValue(cid, 657814707, 1) end -- Skill 19 [Curar Parceiro]
  1538.                     addEvent(RefreshAbility, 10, cid)
  1539.                      
  1540.                     doPlayerSendCancel(cid, "LearnSSounds")
  1541.                     doPlayerSendCancel(cid, " ")
  1542.                 else
  1543.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1544.                     doPlayerSendCancel(cid, "AlertaSound")
  1545.                     doPlayerSendCancel(cid, " ")
  1546.                 end
  1547.             end
  1548.         elseif getPlayerVocation(cid) == 3 then
  1549.             if ck12 == 1 then
  1550.                 if pp >= 2 then
  1551.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1552.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1553.                     setPlayerStorageValue(cid, 657814721, 2) -- Skill 15 [Empurrar Inimigos]
  1554.                     doPlayerLearnInstantSpell(cid, "Empurrar Inimigos")
  1555.                     setPlayerStorageValue(cid, 657814717, 1) -- Skill 11 [Escalar]
  1556.                     setPlayerStorageValue(cid, 657814723, 1) -- Skill 19 [Paralyze]
  1557.                     addEvent(RefreshAbility, 10, cid)
  1558.                      
  1559.                     doPlayerSendCancel(cid, "LearnSSounds")
  1560.                     doPlayerSendCancel(cid, " ")
  1561.                 else
  1562.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1563.                     doPlayerSendCancel(cid, "AlertaSound")
  1564.                     doPlayerSendCancel(cid, " ")
  1565.                 end
  1566.             end
  1567.         end
  1568.     elseif (param == "Dezesseis") then
  1569.         if getPlayerVocation(cid) == 0 then
  1570.             return true
  1571.         elseif getPlayerVocation(cid) == 1 then
  1572.             if tk13 == 1 then
  1573.                 if pp >= 3 then
  1574.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1575.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1576.                     setPlayerStorageValue(cid, 657814738, 2) -- Skill 15 [Explosion Ice]
  1577.                     doPlayerLearnInstantSpell(cid, "Explosion Ice")
  1578.                     addEvent(RefreshAbility, 10, cid)
  1579.                      
  1580.                     doPlayerSendCancel(cid, "LearnSSounds")
  1581.                     doPlayerSendCancel(cid, " ")
  1582.                 else
  1583.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1584.                     doPlayerSendCancel(cid, "AlertaSound")
  1585.                     doPlayerSendCancel(cid, " ")
  1586.                 end
  1587.             end
  1588.         elseif getPlayerVocation(cid) == 2 then
  1589.             if ek14 == 1 then
  1590.                 if pp >= 3 then
  1591.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1592.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1593.                     setPlayerStorageValue(cid, 657814704, 2) -- Skill 16 [Cura em Massa]
  1594.                     doPlayerLearnInstantSpell(cid, "Cura em Massa")
  1595.                     setPlayerStorageValue(cid, 657814708, 1) -- Skill 20 [Regenerar SP]
  1596.                     addEvent(RefreshAbility, 10, cid)
  1597.                      
  1598.                     doPlayerSendCancel(cid, "LearnSSounds")
  1599.                     doPlayerSendCancel(cid, " ")
  1600.                 else
  1601.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1602.                     doPlayerSendCancel(cid, "AlertaSound")
  1603.                     doPlayerSendCancel(cid, " ")
  1604.                 end
  1605.             end
  1606.         elseif getPlayerVocation(cid) == 3 then
  1607.             return true
  1608.         end
  1609.     elseif (param == "Dezessete") then
  1610.         if getPlayerVocation(cid) == 0 then
  1611.             return true
  1612.         elseif getPlayerVocation(cid) == 1 then
  1613.             return true
  1614.         elseif getPlayerVocation(cid) == 2 then
  1615.             if ek15 == 1 then
  1616.                 if pp >= 3 then
  1617.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1618.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1619.                     setPlayerStorageValue(cid, 657814705, 2) -- Skill 17 [Explosion Energy]
  1620.                     doPlayerLearnInstantSpell(cid, "Explosion Energy")
  1621.                     setPlayerStorageValue(cid, 657814706, 1) -- Skill 18 [Regenerar Espirito]
  1622.                     addEvent(RefreshAbility, 10, cid)
  1623.                      
  1624.                     doPlayerSendCancel(cid, "LearnSSounds")
  1625.                     doPlayerSendCancel(cid, " ")
  1626.                 else
  1627.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1628.                     doPlayerSendCancel(cid, "AlertaSound")
  1629.                     doPlayerSendCancel(cid, " ")
  1630.                 end
  1631.             end
  1632.         elseif getPlayerVocation(cid) == 3 then
  1633.             return true
  1634.         end
  1635.     elseif (param == "Dezoito") then
  1636.         if getPlayerVocation(cid) == 0 then
  1637.             return true
  1638.         elseif getPlayerVocation(cid) == 1 then
  1639.             return true
  1640.         elseif getPlayerVocation(cid) == 2 then
  1641.             if ek16 == 1 then
  1642.                 if pp >= 3 then
  1643.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1644.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1645.                     setPlayerStorageValue(cid, 657814706, 2) -- Skill 18 [Regenerar Espirito]
  1646.                     doPlayerLearnInstantSpell(cid, "Regenerar Espirito")
  1647.                     addEvent(RefreshAbility, 10, cid)
  1648.                      
  1649.                     doPlayerSendCancel(cid, "LearnSSounds")
  1650.                     doPlayerSendCancel(cid, " ")
  1651.                 else
  1652.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1653.                     doPlayerSendCancel(cid, "AlertaSound")
  1654.                     doPlayerSendCancel(cid, " ")
  1655.                 end
  1656.             end
  1657.         elseif getPlayerVocation(cid) == 3 then
  1658.             if ck13 == 1 then
  1659.                 if pp >= 3 then
  1660.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1661.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1662.                     setPlayerStorageValue(cid, 657814722, 2) -- Skill 18 [Explosion Mort]
  1663.                     doPlayerLearnInstantSpell(cid, "Explosion Mort")
  1664.                     addEvent(RefreshAbility, 10, cid)
  1665.                      
  1666.                     doPlayerSendCancel(cid, "LearnSSounds")
  1667.                     doPlayerSendCancel(cid, " ")
  1668.                 else
  1669.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1670.                     doPlayerSendCancel(cid, "AlertaSound")
  1671.                     doPlayerSendCancel(cid, " ")
  1672.                 end
  1673.             end
  1674.         end
  1675.     elseif (param == "Dezenove") then
  1676.         if getPlayerVocation(cid) == 0 then
  1677.             return true
  1678.         elseif getPlayerVocation(cid) == 1 then
  1679.             if tk14 == 1 then
  1680.                 if pp >= 3 then
  1681.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1682.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1683.                     setPlayerStorageValue(cid, 657814739, 2) -- Skill 19 [Defesa Aprimorada]
  1684.                     doPlayerLearnInstantSpell(cid, "Defesa Aprimorada")
  1685.                     addEvent(RefreshAbility, 10, cid)
  1686.                      
  1687.                     doPlayerSendCancel(cid, "LearnSSounds")
  1688.                     doPlayerSendCancel(cid, " ")
  1689.                 else
  1690.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1691.                     doPlayerSendCancel(cid, "AlertaSound")
  1692.                     doPlayerSendCancel(cid, " ")
  1693.                 end
  1694.             end
  1695.         elseif getPlayerVocation(cid) == 2 then
  1696.             if ek17 == 1 then
  1697.                 if pp >= 3 then
  1698.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1699.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1700.                     setPlayerStorageValue(cid, 657814707, 2) -- Skill 19 [Curar Parceiro]
  1701.                     doPlayerLearnInstantSpell(cid, "Curar Parceiro")
  1702.                     addEvent(RefreshAbility, 10, cid)
  1703.                      
  1704.                     doPlayerSendCancel(cid, "LearnSSounds")
  1705.                     doPlayerSendCancel(cid, " ")
  1706.                 else
  1707.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1708.                     doPlayerSendCancel(cid, "AlertaSound")
  1709.                     doPlayerSendCancel(cid, " ")
  1710.                 end
  1711.             end
  1712.         elseif getPlayerVocation(cid) == 3 then
  1713.             if ck14 == 1 then
  1714.                 if pp >= 2 then
  1715.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1716.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 2)
  1717.                     setPlayerStorageValue(cid, 657814723, 2) -- Skill 19 [Paralyze]
  1718.                     doPlayerLearnInstantSpell(cid, "Paralyze")
  1719.                     setPlayerStorageValue(cid, 657814722, 1) -- Skill 18 [Explosion Mort]
  1720.                     setPlayerStorageValue(cid, 657814724, 1) -- Skill 20 [Refletir Dano]
  1721.                     addEvent(RefreshAbility, 10, cid)
  1722.                      
  1723.                     doPlayerSendCancel(cid, "LearnSSounds")
  1724.                     doPlayerSendCancel(cid, " ")
  1725.                 else
  1726.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1727.                     doPlayerSendCancel(cid, "AlertaSound")
  1728.                     doPlayerSendCancel(cid, " ")
  1729.                 end
  1730.             end
  1731.         end
  1732.     elseif (param == "Vinte") then
  1733.         if getPlayerVocation(cid) == 0 then
  1734.             return true
  1735.         elseif getPlayerVocation(cid) == 1 then
  1736.             return true
  1737.         elseif getPlayerVocation(cid) == 2 then
  1738.             if ek18 == 1 then
  1739.                 if pp >= 3 then
  1740.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1741.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1742.                     setPlayerStorageValue(cid, 657814708, 2) -- Skill 20 [Regenerar SP]
  1743.                     doPlayerLearnInstantSpell(cid, "Regenerar SP")
  1744.                     addEvent(RefreshAbility, 10, cid)
  1745.                      
  1746.                     doPlayerSendCancel(cid, "LearnSSounds")
  1747.                     doPlayerSendCancel(cid, " ")
  1748.                 else
  1749.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1750.                     doPlayerSendCancel(cid, "AlertaSound")
  1751.                     doPlayerSendCancel(cid, " ")
  1752.                 end
  1753.             end
  1754.         elseif getPlayerVocation(cid) == 3 then
  1755.             if ck15 == 1 then
  1756.                 if pp >= 3 then
  1757.                     setPlayerStorageValue(cid, 542225, getPlayerStorageValue(cid, 542225) + 1)
  1758.                     setPlayerStorageValue(cid, 657814750, getPlayerStorageValue(cid, 657814750) - 3)
  1759.                     setPlayerStorageValue(cid, 657814724, 2) -- Skill 20 [Refletir Dano]
  1760.                     doPlayerLearnInstantSpell(cid, "Refletir Danos")
  1761.                     addEvent(RefreshAbility, 10, cid)
  1762.                      
  1763.                     doPlayerSendCancel(cid, "LearnSSounds")
  1764.                     doPlayerSendCancel(cid, " ")
  1765.                 else
  1766.                     doPlayerPopupFYI(cid, "Você não possui pontos de habilidade suficientes.")
  1767.                     doPlayerSendCancel(cid, "AlertaSound")
  1768.                     doPlayerSendCancel(cid, " ")
  1769.                 end
  1770.             end
  1771.         end
  1772.    
  1773.     end
  1774. return TRUE
  1775. end
  1776.  
  1777. function RefreshAbility(cid)
  1778. local ek = getPlayerStorageValue(cid, 657814690)        local ck = getPlayerStorageValue(cid, 657814709)        local tk = getPlayerStorageValue(cid, 657814725)
  1779. local ek1 = getPlayerStorageValue(cid, 657814691)       local ck1 = getPlayerStorageValue(cid, 657814710)       local tk1 = getPlayerStorageValue(cid, 657814726)
  1780. local ek2 = getPlayerStorageValue(cid, 657814692)       local ck2 = getPlayerStorageValue(cid, 657814711)       local tk2 = getPlayerStorageValue(cid, 657814727)
  1781. local ek3 = getPlayerStorageValue(cid, 657814693)       local ck3 = getPlayerStorageValue(cid, 657814712)       local tk3 = getPlayerStorageValue(cid, 657814728)
  1782. local ek4 = getPlayerStorageValue(cid, 657814694)       local ck4 = getPlayerStorageValue(cid, 657814713)       local tk4 = getPlayerStorageValue(cid, 657814729)
  1783. local ek5 = getPlayerStorageValue(cid, 657814695)       local ck5 = getPlayerStorageValue(cid, 657814714)       local tk5 = getPlayerStorageValue(cid, 657814730)
  1784. local ek6 = getPlayerStorageValue(cid, 657814696)       local ck6 = getPlayerStorageValue(cid, 657814715)       local tk6 = getPlayerStorageValue(cid, 657814731)
  1785. local ek7 = getPlayerStorageValue(cid, 657814697)       local ck7 = getPlayerStorageValue(cid, 657814716)       local tk7 = getPlayerStorageValue(cid, 657814732)
  1786. local ek8 = getPlayerStorageValue(cid, 657814698)       local ck8 = getPlayerStorageValue(cid, 657814717)       local tk8 = getPlayerStorageValue(cid, 657814733)
  1787. local ek9 = getPlayerStorageValue(cid, 657814699)       local ck9 = getPlayerStorageValue(cid, 657814718)       local tk9 = getPlayerStorageValue(cid, 657814734)
  1788. local ek10 = getPlayerStorageValue(cid, 657814700)      local ck10 = getPlayerStorageValue(cid, 657814719)      local tk10 = getPlayerStorageValue(cid, 657814735)
  1789. local ek11 = getPlayerStorageValue(cid, 657814701)      local ck11 = getPlayerStorageValue(cid, 657814720)      local tk11 = getPlayerStorageValue(cid, 657814736)
  1790. local ek12 = getPlayerStorageValue(cid, 657814702)      local ck12 = getPlayerStorageValue(cid, 657814721)      local tk12 = getPlayerStorageValue(cid, 657814737)
  1791. local ek13 = getPlayerStorageValue(cid, 657814703)      local ck13 = getPlayerStorageValue(cid, 657814722)      local tk13 = getPlayerStorageValue(cid, 657814738)
  1792. local ek14 = getPlayerStorageValue(cid, 657814704)      local ck14 = getPlayerStorageValue(cid, 657814723)      local tk14 = getPlayerStorageValue(cid, 657814739)
  1793. local ek15 = getPlayerStorageValue(cid, 657814705)      local ck15 = getPlayerStorageValue(cid, 657814724)      local pp = getPlayerStorageValue(cid, 657814750)
  1794. local ek16 = getPlayerStorageValue(cid, 657814706)
  1795. local ek17 = getPlayerStorageValue(cid, 657814707)
  1796. local ek18 = getPlayerStorageValue(cid, 657814708)
  1797. local MoneyProg = getPlayerStorageValue(cid, 85649710)
  1798. local ManaProg = getPlayerStorageValue(cid, 85649711)
  1799. local SummonProg = getPlayerStorageValue(cid, 85649712)
  1800. local CraftProg = getPlayerStorageValue(cid, 85649713)
  1801.  
  1802.         if getPlayerVocation(cid) == 0 then
  1803.             doPlayerSendCancel(cid, "NoVocSkills")
  1804.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  1805.             doPlayerSendCancel(cid, " ")
  1806.         elseif getPlayerVocation(cid) == 1 then
  1807.             doPlayerSendCancel(cid, "TanSkills "..tk.." "..tk1.." "..tk2.." "..tk3.." "..tk4.." "..tk5.." "..tk6.." s "..tk7.." "..tk8.." 00 "..tk9.." "..tk10.." "..tk11.." "..tk12.." "..tk13.." 00 00 "..tk14.." 00 "..pp.."")
  1808.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  1809.             doPlayerSendCancel(cid, " ")
  1810.         elseif getPlayerVocation(cid) == 3 then
  1811.             doPlayerSendCancel(cid, "EspSkills "..ck.." 00 00 "..ck1.." "..ck2.." "..ck3.." "..ck4.." "..ck5.." "..ck6.." "..ck7.." "..ck8.." "..ck9.." "..ck10.." "..ck11.." "..ck12.." 00 00 "..ck13.." "..ck14.." "..ck15.." "..pp.."")
  1812.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  1813.             doPlayerSendCancel(cid, " ")
  1814.         elseif getPlayerVocation(cid) == 2 then
  1815.             doPlayerSendCancel(cid, "CurSkills "..ek.." "..ek1.." "..ek2.." "..ek3.." "..ek4.." "..ek5.." "..ek6.." "..ek7.." 00 "..ek8.." "..ek9.." "..ek10.." "..ek11.." "..ek12.." "..ek13.." "..ek14.." "..ek15.." "..ek16.." "..ek17.." "..ek18.." "..pp.."")
  1816.             doPlayerSendCancel(cid, "Master "..MoneyProg.." "..ManaProg.." "..SummonProg.." "..CraftProg.."")
  1817.             doPlayerSendCancel(cid, " ")
  1818.         end
  1819. return TRUE
  1820. end
  1821.  
  1822. function onAbility(cid)
  1823.     doPlayerSendCancel(cid, "##AbilityTree")
  1824.     doPlayerSendCancel(cid, " ")
  1825.     addEvent(doPlayerSendTextMessage, 10, cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Clique na opção 'Árvore de Habilidades' para ver suas habilidades.")
  1826. return TRUE
  1827. end
Add Comment
Please, Sign In to add comment