Ir para conteúdo

Reds

Membro
  • Registro em

  • Última visita

Tudo que Reds postou

  1. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    3) crie um arquivo em creaturescript com o nome de mens.lua e coloque dentro: function onLogin(cid) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "MENSAGEM") end em creaturescript.xml adicione: <event type="login" name="mens" event="script" value="mens.lua"/>
  2. em meu server eu uso assim: <rune name="nomedaspell" id="20013" enabled="1" script="formonster/spell.lua"></rune> até agora nenhuma deu erro
  3. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    provavelmente tem um erro nas spells
  4. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    beleza, vou testar aqui quando eu tiver mais tempo e mando pra vc, achei q alguma das formas ja teria conseguido..
  5. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    function onCastSpell(cid, var) local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 93) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -55.5, 0) function rage3(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 36) doCombat(cid, combat1, var) end end for i = 1, 9 do addEvent(function() if isCreature(cid) then addEvent(rage3,1,cid) end end, 1 + ((i-1) * 225)) end return true end
  6. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    como? o effect 36 está mudando e vc n quer que mude?
  7. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    voce ta utilizando o client recomendado para o server?
  8. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_TEAL) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 93) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -50.0, 0, -55.5, 0) function onCastSpell(cid, var) function rage3(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 36) doCombat(cid, combat1, var) end end for i = 1, 9 do addEvent(function() if isCreature(cid) then addEvent(rage3,1,cid) end end, 1 + ((i-1) * 225)) end return true end testa aí
  9. voce pode dar uma olhada, acho que tem as funções, vai na pasta do seu servidor e abre outra pasta chamada doc, provavelmente lá tem um arquivo LUA_FUNCTIONS, procurando por palavras chaves vc pode encontrar todas as funções que precisa
  10. esse código que vc pegou só funciona em players, visto que a storage é dada no cara que recebe o dano e não em quem dá, o sistema nao funciona contra bixos, e esse erro está dando pq vc tirou: if isPlayer(attacker) and (not (attacker == cid))
  11. aparentemente está certo na linha do erro, será que voce nao esqueceu de copiar alguma linha no inicio?
  12. vc viajou cara, isso não tem absolutamente nada a ver com o comando status, esse seu código trata de um arquivo de weapon
  13. pq vc n usa assim? doSendAnimatedText(getCreaturePosition(cid), "blbla", 19)
  14. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    esse erro ta na talkaction, vc mexeu em algo lá depois que criou o topico?
  15. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    deu algum erro na distro?
  16. Reds postou uma resposta no tópico em Suporte Tibia OTServer
    em creaturescript cria um arquivo chamado rainbow.lua e coloca: function onLogout(cid)if getPlayerStorageValue(cid, 65535) > 0 then setPlayerStorageValue(cid, 65535, -1)return TRUEend end em creaturescript.xml coloca: <event type="logout" name="rainbow" event="script" value="rainbow.lua"/> em creaturescript cria um arquivo chamado rainbow1.lua e coloca: function onOutfit(cid, old, current)if getPlayerStorageValue(cid, 65535) > 0 then setPlayerStorageValue(cid, 65535, -1) return true end end em creaturescript.xml coloca: <event type="outfit" name="rainbow1" event="script" value="rainbow1.lua"/>
  17. vc se refere ao treinamento de skills?
  18. to achando que a premium do cara so acaba quando ele reloga, por isso nao funciona
  19. da pra criar por actions, vc teria q refazer todos os teles..
  20. vc importou o otb pro remeres tbm?
  21. function onThink(cid, interval) if getPlayerStorageValue(cid, 78945) > 0 and not isPremium(cid) then setPlayerStorageValue(cid,78945, -1) doPlayerSetTown(cid, 1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You premium is Over!") end end bota os 2, o do vodkart e o meu
  22. DoCreateItem(489, getPlayerPosition(cid)) so assim n da?
  23. na pasta weapons cria wand.lua e coloca: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) function onGetFormulaValues(cid, level, maglevel) min = -(100) max = -(240) return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) function onGetFormulaValues1(cid, level, maglevel) min = -(1000) max = -(2400) return min, max end setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues1") function onUseWeapon(cid, var) local function dano(var) doCombat(cid, combat, var) end local function dano1(var) doCombat(cid, combat, var) end if isMonster(getCreatureTarget(cid)) then addEvent(dano1, 0, var) else addEvent(dano, 0, var) end end weapons.xml adiciona: <wand id="2453" level="65" mana="25" min="0" max="0" type="energy" script="wand.lua"> <!-- wand --> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> </wand>

Informação Importante

Confirmação de Termo