Postado Julho 23, 2013 11 anos É Só Mudar o ID Da Runa Amigo Contato : under12451 (Skype) Meus Tutoriais O Que é DDoS ? como se Proteger Por Tony Criando Servidor Poketibia Sistemas de Vips com [VIP] No Nome Cyclops - Mistrock - 100% AFK Como Editar um NPC 8.6 [ Itens e Preços] Editando Swords 8.6 Como Editar um NPC 8.6 [VENDA]
Postado Julho 23, 2013 11 anos Você crio o Arquivo com "teleport rune" ?. cara amanha te Explico Direitinho tenho que Sair com minha Namorada até! Contato : under12451 (Skype) Meus Tutoriais O Que é DDoS ? como se Proteger Por Tony Criando Servidor Poketibia Sistemas de Vips com [VIP] No Nome Cyclops - Mistrock - 100% AFK Como Editar um NPC 8.6 [ Itens e Preços] Editando Swords 8.6 Como Editar um NPC 8.6 [VENDA]
Postado Julho 23, 2013 11 anos Vou fazer 1 sei la se você vai gostar vá ate sua "actions.xml" coloque esta tag <action itemid="8300" event="script" value="itemTP1.lua"/> crie em "actions/scripts/itemTP1.lua" dentro coloque function onUse(cid, item, frompos, item2, topos) local tpId = 1387 local p = getCreaturePosition(cid) local x = { [0] = {x=p.x, y=p.y-1, z=p.z}, [1] = {x=p.x+1, y=p.y, z=p.z}, [2] = {x=p.x, y=p.y+1, z=p.z}, [3] = {x=p.x-1, y=p.y, z=p.z} } local tps = { pos = x[getCreatureLookDirection(cid)], toPos = {x=501, y=807, z=7}, <MUDE AQUI A POSITION> time = 15, -- remove teleport exausted = 30, -- in seconds storage1 = 18370, -- dont edit storage2 = 97854 -- dont edit } function removeTp() local t = getTileItemById(tps.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tps.pos, 65) end end function doTPSecond(cid,delay) local seconds = math.floor((getPlayerStorageValue(cid, tps.storage1) - os.time())) local msg = ''.. (seconds < 0 and 0 or seconds) ..'' doSendAnimatedText(tps.pos, msg, math.random(1,140)) if delay ~= 1 then addEvent(doTPSecond, 1000,cid, delay -1) end end if getCreatureCondition(cid, CONDITION_INFIGHT) then return true,doPlayerSendTextMessage(cid,22,"Sorry,you cannot use this item with battle.") elseif (getPlayerStorageValue(cid, tps.storage2) >= os.time()) then return true,doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, tps.storage2) - os.time() .. " seconds to use this item again.") end doCreateTeleport(tpId, tps.toPos, tps.pos) setPlayerStorageValue(cid, tps.storage1, os.time()+tps.time) doTPSecond(cid, tps.time) addEvent(removeTp, tps.time*1000) setPlayerStorageValue(cid,tps.storage2,os.time()+tps.exausted) return false end Editado Julho 23, 2013 11 anos por Raell Deads (veja o histórico de edições) raell, me come
Postado Julho 23, 2013 11 anos Autor Po man teste aqui só que nem foi.. Fiz 1 aqui ve oque pode tar errado : funciona todas as funções só que n me teleportou para essa posição que botei. function onUse(cid, item, frompos, item2, topos) if getPlayerSex(cid) == 78 or getPlayerSex(cid) == 78 then if getPlayerExhaust(cid,1237,120) == -1 then if getTilePzInfo(topos) == 0 then if getPlayerMana(cid) >= 400 then doPlayerAddMana(cid,-400) doSendMagicEffect(frompos,85) doPlayerAddHealth(cid,2000) doTeleportThing(cid,{x=676, y=225, z=7}) doSendMagicEffect(topos,85) doSendAnimatedText(getPlayerPosition(cid), "!!!", 210) else doPlayerSendTextMessage(cid,22,"Você Não Pode Usar Agora!.") end end end end end Editado Julho 23, 2013 11 anos por Desnecessario (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.