1579091 109 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 1- Ao pisar no tile receber um item.. 2- Ao atingir level 55, ser teleportado automaticamente para o templo. Rapidex! Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/ Compartilhar em outros sites More sharing options...
fodim 7 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 (editado) Bom eu fiz so q nao testei o do tile tenta ae tileitem.lua: function onStepIn(cid, item, position, fromPosition) doPlayerAddItem(cid,id,quantidade) end movements.xml <movevent type="StepIn" actionid="19456" event="script" value="itemtile.lua"/> edite conforme seu server Editado Janeiro 3, 2013 por Fodim Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429127 Compartilhar em outros sites More sharing options...
Kyoshi 16 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 (editado) function onAdvance(cid, oldLevel, newLevel)local tempo = 15 -- Tempo em segundos local level = 55 -- Level if newLevel == level then addEvent(doTeleportThing, tempo*1000, cid, getTownTemplePosition(getPlayerTown(cid)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você atingiu o level "..newLevel..". Você será mandado para o templo em "..tempo.." segundos.") end return true end Tempo = Tempo em segundos para o player ser teleportado para o templo. Créditos: LuckOake Editado Janeiro 3, 2013 por Kyoshi Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429128 Compartilhar em outros sites More sharing options...
1579091 109 Postado Janeiro 3, 2013 Autor Share Postado Janeiro 3, 2013 (editado) Kyoshi o seu bugo (a formatação aki no forum) Editado Janeiro 3, 2013 por GuizitoG Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429129 Compartilhar em outros sites More sharing options...
fodim 7 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 Kyoshi, o code nao tem suporte de cor Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429130 Compartilhar em outros sites More sharing options...
Kyoshi 16 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 Mas eu não tinha posto cores e mesmo assim bugou, deixei em quote mesmo. Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429132 Compartilhar em outros sites More sharing options...
Skymagnum 234 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 (editado) function onAdvance(cid, skill, oldLevel, newLevel) local toPos = {x = x, y = y, z = z} if skill == 8 then if newLevel == 55 then if getPlayerStorageValue(cid, 367221) < 1 then addEvent(doTeleportThing, 2 * 1000, cid, toPos) doPlayerSendTextMessage(cid, 27, "You advanced to level 55 and now has been teleported.") setPlayerStorageValue(cid, 367221, 1) end end end return true end tag: <event type="advance" name="advanceLev" event="script" value="nome_do_script.lua"/> login.lua registerCreatureEvent(cid, "advanceLev") function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local itemId, quant = 2160, 10 if isPlayer(cid) then if getPlayerStorageValue(cid, 327116) < 0 then doPlayerAddItem(cid, itemId, quant) doPlayerSendTextMessage(cid, 27, "You win " .. quant .. "x " .. getItemNameById(itemId) .. ".") setPlayerStorageValue(cid, 327116, 1) end end return true end <movevent type="StepIn" actionid="X" event="script" value="nome_do_script.lua"/> Editado Janeiro 3, 2013 por Skymagnum Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429145 Compartilhar em outros sites More sharing options...
1579091 109 Postado Janeiro 3, 2013 Autor Share Postado Janeiro 3, 2013 sky, passa as tags... e poe pra teleportar por posição (no primeiro), porque n eh exatamente no templo que quero. Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429158 Compartilhar em outros sites More sharing options...
Skymagnum 234 Postado Janeiro 3, 2013 Share Postado Janeiro 3, 2013 Pronto. AFF BUGO TODA IDENTAÇÃO Link para o comentário https://xtibia.com/forum/topic/203176-2-scriptes-hiper-faceis/#findComment-1429160 Compartilhar em outros sites More sharing options...
Posts Recomendados