Ir para conteúdo

jhon992

Conde
  • Total de itens

    631
  • Registro em

  • Última visita

  • Dias Ganhos

    12

Tudo que jhon992 postou

  1. Falta! sajia Usa assim: <?xml version="1.0" encoding="UTF-8"?> <talkactions> <!-- Gods --> <talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/> <talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/> <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/> <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/> <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/> <talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/> <talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/> <talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/> <!-- Community Managers --> <talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/> <talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/> <talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/> <talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/> <talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/> <talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/> <talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/> <talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/> <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/> <talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/> <talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/> <talkaction access="4" words="/z" event="script" value="magiceffect.lua"/> <talkaction access="4" words="/x" event="script" value="animationeffect.lua"/> <talkaction access="4" words="/y" event="script" value="animatedtext.lua"/> <talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/> <talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/> <!-- Gamemasters --> <talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/> <talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/> <talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/> <talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/> <talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/> <talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/> <talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/> <talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/> <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/> <talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/> <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/> <talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/> <talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/> <talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/> <talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/> <talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/> <talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/> <talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/> <!-- Senior Tutors --> <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/> <talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/> <talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/> <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/> <!-- Tutors --> <talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/> <talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/> <!-- Players --> <talkaction words="!frags" event="script" value="frags.lua"/> <talkaction words="!online" event="script" value="online.lua"/> <talkaction words="!uptime" event="script" value="uptime.lua"/> <talkaction words="!pvp" event="script" value="pvp.lua"/> <talkaction words="!q" event="script" value="money.lua"/> <talkaction words="!serverinfo" event="script" value="serverinfo.lua"/> <talkaction words="/commands" event="script" value="commands.lua"/> <!-- Houses --> <talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/> <talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/> <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/> <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/> <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/> <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/> <talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/> <!-- Guilds --> <talkaction words="!createguild" event="function" value="guildCreate"/> <talkaction words="!joinguild" event="function" value="guildJoin"/> <!-- (Deprecated) Redirect old '/' to '!' --> <talkaction words="/online" hide="yes" event="script" value="online.lua"/> <talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/> <talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/> <talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/> <talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/> <!-- Custom systems --> <talkaction words="!notice" event="script" value="notice.lua"/> <talkaction words="!rank" script="ranks.lua"/> <talkaction words="!service" event="script" value="Fragas.lua"/> <talkaction words="!jail" script="Cadeia.lua"/> <talkaction words="!unjail" script="Cadeia.lua"/> <talkaction words="/jail" script="Cadeia.lua"/> <talkaction words="/unjail" script="Cadeia.lua"/> <talkaction words="!necromancer" script="demonic.lua"/> <talkaction words="!nightmare" script="love.lua"/> <talkaction filter="word" words="/guild" script="guildcast.lua"/> <talkaction words="!afk" event="script" value="afk.lua"/> <!-- custon By Revange --> <!-- pollsystem talkactions --> <talkaction words="!createpoll" event="script" value="PollSystem.lua"/> <talkaction words="!activatepoll" event="script" value="PollSystem.lua"/> <talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/> <talkaction words="!seepoll" event="script" value="PollSystem.lua"/> <talkaction words="!seeresults" event="script" value="PollSystem.lua"/> <talkaction words="!remvotes" event="script" value="PollSystem.lua"/> <talkaction words="!rempoll" event="script" value="PollSystem.lua"/> <talkaction words="!votepoll" event="script" value="PollSystem.lua"/> <talkaction words="love" script="love.lua"/> <talkaction words="!attackguild" event="script" value="attackguild.lua"/> <talkaction words="!vipdays" event="script" value="vip/vipdays.lua" /> <talkaction log="yes" words="/vip" access="5" event="script" value="vip/addvipp.lua" /> <talkaction log="yes" words="!balance" script="Bank/balance.lua" /> <talkaction log="yes" words="!deposit" script="Bank/deposit.lua" /> <talkaction log="yes" words="!withdraw" script="Bank/withdraw.lua" /> <talkaction log="yes" words="!depositall" script="Bank/deposit_all.lua" /> <talkaction log="yes" words="!withdrawall" script="Bank/withdraw_all.lua" /> <talkaction words="!bless" script="bless.lua" /> <!-- Guild War --> <talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/> <talkaction words="/balance" channel="0" event="script" value="balance.lua" desc="(Guild channel command) Balance management."/> </talkactions>
  2. tem um "end" a mais ou a menos no teu talkactions.xml! Se não der jeito de arruma, posta o arquivo talkactions.xml que nois arruma.
  3. Vai em, data/actions/scripts, duplica um arquivo e nomeia para "baufirst" sem as aspas e nele cole: function onUse(cid, item) local itemkina = {1234, 4567, 6789, 1011} -- troca pelos id's dos itens de kina local itemsorcer = {1234, 4567, 6789, 1011} -- troca pelos id's dos itens de sorcerer local itempaly = {1234, 4567, 6789, 1011}-- troca pelos id's dos itens de paladin local itemdruid = {1234, 4567, 6789, 1011} -- troca pelos id's dos itens de druid if (getPlayerStorageValue(cid, 103029) <= 0) then if (getPlayerVocation(cid) == 4) then for i=1, #itemkina do doPlayerAddItem(cid, itemkina[i], 1) end setPlayerStorageValue(cid, 103029, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Pababens, voce concluiu a quest!") end if (getPlayerVocation(cid) == 1) then for i=1, #itemsorcer do doPlayerAddItem(cid, itemsorcer[i], 1) end setPlayerStorageValue(cid, 103029, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Pababens, voce concluiu a quest!") end if (getPlayerVocation(cid) == 3) then for i=1, #itempaly do doPlayerAddItem(cid, itempaly[i], 1) end setPlayerStorageValue(cid, 103029, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Pababens, voce concluiu a quest!") end if (getPlayerVocation(cid) == 2) then for i=1, #itemdruid do doPlayerAddItem(cid, itemdruid[i], 1) end setPlayerStorageValue(cid, 103029, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Pababens, voce concluiu a quest!") end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você ja fez esta quest.") end return TRUE end Agora abra data/actions/actions.xml e cole a tag: <action actionid="4568" script="baufirst.lua"/> Pronto, não esquece de configurar os itens das vocações e de adicionar a actionid 4568 no seu baú!
  4. Vai em data/globalevents/scripts, duplica um arquivo e renomeia para "effectPilar" sem as aspas e nele cole: function onThink(interval, lastExecution) pos1 = {x=2495, y=2468, z=7} -- posição do pilar1 pos2 = {x=2501, y=2468, z=7} -- posição do pilar2 addEvent(efeito1, 1000, pos1, pos2) addEvent(efeito2, 1500, pos2) return TRUE end function efeito1(pos1, pos2) doSendAnimatedText(pos1, 'Exori Mort', 140) -- 140 é a cor, voce pode escolher uma cor mais adequada logando seu ot e usando /y doSendDistanceShoot(pos1, pos2, 31) end function efeito2(pos2) doSendAnimatedText(pos2, 'Arggg!', 140) -- pode mudar o texto a vontada, maximo 9 caracteres doSendMagicEffect(pos2, 17) -- 17 é o magic effect que ira soltar na posição do pilar2, para escolher outro use /z no seu ot e escolha um diferente end Agora em data/glovalevents/globalevents.xml, abra-o e cole a tag: <globalevent name="effectPilar" interval="10" event="script" value="effectPilar.lua"/> O interval acima é em segundos, ou seja, esse script vai funcionar a cada 10 segundos, mais dae tu configura como quiser o tempo. Não esquece tambem de mudar as posições dos pilar no script!
  5. Era só te perguntado pra min la no primeiro topico function onUse(cid, item) local pos1 = {x=90, y=111, z=8} -- posição da pedra local pos2 = {x=91, y=111, z=8} -- posição da pedra local pos3 = {x=95, y=111, z=8} -- posição da pedra local pos4 = {x=96, y=111, z=8} -- posição da pedra local id1 = 8300 -- id da pedra local id2 = 8298 -- id da pedra local id3 = 8306 -- id da pedra local id4 = 8304 -- id da pedra if (getGlobalStorageValue(102089) <= 0) then if getItemStack(pos1, id1) and getItemStack(pos2, id2) and getItemStack(pos3, id3) and getItemStack(pos4, id4) then doRemoveItem(getItemStack(pos1, id1).uid, 1) doRemoveItem(getItemStack(pos2, id2).uid, 1) doRemoveItem(getItemStack(pos3, id3).uid, 1) doRemoveItem(getItemStack(pos4, id4).uid, 1) else doPlayerSendCancel(cid, "Reporte ao GM, alguma preda esta fora do lugar.") end setGlobalStorageValue(102089, 1) return TRUE else doCreateItem(id1,1,pos1) doCreateItem(id2,1,pos2) doCreateItem(id3,1,pos3) doCreateItem(id4,1,pos4) setGlobalStorageValue(102089, 0) end return TRUE end function getItemStack(pos, iid) for i = 1, 255 do posa = getThingFromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=i}) if posa.itemid == iid then return posa end end return nil end
  6. function onLogin(cid) local cidadefree = {x=32360, y=31782, z=7} -- configura a posição onde o player vai teleportar quando acabar a vip if (getPlayerStorageValue(cid,13540) > 0) then setPlayerStorageValue(cid,13545,1) end if (getPlayerStorageValue(cid,13500) > 0 and getPlayerStorageValue(cid,13545) == 1) then doTeleportThing(cid, cidadefree) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!") setPlayerStorageValue(cid,13545,0) end return TRUE end
  7. Vai em data/actions/script, duplica um arquivo e renomeia para "alavancaped" sem os aspas e nele cole: function onUse(cid, item) local pos1 = {x=90, y=111, z=8} -- posição da pedra local pos2 = {x=91, y=111, z=8} -- posição da pedra local pos3 = {x=95, y=111, z=8} -- posição da pedra local pos4 = {x=96, y=111, z=8} -- posição da pedra local id1 = 8300 -- id da pedra local id2 = 8298 -- id da pedra local id3 = 8306 -- id da pedra local id4 = 8304 -- id da pedra if getItemStack(pos1, id1) and getItemStack(pos2, id2) and getItemStack(pos3, id3) and getItemStack(pos4, id4) then doRemoveItem(getItemStack(pos1, id1).uid, 1) doRemoveItem(getItemStack(pos2, id2).uid, 1) doRemoveItem(getItemStack(pos3, id3).uid, 1) doRemoveItem(getItemStack(pos4, id4).uid, 1) else doPlayerSendCancel(cid, "Reporte ao GM, alguma preda esta fora do lugar.") end return TRUE end function getItemStack(pos, iid) for i = 1, 255 do posa = getThingFromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=i}) if posa.itemid == iid then return posa end end return nil end Agora em data/actions/actions.xml, abra-o e cole a tag: <action actionid="4567" script="alavancaped.lua"/> Não esquece de configurar as posições das pedras e seus ids, e tambem n esquece de por o actionid 4567 na alavanca.
  8. Ta aew: http://www.xtibia.com/forum/topic/161056-exp-por-hit/
  9. Vai em data/actions/scripts/liquids e abre o arquivo potions.lua, nele procure pela linha: local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) E substitua por: local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (500)) Obs: O normal é 900, diminua até tu achar que esta bom!
  10. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 66000) setConditionFormula(condition, 1.7, -36, 1.7, -36) setCombatCondition(combat, condition) function onCastSpell(cid, var) if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doPlayerSendCancel(cid, "Desculpe,Só jogadores vips usam está magia.") doSendMagicEffect(cid,13) else return doCombat(cid, combat, var) end return TRUE end Deu, nas proximas magias tu jah vai saber onde mudar o effect!
  11. Erra pra ter me falado isso antes de eu fazer o script, mais vamos arrumar. Não esquece que ali no <action itemid="5810" script="dado.lua"/> é o id do Card Rat no itemid, então troca! Agora troca esse script de sorteio que eu fiz por esse: function onUse(cid, item, fromPosition, itemEx, toPosition) local value = math.random(1, 10) local effect = 25 -- muda o effect if (getItemName(item.uid) == "Card Rat") then doSendMagicEffect(getCreaturePosition(cid), effect) doCreatureSay(cid, getCreatureName(cid) .. ' sorteou o número ' .. value .. '.', TALKTYPE_ORANGE_1) end return TRUE end
  12. data/actions/scripts, duplica um arquivo e renomeia para "sorteio" sem aspas e cole: function onUse(cid, item, fromPosition, itemEx, toPosition) local value = math.random(1, 10) local effect = 25 -- muda o effect doSendMagicEffect(getCreaturePosition(cid), effect) doCreatureSay(cid, getCreatureName(cid) .. ' sorteou o número ' .. value .. '.', TALKTYPE_ORANGE_1) return TRUE end Agora em data/actions/actions.xml cole a tag: <action itemid="5810" script="dado.lua"/> Não esqueça de mudar o effect e o id do item!
  13. Era pra funcionar para o lider tbm, n sei pq nao esta funcionando mais tenta isso, troca essa parte do código: if getPlayerGuildName(cid) == getPlayerGuildName(target) then por essa: if getPlayerGuildId(cid) == getPlayerGuildId(target) then
  14. vai em data/actions/actions.xml e poem a tag: <action actionid="2010" event="script" value="dooreset.lua"/> Agora em data/actions/scripts, duplica um arquivo e nomeia pra "dooreset" sem as aspas e cole: function onUse(cid, item, fromPosition, itemEx, toPosition) local resets = getPlayerStorageValue(cid,2310) local resetsForOpen = 5 if resets >= resetsForOpen then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa ter "..resetsForOpen.." resets para passar.") end return true end Por último poem o actionid na porta do seu ot pelo mapa editor! Créditos pro @Kydrai.
  15. pode ser junto com esses aqui: registerCreatureEvent(cid, "repKill") registerCreatureEvent(cid, "Frags") registerCreatureEvent(cid, "Look") registerCreatureEvent(cid, "LevelBroadcast") registerCreatureEvent(cid, "BountyHunter") registerCreatureEvent(cid, "pvparena") registerCreatureEvent(cid, "castelo1") registerCreatureEvent(cid, "castelo2") registerCreatureEvent(cid, "castelo3") registerCreatureEvent(cid, "castelo4") registerCreatureEvent(cid, "pxparena") registerCreatureEvent(cid, "repLook") registerCreatureEvent(cid, "repDeath") registerCreatureEvent(cid, "Reward")
  16. Vai em data/creaturescripts/scripts, duplica um arquivo e renomeia para "hitguild" sem as aspas, nele cole: function onCombat(cid, target) if getPlayerGuildName(cid) == getPlayerGuildName(target) then doPlayerSendTextMessage(cid, 27, "Voce nao pode atacar player da mesma guild.") return FALSE end return TRUE end Agora, data/creaturescripts/creaturescripts.xml, abra-o e cole a tag: <event type="combat" name="HitGuild" event="script" value="hitguild.lua"/> Por último vai em data/creaturescripts/scripts e abra o arquivo login.lua, e cole a tag: registerCreatureEvent(cid, "HitGuild")
  17. Vlw pela dica, @JeDiAN + esses quotes são contra min, ficava dando que não era possivel pq a quantidade de quotes abertos era diferente das de fechado dae dechei assim msm. sahdua Vlw aew.
  18. vai em data/talkactions/talkaction.xml e procura por /b, quando achar é só mudar o access para ="1"
  19. Vai em data/npc/scripts, duplica um arquivo nomeio para "teleport" sem as aspas e cole: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local pos = {x=966, y=1029, z=7} local efectTel = 28 -- efeito do teleport function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'yes') and getPlayerLevel(cid) == 20) then doTeleportThing(cid, pos) doSendMagicEffect(pos, efectTel) return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Agora, data/npc, duplica um arquivo desses e nomei-a para "nome do npc", abra-o e cole: <?xml version="1.0" encoding="UTF-8"?> <npc name="nome do npc" script="teleport.lua" walkinterval="2000" floorchange="0"> <health now="999999" max="999999"/> <look type="300" corpse="2212"/> <parameters> <parameter key="message_greet" value="Você quer ser teleportado?."/> </parameters> </npc> Em vermelho ta as partes que vc deve mudar!
  20. O do @xotserv ta correto. só vai em data/talkaction/script, suplica um arquivo e nomeia para "broadcast" sem as aspas e nele cole: local config= { id = 2421, -- id do item que precisa count = 1, -- qntos items precisa Remove = false -- true para remover o item depois de usar e false para não remover } function onSay(cid, words, param) if getPlayerItemCount(cid, config.id) < config.count then return doPlayerSendTextMessage(cid, 27, "Você precisa de "..config.count.." "..getItemNameById(config.id).." para usar este comando.") end if not param or param == "" then return doPlayerSendTextMessage(cid, 27, "Invalid param.") end doBroadcastMessage(getCreatureName(cid).." says: "..param) if config.Remove then doPlayerRemoveItem(cid, config.id, config.count) end return true end Agora abre, data/talkactions/talkactions.xml e cole a tag: <talkaction words="!broadcast" event="script" value="broadcast.lua"/> Deu, só n esquece de mudar o id do item que precisa pra usar no broadcast.lua! Obs: Créditos pro @xotservx.
  21. jhon992

    Vip Brilhante

    data/creaturescripts/scripts, duplica um arquivo, nomeia para "brilhovip", abre e cole: function onLogin(cid) effectVip(cid) return TRUE end function effectVip(cid) local storage = 1234 -- storage vip local efeito = 3 -- numero do efeito local delay = 5 -- tempo em segundos if isCreature(cid) == TRUE then if (getPlayerStorageValue(cid, storage) > 0) then doSendMagicEffect(getCreaturePosition(cid), efeito) addEvent(effectVip, delay*1000, cid) end end return TRUE end Agora em data/creaturescripts/creaturescripts.xml abra-o e cole a tag: <event type="login" name="BrilhoVip" event="script" value="brilhovip.lua"/> Pronto, não esquece de configurar o storage vip, no brilhovip.lua!
  22. jhon992

    Erros Ajuda

    na magia, tenta isso: local scom1 = createCombatObject() local scom2 = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE) setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 3.1, -360, 4.6, -600) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 0) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE) setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 3.2, -360, 4.9, -600) arr1 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0} } arr2 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) setCombatArea(scom1, area1) setCombatArea(scom2, area2) function onTargetTile(cid, pos) doCombat(cid,combat1,positionToVariant(pos)) end function onTargetTile2(cid, pos) doCombat(cid,combat2,positionToVariant(pos)) end setCombatCallback(scom1, CALLBACK_PARAM_TARGETTILE, "onTargetTile") setCombatCallback(scom2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2") local function onCastSpell1(parameters) if (isCreature(cid) == TRUE) then doCombat(parameters.cid, scom1, parameters.var) end end local function onCastSpell2(parameters) if (isCreature(cid) == TRUE) then doCombat(parameters.cid, scom2, parameters.var) end end function onCastSpell(cid, var) local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 200, parameters) return TRUE end
  23. jhon992

    Ajuda Fast

    Pra fazer com efeito de sd, onde tem o numero 55 no script é sóh mudar por 17. Ta aew uma lista dos efeitos que quiser alterar novamente: http://www.xtibia.com/forum/topic/129140-lista-de-efeitos-854-e-como-usa-los/ E o erro não sei oque é, tenta almentar um pouco o interval e vê se continua.
  24. http://www.xtibia.com/forum/topic/174645-for-intable/
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...