DE

[ Resolvido ][Pedido] Talkaction !letter

Por Delaks, 15 de abr. de 2012 em Scripts

simples pakasssssssssss
5
890
DelaksD
15 de abril de 2012 às 18:07

Muito simples.

 

O player fala !letter e vai de GRAÇA uma letter para ele.

 

informaçoes:servidor 8.6

ZmovirZ
15 de abril de 2012 às 18:15
function onSay(cid, words, param)

 

local config = {

item = iddoitem,

quant = quantidade

}

 

doPlayerAddItem(cid, config.item,config.quant)

end

 

-------

 

Com exhausted

function onSay(cid, words, param)

 

local config = {

item = iddoitem,

quant = quantidade,

waittime = 30, --Default (30 seconds)

storage = 5560

}

 

if exhaustion.get(cid, config.storage) == FALSE then

exhaustion.set(cid, config.storage, config.waittime)

doPlayerAddItem(cid, config.item,config.quant)

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, config.storage) .. " seconds.")

return TRUE

end

end

------

em talkactions.xml

 

<talkaction words="!buyletter;!letter" script="nomedoscript.lua"/>

Editado Abril 15 por Zmovir

DelaksD
15 de abril de 2012 às 18:23

Rapido em aushasuas amanha rep+!!!!!!!!!!!!!!

VildenV
15 de abril de 2012 às 22:39

Dúvida sanada, tópico reportado.

 

Fechar.

LordfireL
15 de abril de 2012 às 23:21

Tópico resolvido.