TI
action

[Action] Recarregar Stamina

Por tibiaa4e, 04 de mar. de 2010 em Actions e Talkactions

script
3
3.3k
tibiaa4eT
04 de março de 2010 às 02:42

Outro script que achei nos foruns internacionais

 

Adicione o arquivo

 

stamina.lua

function onUse(cid, item, fromPosition, itemEx, toPosition)
local cfg = {}
cfg.refuel = 42 * 60 * 1000
if(getPlayerStamina(cid) >= cfg.refuel) then
	doPlayerSendCancel(cid, "Your stamina is already full.")
elseif(not isPremium(cid)) then
	doPlayerSendCancel(cid, "You must have a premium account.")
else
	doPlayerSetStamina(cid, cfg.refuel)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
	doRemoveItem(item.uid)
end
return true
end

 

E em actions.xml

<action itemid="ID" script="stamina.lua"/>

 

Escolha um ID e se divirta

 

Créditos:backy

1 ano depois...
ludgeromf1L
19 de janeiro de 2012 às 22:26

tpw quando eu tento usar n da pq?

1 mês depois...
LucasCastroL
13 de fevereiro de 2012 às 00:29

Aque FUncionou Certinho!

 

Bem Legal!

 

ja to Usando!

 

;D

 

VLw's