Can anyone modify this function to unlock a title with an inventory item? (as a potion , for example) .Quote:
when 391.kill with pc.is_gm() begin
local to_learn_count = 10
local _getqf = pc.getqf("title_15")
if to_learn_count >= _getqf + 1 and not pc.get_title(15) then
if pc.set_title(15, 1) == true then
syschat("You just unlock the Mi-Jung Hunter title, compliments!")
end
else
pc.setqf("title_15", _getqf + 1)
end
end
So only if you have an item with a specific code (e.g. /i 333 in the inventory, you can activate a title.
__________
Cheers , Uzeris






