local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local seavell = getPlayerStorageValue(cid, 20006)
local naturia = getPlayerStorageValue(cid, 20007)
local psycraft = getPlayerStorageValue(cid, 20008)
local gardestrike = getPlayerStorageValue(cid, 20009)
local wingeon = getPlayerStorageValue(cid, 20010)
local orebound = getPlayerStorageValue(cid, 20013)
local volcanic = getPlayerStorageValue(cid, 20014)
local raibolt = getPlayerStorageValue(cid, 20015)
local malefic = getPlayerStorageValue(cid, 20016)
local storage = getPlayerStorageValue(cid, 20011)
local valor = getPlayerItemCount(cid, 2160)
local storageelite = getPlayerStorageValue(cid, 20012)
if msgcontains(msg, 'trocar')then
if seavell == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {seavell}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif naturia == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {naturia}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif psycraft == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {psycraft}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif gardestrike == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {gardestrike}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif wingeon == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {wingeon}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif orebound == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {orebound}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif volcanic == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {volcanic}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif raibolt == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {raibolt}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif malefic == 1 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {malefic}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif seavell == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite seavell}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif naturia == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite naturia}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif psycraft == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite psycraft}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif gardestrike == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite gardestrike}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif wingeon == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite wingeon}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif orebound == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite orebound}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif volcanic == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite volcanic}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif raibolt == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite raibolt}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif malefic == 5 and storage == -1 then
npcHandler:say("Você pertense atualmente ao clã {elite malefic}. Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
setPlayerStorageValue(cid, 20011, 1)
elseif seavell == 1 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif naturia == 1 or naturia == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif psycraft == 1 or psycraft == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif gardestrike == 1 or gardestrike == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif wingeon == 1 or wingeon == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif orebound == 1 or orebound == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif volcanic == 1 or volcanic == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif raibolt == 1 or raibolt == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
elseif malefic == 1 or malefic == 5 and storage == 1 then
npcHandler:say("Você ainda não se decidiu! Realmente deseja trocar? você precisa ter 200k para fazer a troca.", cid)
else
npcHandler:say("você não faz parte de nenhum clã.", cid)
end
elseif msgcontains(msg, 'entrar') then
if seavell == -1 and naturia == -1 and psycraft == -1 and gardestrike == -1 and wingeon == -1 and orebound == -1 and malefic == -1 and volcanic == -1 and raibolt == -1then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20011, 2)
else
npcHandler:say("você ja faz parte de um clã, deseja {trocar}?.", cid)
end
elseif msgcontains(msg, 'seavell') then
if seavell >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {seavell}.", cid)
setPlayerStorageValue(cid, 20006, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif seavell >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {seavell}.", cid)
setPlayerStorageValue(cid, 20006, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'naturia') then
if naturia >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {naturia}.", cid)
setPlayerStorageValue(cid, 20007, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif naturia >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {naturia}.", cid)
setPlayerStorageValue(cid, 20007, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'psycraft') then
if psycraft >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {psycraft}.", cid)
setPlayerStorageValue(cid, 20008, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif psycraft >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {psycraft}.", cid)
setPlayerStorageValue(cid, 20008, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'gardestrike') then
if gardestrike >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {gardestrike}.", cid)
setPlayerStorageValue(cid, 20009, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif gardestrike >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {gardestrike}.", cid)
setPlayerStorageValue(cid, 20009, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'wingeon') then
if wingeon >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {wingeon}.", cid)
setPlayerStorageValue(cid, 20010, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif wingeon >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {wingeon}.", cid)
setPlayerStorageValue(cid, 20010, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'orebound') then
if orebound >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {orebound}.", cid)
setPlayerStorageValue(cid, 20013, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif orebound >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {orebound}.", cid)
setPlayerStorageValue(cid, 20013, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'volcanic') then
if volcanic >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {volcanic}.", cid)
setPlayerStorageValue(cid, 20014, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif volcanic >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {volcanic}.", cid)
setPlayerStorageValue(cid, 20014, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'raibolt') then
if raibolt >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {raibolt}.", cid)
setPlayerStorageValue(cid, 20015, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif raibolt >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {raibolt}.", cid)
setPlayerStorageValue(cid, 20015, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'malefic') then
if malefic >= 1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {malefic}.", cid)
setPlayerStorageValue(cid, 20016, 1)
setPlayerStorageValue(cid, 20011, -1)
elseif malefic >= -1 and storage == 2 then
npcHandler:say("Parabéns você agora é um membro do clã {malefic}.", cid)
setPlayerStorageValue(cid, 20016, 1)
setPlayerStorageValue(cid, 20011, -1)
end
elseif msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then
if seavell == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20006, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif naturia == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20007, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif psycraft == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20008, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif gardestrike == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20009, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif wingeon == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20010, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif orebound == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20013, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif volcanic == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20014, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif raibolt == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20015, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif malefic == 1 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic} ou {raibolt}?", cid)
setPlayerStorageValue(cid, 20016, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif seavell == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20006, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif naturia == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20007, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif psycraft == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {gardestrike}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20008, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif gardestrike == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {wingeon}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20009, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif wingeon == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {orebound}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20010, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif orebound == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {volcanic}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20013, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif volcanic == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {raibolt} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20014, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif raibolt == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic} ou {malefic}?", cid)
setPlayerStorageValue(cid, 20015, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif malefic == 5 and storage == 1 and valor >= 20 then
npcHandler:say("Qual clã vc deseja entrar {seavell}, {naturia}, {psycraft}, {gardestrike}, {wingeon}, {orebound}, {volcanic} ou {raibolt}?", cid)
setPlayerStorageValue(cid, 20016, -1)
setPlayerStorageValue(cid, 20011, 2)
doPlayerRemoveItem(cid,2160,20)
elseif seavell == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite seavell}!", cid)
setPlayerStorageValue(cid, 20006, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif naturia == 1 and storage == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite naturia}!", cid)
setPlayerStorageValue(cid, 20007, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif psycraft == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite psycraft}!", cid)
setPlayerStorageValue(cid, 20008, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif gardestrike == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite gardestrike}!", cid)
setPlayerStorageValue(cid, 20009, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif wingeon == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite wingeon}!", cid)
setPlayerStorageValue(cid, 20010, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif orebound == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite orebound}!", cid)
setPlayerStorageValue(cid, 20013, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif volcanic == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite volcanic}!", cid)
setPlayerStorageValue(cid, 20014, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif raibolt == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite raibolt}!", cid)
setPlayerStorageValue(cid, 20015, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
elseif malefic == 1 and storageelite == 1 and valor >= 50 then
npcHandler:say("Parabens você agora é um {elite malefic}!", cid)
setPlayerStorageValue(cid, 20016, 5)
setPlayerStorageValue(cid, 20012, -1)
doPlayerRemoveItem(cid,2160, 50)
else
npcHandler:say("você não tem o dinheiro adequado! Volte quando conseguir.", cid)
end
elseif msgcontains(msg, 'subir') then
if seavell == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite seavell}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif naturia == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite naturia}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif psycraft == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite psycraft}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif gardestrike == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite gardestrike}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif wingeon == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite wingeon}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif orebound == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite orebound}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif volcanic == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite volcanic}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif raibolt == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite raibolt}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif malefic == 1 and storageelite == -1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite malefic}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif seavell == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite seavell}? voce vai precisar de 500k para isso está realmente certo?", cid)
elseif naturia == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite naturia}? voce vai precisar de 500k para isso está realmente certo?", cid)
elseif psycraft == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite psycraft}? voce vai precisar de 500k para isso está realmente certo?", cid)
elseif gardestrike == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite gardestrike}? voce vai precisar de 500k para isso está realmente certo?", cid)
elseif wingeon == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite wingeon}? voce vai precisar de 500k para isso está realmente certo?", cid)
elseif orebound == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite orebound}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif volcanic == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite volcanic}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif raibolt == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite raibolt}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
elseif malefic == 1 and storageelite == 1 then
npcHandler:say("Deseja subir para o {rank 5} e se tornar um {elite malefic}? voce vai precisar de 500k para isso está realmente certo?", cid)
setPlayerStorageValue(cid, 20012, 1)
end
elseif msgcontains(msg, 'no') or msgcontains(msg, 'nao') then
if seavell == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif naturia == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif psycraft == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif gardestrike == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif wingeon == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif orebound == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif volcanic == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif raibolt == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif malefic == 1 and storage == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif seavell == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif naturia == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif psycraft == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif gardestrike == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif wingeon == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif orebound == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif volcanic == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif raibolt == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
elseif malefic == 1 and storageelite == 1 then
npcHandler:say("Entendo sua decisão volte quando estiver realmente decidido.", cid)
setPlayerStorageValue(cid, 20011, -1)
end
end
return TRUE
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())