Ir para conteúdo

Comprando Rune Por Action


Visitante xbowaxx

Posts Recomendados

Visitante xbowaxx

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

Preço das runas:

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

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...