Really i'm not interesed what have that quest, but my it's better. :pQuote:
..
Okay Korea old files have not..
SG:
PHP Code:quest reset_status begin
state start begin
when 71103.use or 71104.use or 71105.use or 71106.use begin
local name = { "Health", "Inteligence", "Strength", "Dexterity" }
local idx = item.get_vnum() - 71103
local func = { pc.get_ht, pc.get_iq, pc.get_st, pc.get_dx }
if func[idx+1]() == 1 then
say(name[idx+1].."is1 now.")
say(name[idx+1].."can not be reset.")
say("")
return
end
say(name[idx+1].."is set to 1.")
say("Rest of the points can be returned ")
say("to traning points.")
say("")
say("Do you want to proceed?")
say("")
local s = select("Reset", "Cancel")
if s == 1 then
if pc.reset_status( idx ) == true then
say("Reset completed.")
say("")
pc.remove_item(item.get_vnum())
else
say("Failed to reset.")
say("")
end
end
end
end
end
LOL you are really 0. If: pc.get_ht it's VIT that is in binary lol all quest have binary base function. SHUT UP if you don't understand.
what would need to use: local name : require someone that?