1
if PLAYERS[id].Mana >= 34
to
1
if PLAYERS[id].Mana >= 34 then
if PLAYERS[id].Mana >= 34
if PLAYERS[id].Mana >= 34 then
[514] = { name = "dragon dagger[P]", desc = "Less dammage, but more speed. Upgraded with power hit [P].", r = 180, g = 0, b = 0, action = {"power hit [20]","equip"}, slot = 3, eimage = "gfx/weiwen/dagger.png", fimage = "gfx/weiwen/dagger.png", offsetx = 6, offsety = 17, atk = 1.4, speed = -0.25, level = 25, func = { function(id, itemslot, itemid, equip) if PLAYERS[id].Mana >= 34 then radiusmsg(player(id,"name") .. " used special attack.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 64, 20, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 100 96 128 128 0") else message(id, "You don't have enough mana") end,equip}, },
[14:47:07] LUA ERROR: sys/lua/cs2dtibia/items.lua:1915: unexpected symbol near ','
STATS = {'Experience', 'Level', 'Money', 'Mana'},
PLAYER[id].Mana = PLAYER[id].Mana + 1
for _, id in ipairs(player(0, 'table')) do 		if player(id, 'health') > 0 and PLAYERS[id] and PLAYERS[id].Mana > (CONFIG.MAXMP - 5) and PLAYERS[id].Mana < (CONFIG.MAXMP) then -- line 219 PLAYERS[id].tmp.tmana = (CONFIG.MAXMP) - PLAYERS[id].Mana PLAYERS[id].Mana = PLAYERS[id].Mana + PLAYERS[id].tmp.tmana updateHUD(id) elseif player(id, 'health') > 0 and PLAYERS[id] and PLAYERS[id].Mana < (CONFIG.MAXMP) then PLAYERS[id].Mana = PLAYERS[id].Mana + 5 updateHUD(id) end
STATS = {'Experience', 'Level', 'Money', 'Energy', 'Mana'}, --ignore 	STATSMENU = {"hp", "atk", "def", "spd"}, --ignore 	 	-- initial player table. info is a table consisting of strings to inform the player when (s)he logs in. the table is cleared after logging in. 	-- if you would like to set initial level, money, equip etc this should be where you do it. 	PLAYERINIT = { 		Experience = 0, 		Level = 1, 		Money = 546, 		Mana = 100, 		Energy = 100, 		HP = 100, 		MP = 100, 		Inventory = {}, 		Equipment = {}, 		Spawn = {784, 240}, 		Tutorial = {}, 		Info = {}, 	},
function updateMP(id) hudtxt2(id,21, PLAYERS[id].Mana, '255255000', 610,452,1) hudtxt2(id,22, "Mana", '255255255', 528,452,1) end
[13:12:30] LUA ERROR: sys/lua/cs2dtibia/hooks.lua:219: attempt to perform arithmetic on field 'MAXMP' (a nil value)
[14:28:44] LOAD MAP: 'maps/ysize.map' does not exist [14:28:44] LUA ERROR: sys/lua/server.lua:21: 'for' limit must be a number
GROUNDITEMS = {} TILEZONE = {} for y = 0, map'ysize' do 	GROUNDITEMS[y], TILEZONE[y] = {}, {} 	for x = 0, map'xsize' do 		GROUNDITEMS[y][x], TILEZONE[y][x] = {}, {} 		for i, v in ipairs(SAFEZONE) do 			TILEZONE[y][x].SAFE = (x >= v[1][1] and x <= v[2][1] and y >= v[1][2] and y <= v[2][2]) 			if TILEZONE[y][x].SAFE then break end 		end 		for i, v in ipairs(PVPZONE) do 			TILEZONE[y][x].PVP = (x >= v[1][1] and x <= v[2][1] and y >= v[1][2] and y <= v[2][2]) and i or nil 			if TILEZONE[y][x].PVP then 				TILEZONE[y][x].SAFE = false 				break 			end 		end