Hello i made an script there you are able to refill your stamina to full. Only vip members ingame will be able to use it.
Tested 0.3.6+
Please dont post your verisions of this script. (Respect)
First go to data/actions/scripts and make an file staminalever.lua
Paste this inside it:
After go to data/actions actions.xml and paste this row:
Then go to rme and put the lever or what ever item you want to use and put the unique ID like:
Thanks for me. Maybe some repp? ^_^
Screens:
Tested 0.3.6+
Please dont post your verisions of this script. (Respect)
First go to data/actions/scripts and make an file staminalever.lua
Paste this inside it:
Lua:
local price = 5000000
local cancelmsg = "You need to be vip to refill your stamina!"
local buymsg = "You have refilled your stamina!"
local nomoneymsg = "You need "..price.." coins to refill your stamina!"
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) < 1 then
doPlayerSendTextMessage(cid,19,cancelmsg)
elseif getPlayerMoney (cid) >= price and getPlayerVipDays(cid) >= 1 then
doCreatureSay(cid, buymsg, TALKTYPE_ORANGE_1)
doPlayerRemoveMoney(cid,price)
doPlayerAddStamina(cid, 42 * 60 * 1000)
else
doPlayerSendTextMessage(cid,19,nomoneymsg)
end
return true
end
After go to data/actions actions.xml and paste this row:
Lua:
<action uniqueid="65414" event="script" value="staminalever.lua"/>
PHP:
Config:
local price = 5000000<-- That means it will cost 5kk (500cc)
Then go to rme and put the lever or what ever item you want to use and put the unique ID like:
Thanks for me. Maybe some repp? ^_^
Screens:
Last edited: