pc.change_hp function

04/19/2015 15:38 thenemne0032#1
Hi,

Code:
pc.change hp()
function how can i use?

Code:
quest xxx begin
	state start begin
		when kill with npc.is_pc() begin
			local dusman_sec = pc.select(npc.get_vid())
			do 
				local max_hp = pc.get_max_hp()
				pc.change_hp(max_hp)
			end
			pc.select(dusman_sec)
		end
	end
end
or Guild System, as in "I start again" how exactly do I do when the energy?

My English is bad. I'm sorry.

Thanks.