Ecstacy
Mothafuckaaa
Hello,
I'm not sure if there is something like this has been posted before, but if there is, I wasn't able to find it.
This scripts will show :
vip status, maxhp, maxmana, lvl, maglvl.
add to talkactions.xml:
make a file called charstatus.lua and paste:
I don't mind +REP
Have fun,
unknown666
P.S. don't mind my scripting, I'm just a beginner.
I'm not sure if there is something like this has been posted before, but if there is, I wasn't able to find it.
This scripts will show :
vip status, maxhp, maxmana, lvl, maglvl.
add to talkactions.xml:
Lua:
<talkaction words="!status" event="script" value="charstatus.lua"/>
make a file called charstatus.lua and paste:
Lua:
local config = {
vipstorage = 11551,
status = MESSAGE_STATUS_CONSOLE_BLUE,
vipstatus = MESSAGE_STATUS_CONSOLE_RED
};
function onSay(cid, words, param)
if param == "" then
doPlayerSendTextMessage(cid, (config.status), "Use one of these params: vip, hp, mana, lvl, maglvl, all")
elseif param == "vip" then
if getPlayerStorageValue(cid, (config.vipstorage)) then
doPlayerSendTextMessage(cid, (config.vipstatus), "You are VIP.")
else
doPlayerSendTextMessage(cid, (config.vipstatus), "You are no VIP.")
end
elseif param == "premium" then
if getPlayerPremiumDays(cid) > 0 then
doPlayerSendTextMessage(cid, (config.vipstatus), "You are premium and you have: " .. getPlayerPremiumDays(cid) .. " days left.")
else
doPlayerSendTextMessage(cid, (config.vipstatus), "You are no premium.")
end
elseif param == "hp" then
doPlayerSendTextMessage(cid, (config.status), "Your health is: " .. getCreatureHealth(cid) .. "/".. getCreatureMaxHealth(cid) .." hp.")
elseif param == "mana" then
doPlayerSendTextMessage(cid, (config.status), "Your mana is: " .. getCreatureMaxMana(cid) .. "/" .. getCreatureMaxMana(cid) .." mana.")
elseif param == "lvl" then
doPlayerSendTextMessage(cid, (config.status), "Your current level is: " .. getPlayerLevel(cid) .. ".")
elseif param == "maglvl" then
doPlayerSendTextMessage(cid, (config.status), "Your current magic level is: " .. getPlayerMagLevel(cid) ..".")
elseif param == "all" then
doPlayerSendTextMessage(cid, 27, "Your health is: " .. getCreatureHealth(cid) .. "/" .. getCreatureMaxHealth(cid) .. " hp.\nYour mana is: " .. getCreatureMana(cid) .. "/" .. getCreatureMaxMana(cid) .. " mana.\nYour current level is: " .. getPlayerLevel(cid) .. ".\nYour current magic level is: " .. getPlayerMagLevel(cid) .. ".")
if getPlayerStorageValue(cid, (config.vipstorage)) then
doPlayerSendTextMessage(cid, (config.vipstatus), "You are VIP.")
else
doPlayerSendTExtMessage(cid, (config.vipstatus), "You are no VIP.")
end
if getPlayerPremiumDays(cid) > 0 then
doPlayerSendTextMessage(cid, (config.vipstatus), "You are premium and you have: " .. getPlayerPremiumDays(cid) .. " days left.")
else
doPlayerSendTextMessage(cid, (config.vipstatus), "You are no premium.")
end
end
return TRUE
end
I don't mind +REP
Have fun,
unknown666
P.S. don't mind my scripting, I'm just a beginner.
Last edited: