Ir para conteúdo

thelifeofpbion

Membro
  • Registro em

  • Última visita

Tudo que thelifeofpbion postou

  1. thelifeofpbion postou uma resposta no tópico em Suporte Tibia OTServer
    mas as novas? estão normal? funcionando normalmente?
  2. Bom galera, tive um ideia para um quest, vou ser breve porque vou ter que ir para faculdade... se eu nao postasse isso eu acabria esquecendo. Pensei em uma quest onde duas pessoas puxam uma alavanca e vão para um corredor, e sumona um bixo em tal posição. basicamente era isso. porém preciso tambem que não de para outras pessoas usarem a alavanca até as duas pessoas que estão dentro do corredor sairem... desde já obrigado pela atenção :D
  3. Bom não faço script, mas eu tenho um aqui no meu projeto ( não sei quem fez e tambem nao tem créditos) que faz comprar item pela alavanca.... Vá na pasta actions > Scripts do seu ot, e crie um arquivo.lua (ou copie um existente) apague, e cole isto.... obs: nao esqueça de mudar o nome do .lua Ex: compra_axe local config = { money = 10000000, -- Dinheiro que vai custar item = 8301, -- ID do item que vai vender count = 1, -- Quantidade } function onUse(cid, item, fromPosition, itemEx, toPosition) pos = getCreaturePosition(cid) if item.itemid == 1945 then if doPlayerRemoveMoney(cid, config.money) == TRUE then doPlayerAddItem(cid, config.item, config.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Você acaba de comprar 1 "..config.count.." "..getItemNameById(config.item)..".") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) else doPlayerSendTextMessage(cid,22,"Voce precisa de 10kk para comprar uma critical stone!") doSendMagicEffect(pos, CONST_ME_POFF) end end end Depois, vá em actions.xml e adicione <action actionid="7004" event="script" value="compra_axe.lua"/> vale lembrar que o actionid voce tem que mudar para cada alavanca que for fazer... e não esqueça de adicionar o actionid pelo map editor para funcionar...
  4. já vi algo parecido mas não era bem um script, e sim tudo feito a mao ai a pessoa só ia dandando > ate achar algum que não tinha gente, era meio cansativo mas foi uma boa ideia... sobre o script, to meio ocupado ultimamente mas achei bem interessante e pretendo testar/usar, obrigado por contribuir. Otimo trabalho :D
  5. alguns meses atras falei a mesma coisa.. e ele achou ruim. sobre o extra experience, muito bom!!
  6. Gente, estou com uma dúvida, tem como colocar um script de um npc para um monstro? Segue a baixo o script que era de um npc, que eu queria que funcionasse em um monstro... Resumindo o script ele ataca apenas players com skull, mas isso é para um npc, no caso a gente coloca esse script, na pasta de script do npc lá e funciona... mas eu precisava isso para um monstro, tipo o monstro executa esse script ai. alguém consegue me ajudar? 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
  7. 0.3.6 tfs Titulo já diz tudo, :x preciso de um tile que a pessoa pisa em cima e entra numa guild, já existente. por exemplo existe a guild "maquinistas" a pessoa pisa no tile e entra nessa guild e um tile para retirar a qualquer guild que a pessoa esta.... tem como fazer isso?
  8. obrigado vankk, eu não sabia da existencia do campo de pesquisa :D e obrigado pelo script também.
  9. http://www.4shared.com/get/nq6kt0K2/Friday13-V30.html
  10. tfs 0.3.6Bom antigamente eu lembro que existia um script ou algo do tipo, que o time azul e preto fazia war.quem era do time azul so podia atacar os pretos e vice versa, alguém tem alguma ideia par ame ajudar?sei lá, por storage por algum script enfim... a pessoa vira de tal time, e so pode atacar pessoas de times diferentes.
  11. Gente, estou com uma dúvida, tem como colocar um script de um npc para um monstro? Segue a baixo o script que era de um npc, que eu queria que funcionasse em um monstro... Resumindo o script ele ataca apenas players com skull, mas isso é para um npc, no caso a gente coloca esse script, na pasta de script do npc lá e funciona... mas eu precisava isso para um monstro, tipo o monstro executa esse script ai. alguém consegue me ajudar? 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
  12. what?? deu pra entender nada
  13. que viagem... era só abrir como bloco de notas, depois clicar em "arquivo" > salvar como > dai la em baixo vai ta escrito "codificação" dai coloca UTF-8 e salva '-'
  14. thelifeofpbion postou uma resposta no tópico em Suporte Bots
    não, porque o programa estaria mexendo seu mouse... ai não tem como usar, mas tem como deixar na madrugada quando estiver dormindo rs. joguei classicus começo do ano antes do reset, ele já era meio antigo e já existia poucos bots, os que existiam não funcionam mais e acho dificil alguém jogar na net porque né... cliente próprio é sempre um problema, quem tem gosta de exclusividade.
  15. thelifeofpbion postou uma resposta no tópico em Suporte Bots
    @jadwiga cara, isso não é bot, é macro '-' mais conhecido como ghost mouse, voce abre o teclado virtual bota o ghost mouse pra rodar, digita o nome da magia pelo teclado virtual e coloca a runa na mao. '-' além de ser contra regras do ot, isso da ban, mas ta ai uma alternativa
  16. seria ótimo se estivesse funcionando '-'
  17. thelifeofpbion postou uma resposta no tópico em Suporte Tibia OTServer
    cara o no-ip é apenas para criar o ip, para abrir um servidor de tibia precisa de um "vps" eu conheço a ocean host, com cupom vc pode usar 1 mes gratis, porém é linux e na minha opinião linux é bem dificil de mexer... fora esse não sei nenhum tente abrir um servidor na sua casa....
  18. até onde eu sei o script já é bugado, o problema não é só comigo
  19. ta certinho o action tem sim, não há erros, o erro realmente ta no script. quando a partida de futebol acaba.
  20. Bom tenho server 2000x2000 Vocês poderiam me indicar uma empresa de vps? ou qual vps deveriam pegar com "x" ram etc? é mapa baiak tamanho do mapa uns 20 mb para diminuir lags é preciso de bastante ram?

Informação Importante

Confirmação de Termo