ST

[ACTION] Item que cura HP or MANA

Por Sttorm, 28 de fev. de 2017 em Actions e Talkactions

1
1.6k
SttormS
28 de fevereiro de 2017 às 00:31

Script

function onUse(cid, item, fromPosition, itemEx, toPosition)local waittime = 3.0 -- Tempo de exhaustionlocal storage = 9999 -- storagelocal pid = getCreaturePosition(cid)local cura = 2000    -- qnt hp/mana vai curar        if exhaustion.check(cid, storage) then       doPlayerSendCancel(cid, " Exausted ... " )       else       doCreatureAddMana(cid, cura) -------- LEIA : ESTA SCRIPT ESTA CONFIGURADA PARA MANA , SE QUISER QUE SEJA HP BASTA MUDAR A PALAVRA " Mana " PARA A PALAVRA " Health "        doPlayerRemoveItem(cid, thing.uid, 1)       exhaustion.set(cid, storage, waittime )       doSendAnimatedText(pid, "+"..cura.."", 65)       end       return trueend       

XML

	<action itemid="13468" event="script" value="ramen.lua"/>