Por xbowaxx, 03 de nov. de 2005 em Actions e Talkactions
info
Registrado: 31/12/69
Posts: 0
Reputação: 0
Esse action faz com q quando vc usa a green spellwand, ela vira numa runa de teleport, jah tah tudo ajustado, a runa de teleport vai da pra player e eh soh 1 vez
actions.xml:
<action itemid="3010" script="gwand.lua" allowfaruse="1"/><action itemid="3131" script="trune.lua" allowfaruse="1"/>
<action itemid="3131" script="trune.lua" allowfaruse="1"/>
gwand.lua:
function onUse(cid, item, frompos, item2, topos)doPlayerAddItem(cid,3131,1) doSendMagicEffect(topos,14) doRemoveItem(item.uid,1) return 1 end
doPlayerAddItem(cid,3131,1)
doSendMagicEffect(topos,14)
doRemoveItem(item.uid,1)
return 1
end
trune.lua:
function onUse(cid, item, frompos, item2, topos)if getPlayerAccess(cid) == 0 then doSendMagicEffect(frompos,10) doTeleportThing(cid,topos) doSendMagicEffect(topos,10) doRemoveItem(item.uid,1) end if getPlayerAccess(cid) == 2 then doPlayerSendTextMessage(cid,22,"Noobs cant use this rune.") end return 1 end
if getPlayerAccess(cid) == 0 then
doSendMagicEffect(frompos,10)
doTeleportThing(cid,topos)
doSendMagicEffect(topos,10)
if getPlayerAccess(cid) == 2 then
doPlayerSendTextMessage(cid,22,"Noobs cant use this rune.")
Editado Junho 28 por JV Chequer
info
Registrado: 31/12/69
Posts: 0
Reputação: 0
Esse action faz com q quando vc usa a green spellwand, ela vira numa runa de teleport, jah tah tudo ajustado, a runa de teleport vai da pra player e eh soh 1 vez
actions.xml:
gwand.lua:
trune.lua:
Editado Junho 28 por JV Chequer