-
Total de itens
1106 -
Registro em
-
Última visita
-
Dias Ganhos
4
Tudo que PsyMcKenzie postou
-
eu Queria um Porta q somente players level 10k pudessem passar, se algem puder ajudar ficarei grato :]
-
Naum Funcionou, Agora Fika Dando Debug ;X
-
E Ae Galera, Suavee ?? Preciso de Um Npc Que Troque uma Quantidade Editavel de Items Por 1 Item de ID Diferente. Se Algem Puder Me Ajudar. Grato. Do Rep +
-
Tipo eu queria q algem me ajudasse nesse script akee tipo ele ta deixando o player se evoluir mais de uma vez. eu queria q qndo o player falasse !evoluir no lvl 50k ele voltasse lvl 10k com uma nova vocação. qm puder ajudar dou rep+ vlw ae function onSay(cid, words, param) local level = 15 --level pra ser resetado local RemainingLvl = 50 --lvl que ele ficara depois do reset local pid = getPlayerGUID(cid) local pos2 = getPlayerPosition(cid) function addReset(cid) resets = getResets(cid) if resets < 1 then setPlayerStorageValue(cid,1020,resets+1) else doPlayerSendCancel(cid, "Desculpe, Você Só Pode Evoluir Uma Vez.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return true end function getResets(cid) resets = getPlayerStorageValue(cid,1020) if resets < 1 then resets = 1 end return resets end if getPlayerLevel(cid) >= level then addReset(cid) doTeleportThing(cid, {x == 160, y == 54, z == 7}) doSendMagicEffect(pos2, CONST_ME_TELEPORT) doPlayerPopupFYI(cid,"Voce renasceu, voce ja evoluiu "..getResets(cid).." vez.") doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..RemainingLvl..", `experience` = 0 WHERE `id` = "..pid) else doPlayerSendCancel(cid, "voce precisa ser level "..level.." ou mais para Evoluir.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return TRUE end
-
tipo qndo algem fala !rep nao aparece nada ;S eu acho q eh no sql se algem puder me ajudar como configurar eu agradeço flw t+ e do rep+ pra qem ajuda ae ;D
-
tipo qro um comando q qndo o player fale !promotion ele receba uma nova promotion e ao mesmo tempo ele resete e q só pudesse usar uma vez o maximo fosse 1 dai eu ia criar otro script com base nesse pra fazer uma nova promotion qm puder ajudar agradeço desde ja... e meu rep system qndo algem fala !rep n acontece nada ;S qm puder ajuda ae!!
-
Tipo Meu Rep System tem rep no look qndo se mata um bicho aparece um erro la na telinha do serv e qndo se da look em algem ou em vc msm tbm da erro e eu n to conseguindo arrumar qndo vc mata bicho e players e ganha rep qndo você diz !rep ta como q se voce tivesse 0 de rep e n sai disso :S
-
Entre na pasta data/globalevents/scripts e crie um arquivo com o nome de inv.lua e cole o seguinte código: local i = { ["00:00"] = {nome = "Demon Invasões", pos = {x=1000, y=1000, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}}, ["21:00"] = {nome = "Dragon Invasões", pos = {x=1000, y=1000, z=7}, monster = {"100 Dragon"}}, } function onThink(interval, lastExecution) hours = tostring(os.date("%X")):sub(1, 5) tb = i[hours] if tb then doBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.") for _,x in pairs(tb.monster) do for s = 1, tonumber(x:match("%d+")) do doSummonCreature(x:match("%s(.+)"), tb.pos) end end end return true end Depois vá na pasta data/globalevents e procure pelo arquivo globalevents.xml e adicione a seguinte tag: <globalevent name="Invasao" interval="60" event="script" value="inv.lua"/> Adicionando Invasões No arquivo inv.lua vc segue a seguinte tabela: local i = { ["00:00"] = {nome = "Demon Invasões", pos = {x=1000, y=1000, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}}, ["21:00"] = {nome = "Dragon Invasões", pos = {x=1000, y=1000, z=7}, monster = {"100 Dragon"}}, } Para adicionar mais eventos é simples, somente configurar: ["HORA DA INVASÃO"] = {nome = "NOME DA INVASÃO", pos = {POSIÇÃO X, Y, Z}, monster = {"MONSTROS"}}, Á hora da invasão é colocada entre " " e somente a hora e minuto, segundos não precisa exemplo: "15:00" Á Posição está entre { } adicionando as posições x, y e z, exemplo: {x=1688, y=1445, z=7} Os monters tem um modo especial de configurar, vc coloca entre { }, e cada monstro entre " ", e entre as " " vc adiciona "QUANTIDADE MONSTRO", e para adicionar mais tipos de monstro se separa por virgulas, exemplo: {"40 Water Elemental", "5 Cyclops"} E no final de cada invasão não esqueça a virgula, exemplo: ["21:00"] = {nome = "Dragon Invasões", pos = {x=1000, y=1000, z=7}, monster = {"100 Dragon"}}, eh isso ae ;D creditos : xotserv
-
Spell Ñão Está Funcionando O Exhalsted // Spell Q Impurra
tópico respondeu ao pvjf de PsyMcKenzie em Lixeira Pública
tente assim local acombat1 = createCombatObject() local acombat2 = createCombatObject() local acombat3 = createCombatObject() local acombat4 = createCombatObject() local acombat5 = createCombatObject() local acombat6 = createCombatObject() local acombat7 = createCombatObject() local acombat8 = createCombatObject() local acombat9 = createCombatObject() local acombat10 = createCombatObject() local acombat11 = createCombatObject() local acombat12 = createCombatObject() local acombat13 = createCombatObject() local acombat14 = createCombatObject() local acombat15 = createCombatObject() local acombat16 = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat5, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat6, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat7, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat8 = createCombatObject() setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat8, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat9 = createCombatObject() setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat9, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat10 = createCombatObject() setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat10, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat11 = createCombatObject() setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat11, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat12 = createCombatObject() setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat12, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat13 = createCombatObject() setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat13, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat14 = createCombatObject() setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat14, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat14, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat15 = createCombatObject() setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat15, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat15, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) local combat16 = createCombatObject() setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat16, COMBAT_PARAM_EFFECT, 9) setCombatParam(combat16, COMBAT_PARAM_DISTANCEEFFECT, 8) setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0) arr1 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } arr2 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } arr3 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 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, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) local area5 = createCombatArea(arr5) local area6 = createCombatArea(arr6) local area7 = createCombatArea(arr7) local area8 = createCombatArea(arr8) local area9 = createCombatArea(arr9) local area10 = createCombatArea(arr10) local area11 = createCombatArea(arr11) local area12 = createCombatArea(arr12) local area13 = createCombatArea(arr13) local area14 = createCombatArea(arr14) local area15 = createCombatArea(arr15) local area16 = createCombatArea(arr16) setCombatArea(acombat1, area1) setCombatArea(acombat2, area2) setCombatArea(acombat3, area3) setCombatArea(acombat4, area4) setCombatArea(acombat5, area5) setCombatArea(acombat6, area6) setCombatArea(acombat7, area7) setCombatArea(acombat8, area8) setCombatArea(acombat9, area9) setCombatArea(acombat10, area10) setCombatArea(acombat11, area11) setCombatArea(acombat12, area12) setCombatArea(acombat13, area13) setCombatArea(acombat14, area14) setCombatArea(acombat15, area15) setCombatArea(acombat16, area16) function onTargetTile(cid, pos) doCombat(cid,combat1,positionToVariant(pos)) end function onTargetTile2(cid, pos) doCombat(cid,combat2,positionToVariant(pos)) end function onTargetTile3(cid, pos) doCombat(cid,combat3,positionToVariant(pos)) end function onTargetTile4(cid, pos) doCombat(cid,combat4,positionToVariant(pos)) end function onTargetTile5(cid, pos) doCombat(cid,combat5,positionToVariant(pos)) end function onTargetTile6(cid, pos) doCombat(cid,combat6,positionToVariant(pos)) end function onTargetTile7(cid, pos) doCombat(cid,combat7,positionToVariant(pos)) end function onTargetTile8(cid, pos) doCombat(cid,combat8,positionToVariant(pos)) end function onTargetTile9(cid, pos) doCombat(cid,combat9,positionToVariant(pos)) end function onTargetTile10(cid, pos) doCombat(cid,combat10,positionToVariant(pos)) end function onTargetTile11(cid, pos) doCombat(cid,combat11,positionToVariant(pos)) end function onTargetTile12(cid, pos) doCombat(cid,combat12,positionToVariant(pos)) end function onTargetTile13(cid, pos) doCombat(cid,combat13,positionToVariant(pos)) end function onTargetTile14(cid, pos) doCombat(cid,combat14,positionToVariant(pos)) end function onTargetTile15(cid, pos) doCombat(cid,combat15,positionToVariant(pos)) end function onTargetTile16(cid, pos) doCombat(cid,combat16,positionToVariant(pos)) end setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile") setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2") setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3") setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4") setCombatCallback(acombat5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5") setCombatCallback(acombat6, CALLBACK_PARAM_TARGETTILE, "onTargetTile6") setCombatCallback(acombat7, CALLBACK_PARAM_TARGETTILE, "onTargetTile7") setCombatCallback(acombat8, CALLBACK_PARAM_TARGETTILE, "onTargetTile8") setCombatCallback(acombat9, CALLBACK_PARAM_TARGETTILE, "onTargetTile9") setCombatCallback(acombat10, CALLBACK_PARAM_TARGETTILE, "onTargetTile10") setCombatCallback(acombat11, CALLBACK_PARAM_TARGETTILE, "onTargetTile11") setCombatCallback(acombat12, CALLBACK_PARAM_TARGETTILE, "onTargetTile12") setCombatCallback(acombat13, CALLBACK_PARAM_TARGETTILE, "onTargetTile13") setCombatCallback(acombat14, CALLBACK_PARAM_TARGETTILE, "onTargetTile14") setCombatCallback(acombat15, CALLBACK_PARAM_TARGETTILE, "onTargetTile15") setCombatCallback(acombat16, CALLBACK_PARAM_TARGETTILE, "onTargetTile16") local function onCastSpell1(parameters) doCombat(parameters.cid, acombat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, acombat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, acombat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, acombat4, parameters.var) end local function onCastSpell5(parameters) doCombat(parameters.cid, acombat5, parameters.var) end local function onCastSpell6(parameters) doCombat(parameters.cid, acombat6, parameters.var) end local function onCastSpell7(parameters) doCombat(parameters.cid, acombat7, parameters.var) end local function onCastSpell8(parameters) doCombat(parameters.cid, acombat8, parameters.var) end local function onCastSpell9(parameters) doCombat(parameters.cid, acombat9, parameters.var) end local function onCastSpell10(parameters) doCombat(parameters.cid, acombat10, parameters.var) end local function onCastSpell11(parameters) doCombat(parameters.cid, acombat11, parameters.var) end local function onCastSpell12(parameters) doCombat(parameters.cid, acombat12, parameters.var) end local function onCastSpell13(parameters) doCombat(parameters.cid, acombat13, parameters.var) end local function onCastSpell14(parameters) doCombat(parameters.cid, acombat14, parameters.var) end local function onCastSpell15(parameters) doCombat(parameters.cid, acombat15, parameters.var) end local function onCastSpell16(parameters) doCombat(parameters.cid, acombat16, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 200, parameters) addEvent(onCastSpell3, 300, parameters) addEvent(onCastSpell4, 400, parameters) addEvent(onCastSpell5, 500, parameters) addEvent(onCastSpell6, 600, parameters) addEvent(onCastSpell7, 700, parameters) addEvent(onCastSpell8, 800, parameters) addEvent(onCastSpell9, 900, parameters) addEvent(onCastSpell10, 1000, parameters) addEvent(onCastSpell11, 1100, parameters) addEvent(onCastSpell12, 1200, parameters) addEvent(onCastSpell13, 1300, parameters) addEvent(onCastSpell14, 1400, parameters) addEvent(onCastSpell15, 1500, parameters) addEvent(onCastSpell16, 1600, parameters) RETURN TRUE end DA REP+ AE SE EU TE AJUDEI -
tenho esse aki acho melhor tipo vc fala !addon (nome do addon) e vc ganha o addon e o item some em talkactions/script se cria uma pasta com nome de addondoll e cola isso dentro: function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325} } local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"} local param = string.lower(param) if (not isPremium(cid)) then doPlayerSendCancel(cid, "Você nao tem premium account.") return TRUE end if(getPlayerItemCount(cid,2112) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 2112, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end em vermelho o id do item em talkactions xml voce coloka isso: <talkaction words="!addon" event="script" value="addondoll.lua"/> se puder da um rep+ ae tbm sou novo ake mais seu um poko de ot =D até maiis.
-
preciso de um script que quando um player sorcerer chega no lvl 500k ele fala por exemplo !mastersorcerer dai ele volta level 50k com a promotion master sorcerer ajuda ae por favor
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.