Forum

> > CS2D > Scripts > lol why when i put this script in my tibia
Forums overviewCS2D overview Scripts overviewLog in to reply

English lol why when i put this script in my tibia

3 replies
To the start Previous 1 Next To the start

old closed lol why when i put this script in my tibia

Kantos
BANNED Off Offline

Quote
why when i put this script in tibia my dedicated server off after like 3 minutes

addhook("serveraction","EXPserveraction")
function EXPserveraction(id,action)
if player(id, 'health') <= 0 then return end
if action == 1 then
if not PLAYERS[id].Tutorial.inventory then
message(id, "This is your inventory. You can equip or use items by clicking on them. You can press F3 to access your equipment.", "255128000")
PLAYERS[id].Tutorial.inventory = true
end
inventory(id)
elseif action == 2 then
if not PLAYERS[id].Tutorial.inventory then
message(id, "This is your equipment. You can unequip or use items by clicking on them.", "255128000")
PLAYERS[id].Tutorial.inventory = true
end
equipment(id)
elseif action == 3 then
if PLAYERS[id].tmp.exhaust.use then
return
end
PLAYERS[id].tmp.exhaust.use = true
timer(CONFIG.EXHAUST.USE, "rem.useExhaust", tostring(id))
local itemid = PLAYERS[id].Equipment[9]
if itemid then
local amount, items = itemcount(id, itemid)
message(id, "Using " .. (amount == 0 and ("the last " .. ITEMS[itemid].name) or ("one of " .. fullname(itemid, amount+1))) .. "...@C", "000255000")
ITEMS[itemid].func[1](id, 9, itemid, true)
if amount > 0 then
table.remove(PLAYERS[id].Inventory, items[1])
PLAYERS[id].Equipment[9] = itemid
end
else
message(id, "You can hold a rune and use F4 to cast it easily.", "255255255")
end
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview