The code I tried but it creates explosion AT the player's location:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook ("say","rainoffire") function rainoffire (id,text) 	if (sample.classes.class[id]==8) then 		if (text=="!spell") then 			if (player(id,"money")==16000) then 				parse ("explosion "..player(id,"x").."+96 "..player(id,"y").."+96 100 100 "..id.."") 			else 				msg2 (id, "You do not have enough mana!") 			end 		end 	end end
edit:
I got it. Just thought of something and it worked. This thread can be closed i think.