1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[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 = equip,
		func = {if PLAYERS[id].Mana >= (50)
			function(id, itemslot, itemid, equip)
			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},
	},