You can see
1
2
3
2
3
if weapon == 251 then 		dmg = math.ceil(2500/math.random(80,120)) wpnName = 'rune'
in:
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
addhook("hit","EXPhit") function EXPhit(id,source,weapon,hpdmg,apdmg) 	local HP, dmg, wpnName, name = player(id, "health") 	if hpdmg <= 0 or source == 0 then 		PLAYERS[id].HP = HP-hpdmg 		return 	end 	if type(source) == "table" then 		if gettile(PLAYERS[id].x, PLAYERS[id].y).SAFE or gettile(PLAYERS[id].x, PLAYERS[id].y).NOMONSTERS then return 1 end 		dmg = math.ceil(math.random(10,20)*hpdmg*source.atk/PLAYERS[id].tmp.def/15) 		source, wpnName = 0, source.name 		--print(wpnName .. " deals " .. dmg .. " damage to " .. player(id, "name") .. ".") 	elseif player(source, 'health') > 0 then 		if id == source then return 1 end 		if inarray({400, 401, 402, 403, 404}, PLAYERS[source].Equipment[7]) then message(source, "You may not attack on a horse.") return 1 end 		if gettile(PLAYERS[id].x, PLAYERS[id].y).SAFE or gettile(PLAYERS[source].x, PLAYERS[source].y).SAFE or gettile(PLAYERS[id].x, PLAYERS[id].y).NOPVP or gettile(PLAYERS[source].x, PLAYERS[source].y).NOPVP then message(source, "You may not attack someone in a SAFE or PVP disabled area.") return 1 end 		if not PLAYERS[id].Tutorial.hit then 			message(id, "A player is attacking you! You can fight back by swinging your weapon at him.", "255128000") 			PLAYERS[id].Tutorial.hit = true 		end 		local atk = PLAYERS[source].tmp.atk 		local def = PLAYERS[id].tmp.def 		if weapon == 251 then 			dmg = math.ceil(2500/math.random(80,120)) 			wpnName = 'rune' 		elseif weapon == 46 then 			dmg = math.ceil(500/math.random(80,120)) 			wpnName = 'firewave' 		else 			local dmgMul = ((PLAYERS[id].Level+50)*atk/def)/math.random(60,140) 			dmg = math.ceil(20*dmgMul) 			wpnName = PLAYERS[source].Equipment[3] and ITEMS[PLAYERS[source].Equipment[3]].name or 'dagger' 		end 		--print(player(source, "name") .. " deals " .. dmg .. " damage to " .. player(id, "name") .. ".") 	end 	local resultHP = HP-dmg 	if resultHP > 0 then 		sethealth(id,resultHP) 		parse('effect "colorsmoke" ' .. player(id, "x") .. ' ' .. player(id, "y") .. ' 0 0 192 0 0') 	else 		parse('customkill ' .. source .. ' "' .. wpnName .. '" ' .. id) 	end 	PLAYERS[id].HP = resultHP 	return 1 end