1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[305] = { 		name = "Wodden staf", 		r = 200, g = 100, b = 0, 		action = {"equip","metheors"}, 		slot = 3, 		eimage = "gfx/Best/wodden_staf.png", 		fimage = "gfx/Best/wodden_staf.png", 		offsetx = 4, 		offsety = 20, 		atk = 0.9, 		speed = -3, class = 4, 		func = {equip, function(id, itemslot, itemid, equip) if PLAYERS[id].class == 4 then if PLAYERS[id].MP > 15 then 			PLAYERS[id].MP = PLAYERS[id].MP - 15 			local range,dmg,erange,rept,gr,xx,yy = 150,50,50,math.random(5,10),0,player(id,"x"),player(id,"y") 			radiusmsg(player(id,"name") .. " casts a meteorsLV1.", xx, yy) 			repeat 				xx,yy=player(id,"x"),player(id,"y") 				xx=xx+math.random(1,range)-math.random(1,range) 				yy=yy+math.random(1,range)-math.random(1,range) 				explosion(xx, yy, erange, dmg, id)	 				parse("effect \"colorsmoke\" "..xx.." "..yy.." 100 96 255 225 0") 				gr = gr + 1 			until gr >= rept 		end end end}, 	},
edited 4×, last 28.03.14 09:03:45 pm