Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. essa pos aqui existe ?? local position = {x=1541, y=1157, z=7} chega a teleportar pra essa posição?
  2. local storage, storage1 = 8910,158787 -- storage local position = {x=1541, y=1157, z=7} --Position pra onde o player vai ao usar a spell local voc, effect = 8, 2 function onSay(cid, param, word) if getPlayerVocation(cid) == voc then if getPlayerStorageValue(cid, storage) <= 0 then setPlayerStorageValue(cid, storage, 1) local pos = getCreaturePosition(cid) setPlayerStorageValue(cid, storage1, ":"..pos.x..",:"..pos.y..",:"..pos.z) doTeleportThing(cid, position) doSendMagicEffect(getCreaturePosition(cid), effect) else local w = tostring(getPlayerStorageValue(cid, storage1)):gsub(':', ''):explode(',') doTeleportThing(cid, {x = w[1], y = w[2], z = w[3]}) doSendMagicEffect(getCreaturePosition(cid), effect) end end return true end TESTA EM UMA NOVA CONTA
  3. local storage, storage1 = 8910,158787 -- storage local position = {x=1541, y=1157, z=7} --Position pra onde o player vai ao usar a spell local voc, effect = 8, 2 function onSay(cid, param, word) if getPlayerVocation(cid) == voc then if getPlayerStorageValue(cid, storage) <= 0 then setPlayerStorageValue(cid, storage, 1) doSendMagicEffect(getCreaturePosition(cid), effect) local pos = getCreaturePosition(cid) setPlayerStorageValue(cid, storage1, ":"..pos.x..","..pos.y..","..pos.z) doTeleportThing(cid, position) else local npos = getPlayerStorageValue(cid, storage1):sub(2):explode(",") doTeleportThing(cid, {x = npos[1], y = npos[2], z = npos[3]}) doSendMagicEffect(getCreaturePosition(cid), effect) end end return true end
  4. carai testei no meu ot e deu certo, mesmo dando follow ele ficou "parado" kk
  5. tenta assim: local combat = createCombatObject() setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) storage = 845784 events = {} function onCastSpell(cid, var) function noWalk(cid, pos) if not isCreature(cid) then return LUA_ERROR end if getPlayerStorageValue(cid, storage) - os.time() > 0 then local frompos = getThingPos(cid) if frompos.x ~= pos.x or frompos.y ~= pos.y or frompos.z ~= pos.z then doTeleportThing(cid, pos, false) end events[getPlayerGUID(cid)] = addEvent(noWalk, 100, cid, frompos) end end function effectNoMove(cid, effect) if not isCreature(cid) then return LUA_ERROR end if getPlayerStorageValue(cid, storage) - os.time() > 0 then local pos = getPlayerPosition(cid) doSendMagicEffect(pos, effect) addEvent(effectNoMove, 300, cid, effect) -- 300 é o delay end end local time,efeito = 10, 49 -- tempo e efeito local target = getCreatureTarget(cid) if isPlayer(target) and getPlayerStorageValue(target, storage) - os.time() <= 0 then setPlayerStorageValue(target, storage, os.time()+time) doSendMagicEffect(getPlayerPosition(target), efeito) effectNoMove(target, efeito) noWalk(target, {x=0, y=0, z=0}) return doCombat(cid, combat, var) end return true end
  6. vou coloca em vermelho e vc vai testando ai <?xml version="1.0" encoding="UTF-8"?> <creaturescripts> <!-- The Loot Boss Striker --> <event type="kill" name="lootboss" event="script" value="lootboss.lua"/> <event type="login" name="lootboss" event="script" value="lootboss.lua"/> <!-- Auto Loot --> <event type="login" name="Auto_Loot_Login" event="script" value="Auto_Loot.lua"/> <event type="kill" name="Auto_Loot_Kill" event="script" value="Auto_Loot.lua"/> <event type="attack" name="castAttack" event="script" value="castSys.lua"/> <event type="statschange" name="castHits" event="script" value="castSys.lua"/> <event type="logout" name="castLogout" event="script" value="castSys.lua"/> <event type="login" name="MsgNpcShop" event="script" value="npc_shop.lua"/> <event type="traderequest" name="Points_Trade_Request" event="script" value="Points_Trade.lua"/> <event type="death" name="DeathSystem" event="script" value="DeathSystem.lua"/> <event type="tradeaccept" name="Points_Trade" event="script" value="Points_Trade.lua"/> <event type="logout" name="entrosaLogout" event="script" value="warEntrosaLogout.lua"/> <event type="kill" name="morte" event="script" value="morte.lua"/> <event type="login" name="mutado" event="script" value="mute.lua"/> <event type="login" name="otlist" event="script" value="otlist.lua"/> <event type="login" name="savePlayer" event="script" value="savePlayer.lua" /> <event type="logout" name="savePlayer_L" event="script" value="savePlayer.lua" /> <event type="think" name="EffectCheck" event="script" value="checkGEM.lua"/> <event type="login" name="EffectLogin" event="script" value="checkGEM.lua"/> <event type="kill" name="armyKill" event="script" value="army.lua"/> <event type="look" name="armyLook" event="script" value="army.lua"/> <event type="login" name="armyLogin" event="script" value="army.lua"/> <event type="login" name="AuraLogin" script="auralogin.lua"/> <!-- Battlefield Event --> <event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/> <event type="death" name="Teleportquest" event="script" value="tpquest.lua"/> <event type="login" name="PlayerLogin" event="script" value="login.lua"/> <event type="login" name="FirstItems" event="script" value="firstitems.lua"/> <!-- Events --> <event type="statschange" name="FireStorm" event="script" value="events/FireStorm.lua"/> <event type="statschange" name="zombieevent" event="script" value="events/zombie.lua"/> <event type="PrepareDeath" name="DesertDeath" event="script" value="events/DesertWAR.lua"/> <event type="combat" name="DesertCombat" event="script" value="events/DesertWAR.lua"/> <event type="PrepareDeath" name="ctf" event="script" value="events/CTF.lua"/> <event type="PrepareDeath" name="BattleDeath" event="script" value="events/Battlefield.lua"/> <event type="combat" name="BattleCombat" event="script" value="events/Battlefield.lua"/> <event type="kill" name="killitem" event="script" value="lootkill.lua"/> <event type="advance" name="FullHpMana" event="script" value="fullhpmana.lua"/> <event type="advance" name="recompensa" event="script" value="recompensa_level.lua"/> <event type="kill" name="BountyHunter" script="kill.lua"/> <event type="death" name="deathnoob" event="script" value="noobsay.lua"/> <event type="death" name="huntdeath" event="script" value="death.lua"/> <event type="logout" name="loguthunt" event="script" value="logouthunt.lua"/> <event type="channeljoin" name="GuildEvents" event="script" value="guild.lua"/> <event type="mailreceive" name="Mail" event="script" value="mail.lua"/> <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/> <event type="death" name="teleportmonster" script="tpmonster.lua"/> <event type="login" name="ExpVip" script="vipexp.lua"/> <event type="login" name="AdvEffect" event="script" value="vipeffect.lua"/> <event type="think" name="Idle" event="script" value="idle.lua"/> <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/> <event type="PrepareDeath" name="pvparena" script="pvparena.lua"/> <event type="attack" name="attackguild" script="attackguild.lua"/> <event type="death" name="incendio" script="incendioMonster.lua"/> <event type="statschange" name="CombatDodge" event="script" value="dodgecombat.lua"/> <event type="statschange" name="critical" event="script" value="critical.lua"/> <event type="login" name="blesscheck" event="script" value="blesscheck.lua"/> <event type="look" name="fraglook" script="fraglook.lua"/> <event type="login" name="expwoe" event="script" value="expwoe.lua"/> <event type="login" name="FimVip" event="script" value="fimvip.lua"/> <!-- WoE --> <event type="death" name="empe_broken" event="script" value="empe_broken.lua"/> <event type="death" name="pre_empes" event="script" value="pre_empes.lua"/> <event type="statschange" name="empe_dmg" event="script" value="empe_dmg.lua"/> <event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/> <event type="statschange" name="vs_guard" event="script" value="vs_guard.lua"/> <!--Addons--> <event type="death" name="teleportmonster2" script="tpmonster2.lua"/> <!-- Jack Sparrow --> <event type="death" name="teleportmonster3" script="tpmonster3.lua"/> <!-- Orochimaru --> <event type="death" name="teleportmonster4" script="tpmonster4.lua"/> <!-- Merlin --> <event type="death" name="teleportmonster5" script="tpmonster5.lua"/> <!-- Constantine --> <event type="death" name="teleportmonster6" script="tpmonster6.lua"/> <!-- Conan o Barbaro --> <event type="death" name="teleportmonster7" script="tpmonster7.lua"/> <!-- Konga --> <event type="death" name="teleportmonster8" script="tpmonster8.lua"/> <!-- Esquimoh --> <event type="death" name="teleportmonster9" script="tpmonster9.lua"/> <!-- Lament of Innocence --> <event type="death" name="teleportmonster10" script="tpmonster10.lua"/> <!-- King Arthur --> <event type="death" name="teleportmonster11" script="tpmonster11.lua"/> <!-- Drako --> <event type="death" name="teleportmonster12" script="tpmonster12.lua"/> <!-- Chaos --> <event type="death" name="teleportmonster13" script="tpmonster13.lua"/> <!-- Alucard --> <event type="death" name="teleportmonster14" script="tpmonster14.lua"/> <!-- Symphony of the Night --> <event type="death" name="teleportmonster15" script="tpmonster15.lua"/> <!-- Espirito da Natureza --> <event type="death" name="teleportmonster16" script="tpmonster16.lua"/> <!-- Catatau --> <event type="death" name="teleportmonster17" script="tpmonster17.lua"/> <!-- Moby Dick --> <event type="death" name="teleportmonster18" script="tpmonster18.lua"/> <!-- Coringa --> <event type="death" name="teleportmonster19" script="tpmonster19.lua"/> <!-- Robin Hood --> <event type="death" name="teleportmonster20" script="tpmonster20.lua"/> <!-- Belmont's Revenge --> <event type="death" name="teleportmonster21" script="tpmonster21.lua"/> <!-- Gaia --> <event type="death" name="teleportmonster22" script="tpmonster22.lua"/> <!-- Gentleman --> <!--Arena--> <event type="death" name="teleportarena1" script="tparena1.lua"/> <!-- Elemental quest --> <event type="death" name="teleportmonster23" script="tpmonster23.lua"/> <!-- Massive Energy Elemental --> <event type="death" name="teleportmonster24" script="tpmonster24.lua"/> <!-- Massive Earth Elemental --> <event type="death" name="teleportmonster25" script="tpmonster25.lua"/> <!-- Massive Fire Elemental --> <event type="death" name="teleportmonster26" script="tpmonster26.lua"/> <!-- Massive Water Elemental --> </creaturescripts>
  7. então eu removi os possiveis que estariam bugando, teria que ir tirando um por um pra ver qual é kk
  8. cara removi alguns script que poderiam estar afetando isso, testa desse jeito e me fala <?xml version="1.0" encoding="UTF-8"?> <creaturescripts> <!-- The Loot Boss Striker --> <event type="kill" name="lootboss" event="script" value="lootboss.lua"/> <event type="login" name="lootboss" event="script" value="lootboss.lua"/> <!-- Auto Loot --> <event type="login" name="Auto_Loot_Login" event="script" value="Auto_Loot.lua"/> <event type="kill" name="Auto_Loot_Kill" event="script" value="Auto_Loot.lua"/> <event type="logout" name="castLogout" event="script" value="castSys.lua"/> <event type="login" name="MsgNpcShop" event="script" value="npc_shop.lua"/> <event type="traderequest" name="Points_Trade_Request" event="script" value="Points_Trade.lua"/> <event type="death" name="DeathSystem" event="script" value="DeathSystem.lua"/> <event type="tradeaccept" name="Points_Trade" event="script" value="Points_Trade.lua"/> <event type="logout" name="entrosaLogout" event="script" value="warEntrosaLogout.lua"/> <event type="kill" name="morte" event="script" value="morte.lua"/> <event type="login" name="mutado" event="script" value="mute.lua"/> <event type="login" name="otlist" event="script" value="otlist.lua"/> <event type="login" name="savePlayer" event="script" value="savePlayer.lua" /> <event type="logout" name="savePlayer_L" event="script" value="savePlayer.lua" /> <event type="think" name="EffectCheck" event="script" value="checkGEM.lua"/> <event type="login" name="EffectLogin" event="script" value="checkGEM.lua"/> <event type="kill" name="armyKill" event="script" value="army.lua"/> <event type="look" name="armyLook" event="script" value="army.lua"/> <event type="login" name="armyLogin" event="script" value="army.lua"/> <event type="login" name="AuraLogin" script="auralogin.lua"/> <!-- Battlefield Event --> <event type="death" name="SkullAmulet" event="script" value="preparedeath.lua"/> <event type="death" name="Teleportquest" event="script" value="tpquest.lua"/> <event type="login" name="PlayerLogin" event="script" value="login.lua"/> <event type="login" name="FirstItems" event="script" value="firstitems.lua"/> <!-- Events --> <event type="PrepareDeath" name="DesertDeath" event="script" value="events/DesertWAR.lua"/> <event type="PrepareDeath" name="ctf" event="script" value="events/CTF.lua"/> <event type="PrepareDeath" name="BattleDeath" event="script" value="events/Battlefield.lua"/> <event type="kill" name="killitem" event="script" value="lootkill.lua"/> <event type="advance" name="FullHpMana" event="script" value="fullhpmana.lua"/> <event type="advance" name="recompensa" event="script" value="recompensa_level.lua"/> <event type="kill" name="BountyHunter" script="kill.lua"/> <event type="death" name="deathnoob" event="script" value="noobsay.lua"/> <event type="death" name="huntdeath" event="script" value="death.lua"/> <event type="logout" name="loguthunt" event="script" value="logouthunt.lua"/> <event type="channeljoin" name="GuildEvents" event="script" value="guild.lua"/> <event type="mailreceive" name="Mail" event="script" value="mail.lua"/> <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/> <event type="death" name="teleportmonster" script="tpmonster.lua"/> <event type="login" name="ExpVip" script="vipexp.lua"/> <event type="login" name="AdvEffect" event="script" value="vipeffect.lua"/> <event type="think" name="Idle" event="script" value="idle.lua"/> <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/> <event type="PrepareDeath" name="pvparena" script="pvparena.lua"/> <event type="attack" name="attackguild" script="attackguild.lua"/> <event type="death" name="incendio" script="incendioMonster.lua"/> <event type="login" name="blesscheck" event="script" value="blesscheck.lua"/> <event type="look" name="fraglook" script="fraglook.lua"/> <event type="login" name="expwoe" event="script" value="expwoe.lua"/> <event type="login" name="FimVip" event="script" value="fimvip.lua"/> <!-- WoE --> <event type="death" name="empe_broken" event="script" value="empe_broken.lua"/> <event type="death" name="pre_empes" event="script" value="pre_empes.lua"/> <event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/> <!--Addons--> <event type="death" name="teleportmonster2" script="tpmonster2.lua"/> <!-- Jack Sparrow --> <event type="death" name="teleportmonster3" script="tpmonster3.lua"/> <!-- Orochimaru --> <event type="death" name="teleportmonster4" script="tpmonster4.lua"/> <!-- Merlin --> <event type="death" name="teleportmonster5" script="tpmonster5.lua"/> <!-- Constantine --> <event type="death" name="teleportmonster6" script="tpmonster6.lua"/> <!-- Conan o Barbaro --> <event type="death" name="teleportmonster7" script="tpmonster7.lua"/> <!-- Konga --> <event type="death" name="teleportmonster8" script="tpmonster8.lua"/> <!-- Esquimoh --> <event type="death" name="teleportmonster9" script="tpmonster9.lua"/> <!-- Lament of Innocence --> <event type="death" name="teleportmonster10" script="tpmonster10.lua"/> <!-- King Arthur --> <event type="death" name="teleportmonster11" script="tpmonster11.lua"/> <!-- Drako --> <event type="death" name="teleportmonster12" script="tpmonster12.lua"/> <!-- Chaos --> <event type="death" name="teleportmonster13" script="tpmonster13.lua"/> <!-- Alucard --> <event type="death" name="teleportmonster14" script="tpmonster14.lua"/> <!-- Symphony of the Night --> <event type="death" name="teleportmonster15" script="tpmonster15.lua"/> <!-- Espirito da Natureza --> <event type="death" name="teleportmonster16" script="tpmonster16.lua"/> <!-- Catatau --> <event type="death" name="teleportmonster17" script="tpmonster17.lua"/> <!-- Moby Dick --> <event type="death" name="teleportmonster18" script="tpmonster18.lua"/> <!-- Coringa --> <event type="death" name="teleportmonster19" script="tpmonster19.lua"/> <!-- Robin Hood --> <event type="death" name="teleportmonster20" script="tpmonster20.lua"/> <!-- Belmont's Revenge --> <event type="death" name="teleportmonster21" script="tpmonster21.lua"/> <!-- Gaia --> <event type="death" name="teleportmonster22" script="tpmonster22.lua"/> <!-- Gentleman --> <!--Arena--> <event type="death" name="teleportarena1" script="tparena1.lua"/> <!-- Elemental quest --> <event type="death" name="teleportmonster23" script="tpmonster23.lua"/> <!-- Massive Energy Elemental --> <event type="death" name="teleportmonster24" script="tpmonster24.lua"/> <!-- Massive Earth Elemental --> <event type="death" name="teleportmonster25" script="tpmonster25.lua"/> <!-- Massive Fire Elemental --> <event type="death" name="teleportmonster26" script="tpmonster26.lua"/> <!-- Massive Water Elemental --> </creaturescripts>
  9. @Dragon Ball Hiper agora entendi, no caso do android 17 ele está em follow em você... e continua andando livremente!! mas é mto estranho porque a função doCreatureSetNoMove(target, true) faz com que ele perca sua mobilidade, mesmo estando em follow, entende? @King Laker poderia testar e ver se o mesmo acontece ctg? se eu tiver tempo hj de noite vou refazer os mods pra não bugarem mais. vou refazer do 0 mesmo.
  10. é aquele efeito branco ali? kk local combat = createCombatObject() setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) function effectNoMove(target, storage, effect) if not isCreature(target) then return LUA_ERROR end if getPlayerStorageValue(target, storage) - os.time() > 0 then local pos = getPlayerPosition(target) doSendMagicEffect(pos, effect) addEvent(effectNoMove, 300, target, storage, effect) -- 300 é o delay end end local time,efeito = 10, 49 -- tempo e efeito local target = getCreatureTarget(cid) local storage,storage1 = 89785,845784 if getPlayerStorageValue(cid, storage) <= 0 then doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false end if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then doCreatureSetNoMove(target, true) setPlayerStorageValue(target, storage1, os.time()+time) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doCreatureSetNoMove(target, false) end, time*1000, target) doSendMagicEffect(getPlayerPosition(target), efeito) effectNoMove(target, storage1, efeito) return doCombat(cid, combat, var) end return true end
  11. tira essas 2 linhas setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
  12. Cara era pra funcionar, porque precisa estar de target, você colocou needtarget="1 na tag? @King Laker testa assim: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) function effectNoMove(target, storage, effect) if not isCreature(target) then return LUA_ERROR end if getPlayerStorageValue(target, storage) - os.time() > 0 then doSendMagicEffect(getPlayerPosition(target), effect) addEvent(effectNoMove, 300, target, storage, effect) -- 300 é o delay end end local time = 10 local target = getCreatureTarget(cid) local storage,storage1 = 89785,845784 if getPlayerStorageValue(cid, storage) <= 0 then doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false end if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then doCreatureSetNoMove(target, true) setPlayerStorageValue(target, storage1, os.time()+time) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doCreatureSetNoMove(target, false) end, time*1000, target) effectNoMove(target, storage1, 29) -- efect return doCombat(cid, combat, var) end return true end
  13. como assim? se eu vodkart estiver usando o follow no king é pra a spell cancelar? e não usar o stun? ou é pra usar o stun mesmo estando no follow/target?
  14. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) function effectNoMove(target, effect) if not isCreature(target) then return LUA_ERROR end doSendMagicEffect(getPlayerPosition(target), effect) end local time = 10 local target = getCreatureTarget(cid) local storage1 = 845784 if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then doCreatureSetNoMove(target, true) setPlayerStorageValue(target, storage1, os.time()+time) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doCreatureSetNoMove(target, false) end, time*1000, target) local t = 0 while t <= time*1000 do effectNoMove(target, 29) -- effect t = t + 300 end return doCombat(cid, combat, var) end return true end n esquece de mudar na tag do spells.xml o condown da spell
  15. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) function effectNoMove(target, effect) if not isCreature(target) then return LUA_ERROR end doSendMagicEffect(getPlayerPosition(target), effect) end local time = 10 local target = getCreatureTarget(cid) local storage,storage1 = 89785,845784 if getPlayerStorageValue(cid, storage) <= 0 then doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false end if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then doCreatureSetNoMove(target, true) setPlayerStorageValue(target, storage1, os.time()+time) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doCreatureSetNoMove(target, false) end, time*1000, target) local t = 0 while t <= time*1000 do effectNoMove(target, 29) -- effect t = t + 300 end return doCombat(cid, combat, var) end return true end
  16. posta o seu creaturescript.xml e uma foto da sua pasta mods pra mim ver que mods tem ai no seu servidor
  17. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 238) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) local time = 10 local target = getCreatureTarget(cid) local storage,storage1 = 89785,845784 if getPlayerStorageValue(cid, storage) <= 0 then doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false end if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then doCreatureSetNoMove(target, true) setPlayerStorageValue(target, storage1, os.time()+time) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doCreatureSetNoMove(target, false) end, time*1000, target) return doCombat(cid, combat, var) end return true end sobre o effect é só mudar, e a cd é na tag do spells.xml
  18. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 238) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local storage = 89785 if getPlayerStorageValue(cid, storage) <= 0 then doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false end if isPlayer(target) then local speed = getCreatureSpeed(target) doChangeSpeed(target, -speed) addEvent(function(target) if not isCreature(target) then return LUA_ERROR end doChangeSpeed(target, speed) end, 10000, target) return doCombat(cid, combat, var) end return true end
  19. é que tem source que é bugada msmo, eu tinha um baiak que dava a mesma coisa kkk function onEquip(cid, item, slot) if getPlayerStorageValue(cid, 120365) - os.time() <= 0 then doTransformItem(item.uid, 10502, 1) doPlayerSendTextMessage(cid, 22, 'Agora ganha 3x mais experiencia!') doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*0.2) setPlayerStorageValue(cid, 120365, os.time()+2) end return true end function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, 22, 'Experiencia extra cancelada.') doPlayerSetExperienceRate(cid, 1) return true end
  20. é só dar /reload mods
  21. acho que está sim, só testar!
  22. <?xml version="1.0" encoding="UTF-8"?> <mod name="Exame Chunin" enabled="yes" author="Demonbholder" forum="XTibia.com"> <config name="ArenaLib"><![CDATA[ dinheiro = 10000 storage = 40008 storage2 = 40007 playerpos = {x = 983, y = 893, z = 7} -- posicao da arena trofypos = {x=966, y=888, z=8} -- posicao da area apos a arena monpos = {x = 983, y = 889, z = 7} -- posicao onde o monstro sera criado fromPos,toPos = {x = 987, y = 887, z = 7},{x = 978, y = 894, z = 7} -- posio do canto superior direito, posio do canto inferior esquerdo da arena monsters = { [0] = 'kiba', [1] = 'neji', [2] = 'temari', [3] = 'shikamaru', [4] = 'sasuke', [5] = 'gaara' } function doRemoveCorpse(pos) for i = 0, 255 do pos.stackpos = i tile = getTileThingByPos(pos) if tile.uid > 0 and isCorpse(tile.uid) then doRemoveItem(tile.uid) end end end ]]></config> <creaturescript type="death" name="Arena" event="script"><![CDATA[ domodlib('ArenaLib') if isPlayer(deathList[1]) and isMonster(cid) then if getPlayerStorageValue(deathList[1], storage) >= 0 and getPlayerStorageValue(deathList[1], storage) < 6 then setPlayerStorageValue(deathList[1], storage, getPlayerStorageValue(deathList[1], storage) + 1) addEvent(doRemoveCorpse, 500, getCreaturePosition(cid)) setPlayerStorageValue(deathList[1], storage2, -1) end if getPlayerStorageValue(deathList[1], storage) == 6 then doTeleportThing(deathList[1], trofypos) setPlayerStorageValue(deathList[1],49501,1) end end return TRUE ]]></creaturescript> <creaturescript type="kill" name="ArenaK" event="script"><![CDATA[ domodlib('ArenaLib') if isMonster(cid) and isPlayer(target) then if getPlayerStorageValue(target, storage) >= 0 then setPlayerStorageValue(target, storage, -1) doTeleportThing(target, getTownTemplePosition(getPlayerTown(target))) setPlayerStorageValue(target, storage2, -1) doRemoveCreature(cid) addEvent(doRemoveCorpse, 500, getCreaturePosition(target)) end end return TRUE ]]></creaturescript> <creaturescript type="logout" name="ArenaL" event="script"><![CDATA[ domodlib('ArenaLib') if isInRange(getPlayerPosition(cid), fromPos, toPos) then return FALSE, doPlayerSendCancel(cid, "You can't logout during arena!") end return TRUE ]]></creaturescript> <movevent type="StepIn" actionid="40000" event="script"><![CDATA[ domodlib('ArenaLib') if monsters[getPlayerStorageValue(cid, storage)] then if getPlayerStorageValue(cid, storage2) == -1 then local mon = doCreateMonster(monsters[getPlayerStorageValue(cid, storage)], monpos) setPlayerStorageValue(cid, storage2, 1) registerCreatureEvent(mon, "Arena") registerCreatureEvent(mon, "ArenaK") end end return TRUE ]]></movevent> <movevent type="StepIn" actionid="40001" event="script"><![CDATA[ domodlib('ArenaLib') for _, pid in ipairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), fromPos, toPos) then doPlayerSendCancel(cid, "Alguem esta fazendo o exame Chunin.") return true end end if getPlayerMoney(cid) < dinheiro then return TRUE, doTeleportThing(cid, fromPosition), doPlayerSendCancel(cid, "Tens que ter 1g para fazer o exame chunin, sera para seus proprios medicamentos.") end doPlayerRemoveMoney(cid, dinheiro) setPlayerStorageValue(cid, storage, 0) doPlayerSendTextMessage(cid, 4, "Exame Chunin!") return TRUE, doTeleportThing(cid, playerpos) ]]></movevent> </mod> -------------- Na real se eu tiver um tempo eu refaço esse código do demonbholder, a gente fez em 2010, eu tbm tinha feito uma versão antes do drakylukas e do demon mas eu perdi ela kk
  23. nao nao vou chegar em cs e arrumar a função
  24. kkk me faz um ttest? no items.xml esta assim <item id="13308" article="a" name="Life Boost"> coloca <item id="13308" article="a" name="life boost"> depois me avisa se deu certo
  25. ue mas eu testei com vários itens, exemplo: demon horn, scarab coin, bolt, power bolt, assassin star, demon shield, etc... testei com vários itens. Qual item em questão você está tentando colocar? como está o nome desse life boost no items.xml?

Informação Importante

Confirmação de Termo