Ir para conteúdo

Reds

Membro
  • Registro em

  • Última visita

Tudo que Reds postou

  1. function onDeath(cid, corpse, deathList) doBroadcastMessage("O jogador "..getCreatureName(deathList[1]).." killed the powerful boss "..getCreatureName(cid).."!") end <event type="death" name="killboss" event="script" value="killboss.lua"/> <script> <event name="killboss"/> </script> testa ai, coloca em todos monstros que vc quer que sejam listados, assim só vai ser executado neles e não precisa listar
  2. se seu sistema fosse por storage, seria bem mais facil, basicamente vc tem q por pro player ganhar um storage ao resetar e um piso que so passa quem possuir storage
  3. agora acho que sei como ele fez, usou creaturescript onCombat né?
  4. acabei de testar aqui e funcionou certo, useiem um helmet, verifica se vc colocou certo <movevent type="Equip" itemid="2471" slot="head" function="onEquipItem" script="tking/storage.lua" />
  5. local storage = 13645 -- Storage necessaria para usar o item aqui. function onEquip(cid, item) if getPlayerStorageValue(cid, storage) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough power to equip this item.") return false end return true end testa ai
  6. tem algo assim das stances para tfs 0.4? ontem procurei no lua functions não achei ;s
  7. vai usando local area = e vai moldando
  8. tanto essa, quanto a spell ondas de fogo são fáceis, porém extensas, só ver no /z que tem as 2 animações e colocar, o trampo tá ficar criando vários addevent e tal
  9. teria que ver as funções e ver como chama cada uma, de resto é igual, procura nos fóruns do tibiaking e otland que vc acha fácil
  10. tem a animação sim
  11. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 120000) condition:setParameter(CONDITION_PARAM_SUBID, 116) condition:setParameter(CONDITION_PARAM_BUFF_SPELL, 1) combat:setCondition(condition) function onCastSpell(creature, var) local player = Player(creature) if player then setPlayerStorageValue(player.uid, 5, 25) addEvent(setPlayerStorageValue, 120 * 1000, player.uid, 5, 0) end combat:execute(creature, var) creature:sendTextMessage(MESSAGE_INFO_DESCR, "Aura reflect started!") addEvent(function() if player then creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") end end, 120*1000) return true end
  12. Reds postou uma resposta no tópico em Suporte & Pedidos
    parece bacana o servidor, já que todo mundo ta usando bot pra aimbot pq não mudar e por no client? boa ideia, parabéns!
  13. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    addEvent(function() creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") end, 180000) n sei mt bem as funções tfs 1.x, mas ai ta mandando a msg, pra n dar erro na distro seria bom verificar se há player
  14. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    nao tem o arquivos stages no seu xml?
  15. Isso me fez refletir, estou ajudando muitas pessoas que me chamam no pvt, assim o conteúdo não é disponivel para outras. A partir de agora só irei ajudar em tópicos, e espero que todos façam isso.
  16. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    Fica em data>xml>stages.lua lembra de por true no config.lua experienceStages = true
  17. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    <item id="8858" article="an" name=" elethriel's elemental bow "> <attribute key="weight" value="4900" /> <attribute key="weaponType" value="distance" /> <attribute key="range" value="5" /> </item>
  18. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    o bow: weapons/armas coloca: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) setCombatFormula(combat, COMBAT_FORMULA_SKILL, -1, -60, -1, -60, 5, 5, 4, 7) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end ai em weapons/weapons.xml: <distance id="8858" level="8" range="6" enabled="1" exhaustion="0" hitchance="100" script="armas/magic bow.lua"><vocation id="7"/><vocation id="3"/></distance>
  19. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    sqlType = "sqlite" tenta trocar por mysql, pode ser isso #edit esquece, isso daria erro na database nao no config
  20. --[[Critical System ------------------------- By Night Wolf]] local lvlcrit = 48913 local multiplier = 1.5 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then dano = math.ceil(value*(multiplier)) doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255) doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144) doSendMagicEffect(getCreaturePos(attacker), 43) return false end end return true end é isso q vc quer?
  21. local lvldodge = 48902 local percent = 0.5 function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS and isCreature(attacker) then if (getPlayerStorageValue(cid, lvldodge)*3) >= math.random (0,1000) then value = math.ceil(value*(percent)) doTargetCombatHealth(attacker, cid, combat, -value, -value, 255) doSendAnimatedText(getCreaturePos(cid), "DODGE", 6) doSendMagicEffect(getCreaturePos(cid), 43) return false end end return true end
  22. Fala primeiro o sistema que vc usa né amigo..
  23. function onSay(cid, words, param) moeda = getPlayerItemCount(cid, 2149) if moeda >= 50 then doPlayerRemoveItem(cid, 2149, 50) doPlayerAddItem(cid,iddoitemqueganha,quantiedaddqueganha) return TRUE else doPlayerSendCancel(cid, "Voce nao tem dinheiro.") return FALSE end end nao testei

Informação Importante

Confirmação de Termo