ConAn Edujawa
Member
- Joined
- Feb 23, 2015
- Messages
- 457
- Reaction score
- 17
hello guys i use 0.4
i have this script xikini made for me from long time
but i want add somthing like this getMonsterLevel(cid)
how i can change cid for boss name
i have this script xikini made for me from long time
Lua:
local config = {
{"heroshema", 45001},
{"getry", 45002},
{"amandyi", 45003}
}
function onSay(cid, words, param, channel)
local text = "Boss Timers:\n\n"
for i = 1, #config do
local timer, boss = getGlobalStorageValue(config[i][2]) - os.time(), config[i][1]
if text ~= "Boss Timers:\n\n" then
text = text .. "\n"
end
if timer > 0 then
text = text .. "" .. (boss:gsub("^%l", string.upper)) .. " will spawn in ".. os.date("!%Hh %Mm %Ss", timer) .."."
else
text = text .. "" .. (boss:gsub("^%l", string.upper)) .. " has spawned."
end
end
doShowTextDialog(cid, 2810, text)
end
how i can change cid for boss name