Por xbowaxx, 02 de nov. de 2005 em Actions e Talkactions
info
Registrado: 31/12/69
Posts: 0
Reputação: 0
em actions.xml
ponha
<action itemid="2969" script="goldvsrune.lua" />
Delete o
<action itemid="2969" script="gold.lua" />
Crie um arquivo chamado goldvsrune.lua e add:
--------Buying rune action and trade gold-------By Rappa Carnaúba----function onUse(cid, item, frompos, item2, topos) if item.itemid == 2969 and item.type == 100 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,2973,1) doPlayerSendTextMessage(cid,22,"$$ !") elseif item.itemid == 2969 and item.type < 100 then doPlayerSendTextMessage(cid,22,".") end if item.itemid == 2969 and item.type == 50 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,3136,10) doPlayerSendTextMessage(cid,22,"hmm !") elseif item.itemid == 2969 and item.type < 50 then doPlayerSendTextMessage(cid,22,".") end if item.itemid == 2969 and item.type == 60 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,3129,10) doPlayerSendTextMessage(cid,22,"gfb !") elseif item.itemid == 2969 and item.type < 60 then doPlayerSendTextMessage(cid,22,".") end if item.itemid == 2969 and item.type == 70 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,3093,5) doPlayerSendTextMessage(cid,22,"sd !") elseif item.itemid == 2969 and item.type < 70 then doPlayerSendTextMessage(cid,22,".") end if item.itemid == 2969 and item.type == 55 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,2973,10) doPlayerSendTextMessage(cid,22,"uh !") elseif item.itemid == 2969 and item.type < 55 then doPlayerSendTextMessage(cid,22,".") end if item.itemid == 2969 and item.type == 65 then doRemoveItem(item.uid,item.type) doPlayerAddItem(cid,3138,10) doPlayerSendTextMessage(cid,22,"exp !") elseif item.itemid == 2969 and item.type < 65 then doPlayerSendTextMessage(cid,22,".") end end
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2969 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2973,1)
doPlayerSendTextMessage(cid,22,"$$ !")
elseif item.itemid == 2969 and item.type < 100 then
doPlayerSendTextMessage(cid,22,".")
end
if item.itemid == 2969 and item.type == 50 then
doPlayerAddItem(cid,3136,10)
doPlayerSendTextMessage(cid,22,"hmm !")
elseif item.itemid == 2969 and item.type < 50 then
if item.itemid == 2969 and item.type == 60 then
doPlayerAddItem(cid,3129,10)
doPlayerSendTextMessage(cid,22,"gfb !")
elseif item.itemid == 2969 and item.type < 60 then
if item.itemid == 2969 and item.type == 70 then
doPlayerAddItem(cid,3093,5)
doPlayerSendTextMessage(cid,22,"sd !")
elseif item.itemid == 2969 and item.type < 70 then
if item.itemid == 2969 and item.type == 55 then
doPlayerAddItem(cid,2973,10)
doPlayerSendTextMessage(cid,22,"uh !")
elseif item.itemid == 2969 and item.type < 55 then
if item.itemid == 2969 and item.type == 65 then
doPlayerAddItem(cid,3138,10)
doPlayerSendTextMessage(cid,22,"exp !")
elseif item.itemid == 2969 and item.type < 65 then
Preço das runas:HMM 50 gp explosion 65 gp sd 70 gp uh 55 gp gfb 60 gp
HMM 50 gp
explosion 65 gp
sd 70 gp
uh 55 gp
gfb 60 gp
Basta dar use no din din q vira a runa happy.gif
Muito util essa action..pois quem ta longe do npc..exemplo demon...so da use no din din q vira a runa..xP
creditos: Rappa Carnaúba
info
Registrado: 31/12/69
Posts: 0
Reputação: 0
em actions.xml
ponha
Delete o
Crie um arquivo chamado goldvsrune.lua e add:
Basta dar use no din din q vira a runa happy.gif
Muito util essa action..pois quem ta longe do npc..exemplo demon...so da use no din din q vira a runa..xP
creditos: Rappa Carnaúba