Ir para conteúdo

lordefmorte

Membro
  • Registro em

  • Última visita

Tudo que lordefmorte postou

  1. acredito que fiz ago errado por favo ver se tem ago errado aqui no data\npc criei um arquivo xml como o nome de defender dentro dele botei isso <?xml version="1.0"?> <npc name="Defender" script="defender.lua" access="5" lookdir="2" autowalk="25"> <mana now="800" max="800"/> <health now="200" max="200"/> <look type="131" head="116" body="94" legs="78" feet="115" addons="3"/> </npc> local level = 10 -- Quanto o NPC irar tirar. local maglevel = 10 -- Quanto o NPC Irar tirar. local min_multiplier = 2.1 -- Quanto o NPC Irar tirar. local max_multiplier = 4.2 -- Quanto o NPC Irar tirar. local Attack_message = "An Invader, ATTACK!!!" -- A mensagem queo NPC irar falar quanto detectar um invasor. dentro de data\npc\scripts criei um arquivo lua como o nome de defender detro botei isso local level = 10 ----- change this to make the npc hit more/less---------------------|damage_min = (level * 2 + maglevel * 3) * min_multiplier | local maglevel = 10 ----- change this to make the npc hit more/less -----------------|damage_max = (level * 2 + maglevel * 3) * max_multiplier | local min_multiplier = 2.1 ----- change this to make the npc hit more/less ----------|damage_formula = math.random(damage_min,damage_max) | local max_multiplier = 4.2 ----- change this to make the npc hit more/less --------------------------------------------------------------------- local check_interval = 5 ----- change this to the time between checks for a creature (the less time the more it will probably lag :S) local radiusx = 7 ----- change this to the amount of squares left/right the NPC checks (default 7 so he checks 7 squares left of him and 7 squares right (the hole screen) local radiusy = 5 ----- change this to the amount of squares left/right the NPC checks (default 5 so he checks 5 squares up of him and 5 squares down (the hole screen) local Attack_message = "An Invader, ATTACK!!!" ----- change this to what the NPC says when he sees a monster(s) local town_name = "Archgard" ----- the name of the town the NPC says when you say "hi" local Attack_monsters = TRUE ----- set to TRUE for the npc to attack monsters in his area or FALSE if he doesnt local Attack_swearers = TRUE ----- set to TRUE for the npc to attack players that swear near him or FALSE if he doesnt local Attack_pkers = TRUE ----- set to TRUE for the npc to attack players with white and red skulls or FALSE if he doesnt local health_left = 10 ----- set to the amount of health the npc will leave a player with if they swear at him (ie at 10 he will hit the player to 10 health left) local swear_message = "Take this!!!" ----- change this to what you want the NPC to say when he attackes a swearer local swear_words = {"shit", "fuck", "dick", "cunt"} ----- if "Attack_swearers" is set to TRUE then the NPC will attack anyone who says a word in here. Remember to put "" around each word and seperate each word with a comma (,) local hit_effect = CONST_ME_MORTAREA ----- set this to the magic effect the creature will be hit with, see global.lua for more effects local shoot_effect = CONST_ANI_SUDDENDEATH ----- set this to the magic effect that will be shot at the creature, see global.lua for more effects local damage_colour = TEXTCOLOR_RED ----- set this to the colour of the text that shows the damage when the creature gets hit ------------------end of config------------------ local check_clock = os.clock() ----- leave this local focus = 0 ----- leave this 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) health = getCreatureHealth(cid) - health_left if ((string.find(msg, '(%a*)hi(%a*)'))) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. creatureGetName(cid) .. '! I am a defender of '..town_name..'.') doNpcSetCreatureFocus(cid) focus = 0 end if msgcontains(msg, 'time') then selfSay('The time is ' .. getWorldTime() .. '.') end if messageIsInArray(swear_words, msg) then if Attack_swearers == TRUE then selfSay('' .. swear_message ..' ') doCreatureAddHealth(cid,-health) doSendMagicEffect(getThingPos(cid),17) doSendAnimatedText(getThingPos(cid),health,180) doNpcSetCreatureFocus(cid) focus = 0 end end end function getMonstersfromArea(pos, radiusx, radiusy, stack) local monsters = { } local starting = {x = (pos.x - radiusx), y = (pos.y - radiusy), z = pos.z, stackpos = stack} local ending = {x = (pos.x + radiusx), y = (pos.y + radiusy), z = pos.z, stackpos = stack} local checking = {x = starting.x, y = starting.y, z = starting.z, stackpos = starting.stackpos} repeat creature = getThingfromPos(checking) if creature.itemid > 0 then if isCreature(creature.uid) == TRUE then if isPlayer(creature.uid) == FALSE then if Attack_monsters == TRUE then table.insert (monsters, creature.uid) check_clock = os.clock() end elseif isPlayer(creature.uid) == TRUE then if Attack_pkers == TRUE then if getPlayerSkullType(creature.uid) > 0 then table.insert (monsters, creature.uid) check_clock = os.clock() end end end end end if checking.x == pos.x-1 and checking.y == pos.y then checking.x = checking.x+2 else checking.x = checking.x+1 end if checking.x > ending.x then checking.x = starting.x checking.y = checking.y+1 end until checking.y > ending.y return monsters end function onThink() if (Attack_monsters == TRUE and Attack_pkers == TRUE) or (Attack_monsters == TRUE and Attack_pkers == FALSE) or (Attack_monsters == FALSE and Attack_pkers == TRUE) then if (os.clock() - check_clock) > check_interval then monster_table = getMonstersfromArea(getCreaturePosition(getNpcCid( )), radiusx, radiusy, 253) if #monster_table >= 1 then selfSay('' .. Attack_message ..' ') for i = 1, #monster_table do doNpcSetCreatureFocus(monster_table[i]) local damage_min = (level * 2 + maglevel * 3) * min_multiplier local damage_max = (level * 2 + maglevel * 3) * max_multiplier local damage_formula = math.random(damage_min,damage_max) doSendDistanceShoot(getCreaturePosition(getNpcCid( )), getThingPos(monster_table[i]), shoot_effect) doSendMagicEffect(getThingPos(monster_table[i]),hit_effect) doSendAnimatedText(getThingPos(monster_table[i]),damage_formula,damage_colour) doCreatureAddHealth(monster_table[i],-damage_formula) check_clock = os.clock() focus = 0 end elseif table.getn(monster_table) < 1 then focus = 0 check_clock = os.clock() end end end focus = 0 end
  2. oi quero poe meu ot no dedicado mas nao sei onde hospeda gostaria de um recomendação. agradeço
  3. tem como altera o numero de cm que poso por no meu ot tipo quero por 20 cm mas tem um cero limite se nao me engano ou se possível liberar alguns comando cm para os play normal mas o que gostaria mesmo de fazer seria altera a quantidade de cm d server
  4. gostaria de sabe como cria um cliente próprio 10.10 mas n encontrei tutorial para isso aqui na verdade encontrei ums o único problema e os tutorial e muito velhos e os lik para o download n estão mas servindo. bom o que realmente eu quero e um tutorial que me de os lik de download ou od lik de download deste aqui http://www.tibiaking.com/forum/topic/16330-tutorial-completo-criando-um-cliente-100-proprio/ que são estes arquivos Pacote de Criação Cliente Próprio Pacote de Criação Cliente Próprio (Rapid-Share) Baixe Qualquer Cliente de Tibia - Clique para Escolher se tive outra maneira de mi ajuda eu ticarei feliz obrigado
  5. lordefmorte postou uma resposta no tópico em Tibia Global OTServer
    olha este e meu primeiro map que edito eu pegei um baiak 15 vip e criei um verdadeira cidade baixem e confira na verdade nao tenho muita enformação para da pq o que eu fiz foi simplesmente uma cidade rodeada por hydrae dragon fiz também um verdadeiro templo e um cemitério que ao play more nasse neste luga e pode volta para o templo ou ate subi a escada ir para o lado de fora da cidade download http://www.mediafire.com/download/4od57iiqwizwjr9/Baiak+Maste.rar
  6. sente eu tenho um map Baiak Zik By DeatRocks Vip 15 e nele tem ums nome que fica subindo nao consigo enconta o script dos nome eu queria so muda ele de luga mas também poso fazer outros a pegunta e seguinte 1 como encontro 2 se eu nao encontra como por aquele nome que sobe no map valeu mela ajuda
  7. bom esto com um erro no meu ot nao sei costaria de sabe qual e e como ajeita
  8. nao tem como edita por vocação
  9. encontrei so tem uma coisa nao sei edita ele <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="Dener Diegoli" contact="[email protected]" enabled="yes"> <config name="firstitems_config"><![CDATA[ config = { storage = 30001, items = {2050, 2382} } ]]></config> <event type="login" name="FirstItems" event="buffer"><![CDATA[ domodlib('firstitems_config') if(getPlayerStorageValue(cid, config.storage) > 0) then return end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then doPlayerAddItem(cid, 2651, 1) else doPlayerAddItem(cid, 2650, 1) end doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1) setPlayerStorageValue(cid, config.storage, 1) ]]></event> </mod>
  10. obrigado pela ajuda fou tudo bem respondido
  11. vc nao entendeu la en data\creaturescripts\scripts encontrei o arquivo firstitems mas na pasta data\creaturescripts tem o arquivo creaturescripts,XML e para o firstitems funciona nao e necessário uma aba como esta <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/> que estava la de outro aquivo a questão e se precisa ? como eu coloco ?
  12. olha la tem o luga para troca os item mas ja ta como eu quero mas nao começa com eles triste la no creaturescripts.xml nao tem um deste com o nome dele <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/>
  13. olha la tem o luga para troca os item mas ja ta como eu quero mas nao começa com eles triste
  14. o Account Manager loga antes de completa a conta toda
  15. vc ja me ajudo muito acredito que esto pedindo muito mas so lembrei agora que o tempo de cria a conta ta muito baixo tem como edita
  16. so mas uma coisa muito simples mas que eu nao sei como muda os item inicial so play
  17. galera tenho um ot ja procurei feito um condenado mas como sempre nao encontrei eu gostaria de saber como troca o tempo de ataque dos play para o ataque ser mas rápido agradeço muito
  18. decuplem pelo erro
  19. nao sei se poso fazer isso mas ja to fazendo eu ja procurei muito um map global 8.70 que abra mas nao encontrei nem um quero por um ot 8.70 on mas so encontro map sei as coisas ai nao da pra abrir me ajudem
  20. gemte eu coloco o ip da minha red no config lua o ip do www.meuip.com.br so que o ip muda direto e o meu ot fica off quando ele muda por favor o que faço me ajude
  21. lordefmorte postou uma resposta no tópico em Suporte Tibia OTServer
    obrigado por esta mi ajudando olha as configuração do meu roteado e muito diferente do que vc falo ele e D-Link e eu nao encontrei estas configuração de se pra por umas imagem e bem melhor REP + por ta mi ajudando
  22. lordefmorte postou uma resposta no tópico em Suporte Tibia OTServer
    galera esto com um problema suito chato o ip da minha rede fica trocando direto e e justo ele que fica no confg.lua ele fica trocando sem a que eu tenha reiniciado o roteado esto jogando e de repente todos jogado sai e n entra mas ai quando vo ver o ip ja e outro agem sabe uma solução para o ip nao troca mas assim ou mas nuca ou qualquer coisa que eu posa fazer conto muito com a ajuda de voces

Informação Importante

Confirmação de Termo