Ir para conteúdo

azzouks

Membro
  • Registro em

  • Última visita

Tudo que azzouks postou

  1. galera eu estava com um server 7.92 mas nao consegui colocar as funções que eu queria nele entao mudei pra 8.-, mas como faço pra passar o mapa pra 8.0 ? da error header information is oudated. Code 4. como atualizo meu mapa pra ele funcionar neste servidor ?
  2. Attempt to call global' getCreatureMaxHealth' a nil value
  3. mano, da o mesmo erro.. tem alguma outra função pra isso ? pra checar o life total e realar 10% ?
  4. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    é doplayeraddexp, mas da valor invalido, com o "getPlayerExperience" / como se nao tivesse essa função / nem getPlayerExp
  5. boa noite galera, seguinte, eu tenho um sistema de critical no meu servidor, pra players "semi-deuses", onde cada dano critico heala um tanto x de life, gostaria que fosse uma porcentagem, tipo 10% de life a cada critical, ja tentei da maneira que pensei que fosse funcionar e nao deu :/ preciso da colaboração de alguns ;P local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) function onGetFormulaValues(cid, level, maglevel) skill = getPlayerSkill(cid,3) min = -((skill*52)+(level*2)) max = -((skill*55)+(level*2)) return min, max end setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) function onGetFormulaValues(cid, level, maglevel) skill = getPlayerSkill(cid,3) min = -((skill*55)+(level*3)) max = -((skill*60)+(level*4)) return min, max end setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) function onGetFormulaValues(cid, level, maglevel) skill = getPlayerSkill(cid,3) min = -((skill*59)+(level*4)) max = -((skill*66)+(level*5)) return min, max end setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local condition = createConditionObject(CONDITION_EMO) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, 100, 3000, -607) setCombatCondition(combat2, condition) local condition = createConditionObject(CONDITION_EMO) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, 100, 3000, -607) setCombatCondition(combat3, condition) function onUseWeapon(cid, var) Critical = math.random(1,100) if Critical > 80 then local hp = getCreatureHealthMax(cid) local regenhp = hp*0.1 doPlayerAddHealth(cid, regenhp) doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY) doCombat(cid, combat2, var) end Critical = math.random(1,100) if Critical < 2 then local hp = getCreatureHealthMax(cid) local regenhp = hp*0.1 doPlayerAddHealth(cid, regenhp) doPlayerSay(cid,"For Honor!",16) doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY) doCombat(cid, combat3, var) else doCombat(cid, combat1, var) end end "attempt to call global 'getCreatureHealthMax' a nil value"
  6. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    desse jeito da esse erro Lua Script Error: [Npc interface] data/npc/scripts/isolda.lua:onCreatureSay data/npc/scripts/isolda.lua:206: attempt to call global 'getPlayerExperience' (a nil value) coloquei assim: local focus = 0 local talk_start = 0 local target = 0 local days = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hi ' .. creatureGetName(cid) .. '! what you want mortal?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'energyze necklace') or msgcontains(msg, 'energyze') then selfSay('I can energyze your necklace for 50k, do you want energyze?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2197,1) == 1 then doPlayerSendTextMessage(cid,22,"Voce Energizou seu Elemental necklace.") buy(cid,13682,getCount(msg),50000) selfSay('energyze the elemental necklace sucessfull.') else selfSay('Sorry, you do not have elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze spirit amulet') or msgcontains(msg, 'energyze') then selfSay('I can energyze your amulet for 100k, do you want energyze?') talk_state = 2 elseif talk_state == 2 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2173,1) == 1 then buy(cid,13683,getCount(msg),100000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Spirit elemental necklace.") selfSay('energyze the spirit necklace sucessfull.') else selfSay('Sorry, you do not have one spirit elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze magic amulet') or msgcontains(msg, 'energyze') then selfSay('I can energyze your magic amulet for 150k, do you want energyze?') talk_state = 3 elseif talk_state == 3 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2125,1) == 1 then buy(cid,13684,getCount(msg),150000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Magic elemental amulet.") selfSay('energyze the magic amulet sucessfull.') else selfSay('Sorry, you do not have one magic amulet.') end end talk_state = 0 elseif msgcontains(msg, 'elemental necklace') then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?') talk_state = 4 elseif talk_state == 4 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'spirit elemental necklace') then selfSay('You change a need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, change for a Spirit Elemental amulet?') talk_state = 5 elseif talk_state == 5 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2129,1) == 0 then elseif doPlayerRemoveItem(cid,2199,1) == 0 then elseif doPlayerRemoveItem(cid,2135,1) == 0 then elseif doPlayerRemoveItem(cid,2126,1) == 0 then elseif doPlayerRemoveItem(cid,2131,1) == 0 then elseif doPlayerRemoveItem(cid,2130,1) == 0 then elseif doPlayerRemoveItem(cid,2133,1) == 0 then elseif doPlayerAddItem(cid,2173,1) == 0 then selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') else selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'magic elemental amulet') then selfSay('You change a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya,change all for Elemental magic amulet?') talk_state = 6 elseif talk_state == 6 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2138,1) == 0 then elseif doPlayerRemoveItem(cid,2139,1) == 0 then elseif doPlayerRemoveItem(cid,2142,1) == 0 then elseif doPlayerRemoveItem(cid,2200,1) == 0 then elseif doPlayerRemoveItem(cid,2196,1) == 0 then elseif doPlayerRemoveItem(cid,2132,1) == 0 then elseif doPlayerRemoveItem(cid,2136,1) == 0 then elseif doPlayerAddItem(cid,2125,1) == 0 then selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') else selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then getPlayerBlessing(cid,1) getPlayerBlessing(cid,2) getPlayerBlessing(cid,3) getPlayerBlessing(cid,4) getPlayerBlessing(cid,5) selfSay('deseja compra o bless ?') talk_state = 7 elseif talk_state == 7 then if msgcontains(msg, 'yes') then if pay(cid,1000000) then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerSendTextMessage(cid,22,"Você recebeu a benção de Isolda.") else selfSay('Desculpe, mas voce não tem Ruby Coin suficiente.') end end talk_state = 0 elseif msgcontains(msg, 'reset') then selfSay('You realy want reset your character?') talk_state = 8 elseif msgcontains(msg, 'yes') then if getPlayerVocation(cid) < 13 then selfSay('Sorry, only gods can reset.') talk_state = 0 elseif getPlayerLevel(cid) < 500 then selfSay('Sorry, you need level 500 to reset your character.') talk_state = 0 elseif not isPremium(cid) then selfSay('Sorry, you must be premium to reset.') talk_state = 0 elseif doPlayerRemoveItem(cid,13685,50) == 1 then doPlayerAddExp(cid, -1800000000) doSendAnimatedText(getPlayerPosition(cid), "Reseted", TEXTCOLOR_LIGHTGREEN) doSendMagicEffect(getPlayerPosition(cid),14) doPlayerSendTextMessage(cid,21,"You are returned to level 8.") talk_state = 0 else selfSay('You dont have money for reset your character.') talk_state = 1 end talk_state = 0 elseif msgcontains(msg, 'offer') then selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magics" amulet, also can bless a little mortal and reset a god!') elseif msgcontains(msg, 'necklace') then selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?') elseif msgcontains(msg, 'amulet') then selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?') elseif msgcontains(msg, 'magics') then selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end end mas nao volta a exp :/ aparece "reseted" "you returned to level 8" pega o money mas nao volta o level nem tira a exp
  7. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    local focus = 0 local talk_start = 0 local target = 0 local days = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hi ' .. creatureGetName(cid) .. '! what you want mortal?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'energyze necklace') or msgcontains(msg, 'energyze') then selfSay('I can energyze your necklace for 50k, do you want energyze?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2197,1) == 1 then doPlayerSendTextMessage(cid,22,"Voce Energizou seu Elemental necklace.") buy(cid,13682,getCount(msg),50000) selfSay('energyze the elemental necklace sucessfull.') else selfSay('Sorry, you do not have elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze spirit amulet') or msgcontains(msg, 'energyze') then selfSay('I can energyze your amulet for 100k, do you want energyze?') talk_state = 2 elseif talk_state == 2 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2173,1) == 1 then buy(cid,13683,getCount(msg),100000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Spirit elemental necklace.") selfSay('energyze the spirit necklace sucessfull.') else selfSay('Sorry, you do not have one spirit elemental necklace.') end end talk_state = 0 elseif msgcontains(msg, 'energyze magic amulet') or msgcontains(msg, 'energyze') then selfSay('I can energyze your magic amulet for 150k, do you want energyze?') talk_state = 3 elseif talk_state == 3 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2125,1) == 1 then buy(cid,13684,getCount(msg),150000) doPlayerSendTextMessage(cid,22,"Voce Energizou seu Magic elemental amulet.") selfSay('energyze the magic amulet sucessfull.') else selfSay('Sorry, you do not have one magic amulet.') end end talk_state = 0 elseif msgcontains(msg, 'elemental necklace') then selfSay('You change a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth,change all for a Elemental necklace?') talk_state = 4 elseif talk_state == 4 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2201,1) == 0 then elseif doPlayerRemoveItem(cid,2198,1) == 0 then elseif doPlayerRemoveItem(cid,2170,1) == 0 then elseif doPlayerRemoveItem(cid,2171,1) == 0 then elseif doPlayerRemoveItem(cid,2172,1) == 0 then elseif doPlayerRemoveItem(cid,2161,1) == 0 then elseif doPlayerAddItem(cid,2197,1) == 0 then selfSay('change the amulet\'s for one elemental necklace sucessfull.') else selfSay('change the amulet\'s for one elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'spirit elemental necklace') then selfSay('You change a need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, change for a Spirit Elemental amulet?') talk_state = 5 elseif talk_state == 5 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2129,1) == 0 then elseif doPlayerRemoveItem(cid,2199,1) == 0 then elseif doPlayerRemoveItem(cid,2135,1) == 0 then elseif doPlayerRemoveItem(cid,2126,1) == 0 then elseif doPlayerRemoveItem(cid,2131,1) == 0 then elseif doPlayerRemoveItem(cid,2130,1) == 0 then elseif doPlayerRemoveItem(cid,2133,1) == 0 then elseif doPlayerAddItem(cid,2173,1) == 0 then selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') else selfSay('change the amulet\'s for one spirit elemental necklace sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'magic elemental amulet') then selfSay('You change a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya,change all for Elemental magic amulet?') talk_state = 6 elseif talk_state == 6 then if msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid,2138,1) == 0 then elseif doPlayerRemoveItem(cid,2139,1) == 0 then elseif doPlayerRemoveItem(cid,2142,1) == 0 then elseif doPlayerRemoveItem(cid,2200,1) == 0 then elseif doPlayerRemoveItem(cid,2196,1) == 0 then elseif doPlayerRemoveItem(cid,2132,1) == 0 then elseif doPlayerRemoveItem(cid,2136,1) == 0 then elseif doPlayerAddItem(cid,2125,1) == 0 then selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') else selfSay('change the amulet\'s for one elemental magic amulet sucessfull.') end end talk_state = 0 elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then getPlayerBlessing(cid,1) getPlayerBlessing(cid,2) getPlayerBlessing(cid,3) getPlayerBlessing(cid,4) getPlayerBlessing(cid,5) selfSay('deseja compra o bless ?') talk_state = 7 elseif talk_state == 7 then if msgcontains(msg, 'yes') then if pay(cid,1000000) then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerSendTextMessage(cid,22,"Você recebeu a benção de Isolda.") else selfSay('Desculpe, mas voce não tem Ruby Coin suficiente.') end end talk_state = 0 elseif msgcontains(msg, 'reset') then selfSay('You realy want reset your character?') talk_state = 8 elseif msgcontains(msg, 'yes') then if getPlayerVocation(cid) < 13 then selfSay('Sorry, only gods can reset.') talk_state = 0 elseif getPlayerLevel(cid) < 500 then selfSay('Sorry, you need level 500 to reset your character.') talk_state = 0 elseif not isPremium(cid) then selfSay('Sorry, you must be premium to reset.') talk_state = 0 elseif doPlayerRemoveItem(cid,13685,50) == 1 then doPlayerSetLevel(cid, -(getPlayerLevel(cid)-8)) doSendAnimatedText(getPlayerPosition(cid), "Reseted", TEXTCOLOR_LIGHTGREEN) doSendMagicEffect(getPlayerPosition(cid),14) doPlayerSendTextMessage(cid,21,"You are returned to level 8.") talk_state = 0 else selfSay('You dont have money for reset your character.') talk_state = 1 end talk_state = 0 elseif msgcontains(msg, 'offer') then selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magics" amulet, also can bless a little mortal and reset a god!') elseif msgcontains(msg, 'necklace') then selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?') elseif msgcontains(msg, 'amulet') then selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?') elseif msgcontains(msg, 'magics') then selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end end deu erro na hora de setar o level, alguem ajude em uma função de 7.92 onde eu consiga voltar o level pra 8. lembrando o servidor é 7.92.. por favor alguem me ajuda Lua Script Error: [Npc interface] data/npc/scripts/isolda.lua:onCreatureSay data/npc/scripts/isolda.lua:206: attempt to call global 'doPlayerSetLevel' (a nil value)
  8. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    nao deu certo, agora eu to quase la de outra frma mais nao ta voltado o level :/ http://www.tibiaking.com/forum/topic/32291-ajuda-reset-79/
  9. azzouks postou uma resposta no tópico em Suporte & Pedidos
    eu tenho um 7.92 com varias mudanças, bem editado.. sprites novas, monsters, magias, vocações e itens .. mais nao consigo colocar sistema de reset :/
  10. quero adicionar algumas funções no meu servidor de 7.92 tenho que editar na minha distro como faço isso ?
  11. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    nao sei como fazer em nenhuma versão, como eu faço isso ? nao tenho as sources do meu ot, consigo mudar mesmo assim? ou preciso de uma source 7.92 ? me da umas dicas por favor :/ preciso muito disso
  12. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    Galera, eu gostaria de colocar algumas funçoes de 8.6 no meu 7.92 pra criar um sistema de reset, como faço isso
  13. não, na parte dos skills nao funcionou.. porem isso a gente resolve depois.. obrigado
  14. nao nos skills.. no 7.92 tinha uma doAddPlayerSkill sera que ela funciona no 8.6 ? tem como criar um script desse em 7.92 ?
  15. trocando o db.executeQuery por db.query deu sim, obrigado a ajuda dos dois.. muito obrigado mesmo (L) rep ++++ Duvida sanada.
  16. [19:34:00.781] [Error - NpcScript Interface] [19:34:00.782] In a timer event called from: [19:34:00.782] data/npc/scripts/reset.lua:onCreatureSay [19:34:00.783] Description: [19:34:00.783] data/npc/scripts/reset.lua:36: attempt to call field 'executeQuery' (a nil value) [19:34:00.784] stack traceback: [19:34:00.784] data/npc/scripts/reset.lua:36: in function <data/npc/scripts/reset.lua:19> nao volta o level esse executequery deve ser no "..config.newlevel.." o char ganha 1 reset, volta mana e life, remove o dinheiro, mas nao volta o level
  17. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "BroadDeath") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "TiraBattle") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena return true end alguem plz?
  18. azzouks postou uma resposta no tópico em Suporte Tibia OTServer
    Olá tibianos e otserverianos (sei la ne) no meu ot, sempre que reloga volta uma vocation.. vc esta slayer e reloga volta pra elite knight e reloga volta pra knight algo que eu possa fazer ? me ajudem pls
  19. ta dando erro mano [14:46:12.469] [Error - LuaInterface::loadFile] data/npc/scripts/isolda.lua:197: unfinished long comment near '<eof>' [14:46:12.470] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/isolda.lua [14:46:12.471] data/npc/scripts/isolda.lua:197: unfinished long comment near '<eof>'
  20. resolvido, obrigado ; )
  21. o problema e este, eu nao sei muito sobre script .. teria como desenvolver um script do npc pra mim ? porque sou meio leigo nisso.. eu sacava sobre 7.9 agora q migrei pra 8.6 to tentando aprender, mais e tudo diferente e novo pra mim
  22. Galera sou meio novo aqui no TibiaKing, e tbm na versão 8.6... queria um script de um NPC, onde o player tenha que ter level 700 +, o primeiro reset custaria 10kk, o segundo 20kk e assim por diante, nao teria limite de reset.. ele voltaria level 20 com 15% do total da mana e life que tinha no level que resetou (7000 - >começaria com 1050) e ganharia skills por vocação Mage - 20 ML voc 9 e 10 Kina - 25 em todos os skills menos dist voc 11 archer - +25 em dist e shielding voc 12 ---------------------------------------------------------- uma nova moeda, onde os NPC as aceitem, Gold - > Platinum -> Crystal - > Ruby 2 rep+ garantidos!

Informação Importante

Confirmação de Termo