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
addhook("movetile","health_shop")
function health_shop(id,x,y)
if x == 10 and y == 13 then
menu(id,"HP equip,small HP{10}|100$,light HP{30}|500$,medium HP{50}|1000$,more HP{75}|3000,Full HP{100}|5000$")
end
end
addhook("menu","_menuhp")
function _menuhp(id,title,button)
if title=="HP equip" then
if button==1 then
if (player(id,"money")>=100) then
	parse(spawnitem "..id.." 54 ")
	parse("setmoney "..id.." "..player(id,"money")-100)
else msg2(id,"©255255255You dont have money!")
	end
elseif button==2 then
if (player(id,"money")>=500) then
	parse("spawnitem "..id.." 54 ")
	parse("setmoney "..id.." "..player(id,"money")-500)
else msg2(id,"©255255255You dont have money!")
	end
elseif button==3 then
if (player(id,"money")>=1000) then
	parse("spawnitem "..id.." 54 ")
	parse("setmoney "..id.." "..player(id,"money")-1000)
else msg2(id,"©255255255You dont have money!")
	end
elseif button==4 then
if (player(id,"money")>=3000) then
	parse("spawnitem "..id.." 54 ")
	parse("setmoney "..id.." "..player(id,"money")-3000)
else msg2(id,"©255255255You dont have money!")
	end
elseif button==3 then
if (player(id,"money")>=5000) then
	parse("spawnitem "..id.." 54 ")
	parse("setmoney "..id.." "..player(id,"money")-5000)
else msg2(id,"©255255255You dont have money!")
	end
end
end