quest title_system begin
state start begin
when login with pc.getqf("first_login") != 1 and pc.is_gm() begin
pc.setqf("first_login", 1)
pc.setqf("title_1", 0) -- Dogs Hunter (mobVnum = 101);
pc.setqf("title_2", 0) -- Wolf Hunter (mobVnum = 102);
pc.setqf("title_3", 0) -- Boar Hunter (mobVnum = 108);
pc.setqf("title_4", 0) -- Bear Hunter (mobVnum = 110);
pc.setqf("title_5", 0) -- Tiger Hunter (mobVnum = 114);
pc.setqf("title_6", 0) -- Cung-Mok Hunter (mobVnum = 151);
pc.setqf("title_7", 0) -- Mu-Rang Hunter (mobVnum = 152);
pc.setqf("title_8", 0) -- Jug-Hyul Hunter (mobVnum = 153);
pc.setqf("title_9", 0) -- Young-Ji Hunter (mobVnum = 154);
pc.setqf("title_10", 0) -- Li-An Hunter (mobVnum = 155);
pc.setqf("title_11", 0) -- Lykos Hunter (mobVnum = 191);
pc.setqf("title_12", 0) -- Scrofa Hunter (mobVnum = 192);
pc.setqf("title_13", 0) -- Bera Hunter (mobVnum = 193);
pc.setqf("title_14", 0) -- Tigris Hunter (mobVnum = 194);
pc.setqf("title_15", 0) -- Mi-Jung Hunter (mobVnum = 391);
pc.setqf("title_16", 0) -- Eun-Jung Hunter (mobVnum = 392);
pc.setqf("title_17", 0) -- Se-Rang Hunter (mobVnum = 393);
pc.setqf("title_18", 0) -- Jin-Hee Hunter (mobVnum = 394);
pc.setqf("title_19", 0) -- Mahon Hunter (mobVnum = 491);
pc.setqf("title_20", 0) -- Bo Hunter (mobVnum = 492);
i = 0
while i < 21 do
pc.set_title(i, 0)
i = i + 1
end
end
when 101.kill begin
local to_learn_count = 50
local _getqf = pc.getqf("title_1")
if to_learn_count <= _getqf + 1 and not pc.get_title(1) then
if pc.set_title(1, 1) == true then
syschat("Tocmai ai deblocat titlul de Incepator ,felicitari!")
end
else
pc.setqf("title_1", _getqf + 1)
end
end
when 502.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_2")
if to_learn_count <= _getqf + 1 and not pc.get_title(2) then
if pc.set_title(2, 1) == true then
syschat("Tocmai ai deblocat titlul de Vanator salbatic ,felicitari!")
end
else
pc.setqf("title_2", _getqf + 1)
end
end
when 691.kill begin
local to_learn_count = 2
local _getqf = pc.getqf("title_3")
if to_learn_count <= _getqf + 1 and not pc.get_title(3) then
if pc.set_title(3, 1) == true then
syschat("Tocmai ai deblocat titlul de Cosmarul orcilor ,felicitari!")
end
else
pc.setqf("title_3", _getqf + 1)
end
end
when 701.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_4")
if to_learn_count <= _getqf + 1 and not pc.get_title(4) then
if pc.set_title(4, 1) == true then
syschat("Tocmai ai deblocat titlul de Regele esotericilor ,felicitari!")
end
else
pc.setqf("title_4", _getqf + 1)
end
end
when 1107.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_5")
if to_learn_count <= _getqf + 1 and not pc.get_title(5) then
if pc.set_title(5, 1) == true then
syschat("Tocmai ai deblocat titlul de Om de zapada ,felicitari!")
end
else
pc.setqf("title_5", _getqf + 1)
end
end
when 2202.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_6")
if to_learn_count <= _getqf + 1 and not pc.get_title(6) then
if pc.set_title(6, 1) == true then
syschat("Tocmai ai deblocat titlul de Printul Focului ,felicitari!")
end
else
pc.setqf("title_6", _getqf + 1)
end
end
when 2205.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_7")
if to_learn_count <= _getqf + 1 and not pc.get_title(7) then
if pc.set_title(7, 1) == true then
syschat("Tocmai ai deblocat titlul de Printesa Focului ,felicitari!")
end
else
pc.setqf("title_7", _getqf + 1)
end
end
when 1002.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_8")
if to_learn_count <= _getqf + 1 and not pc.get_title(8) then
if pc.set_title(8, 1) == true then
syschat("Tocmai ai deblocat titlul de Demon neinsufletit ,felicitari!")
end
else
pc.setqf("title_8", _getqf + 1)
end
end
when 8027.kill begin
local to_learn_count = 100
local _getqf = pc.getqf("title_9")
if to_learn_count <= _getqf + 1 and not pc.get_title(9) then
if pc.set_title(9, 1) == true then
syschat("Tocmai ai deblocat titlul de Farmer ,felicitari!")
end
else
pc.setqf("title_9", _getqf + 1)
end
end
when 1191.kill begin
local to_learn_count = 10
local _getqf = pc.getqf("title_10")
if to_learn_count <= _getqf + 1 and not pc.get_title(10) then
if pc.set_title(10, 1) == true then
syschat("Tocmai ai deblocat titlul de Vrajitor de gheata ,felicitari!")
end
else
pc.setqf("title_10", _getqf + 1)
end
end
when 1191.kill begin
local to_learn_count = 10
local _getqf = pc.getqf("title_11")
if to_learn_count <= _getqf + 1 and not pc.get_title(11) then
if pc.set_title(11, 1) == true then
syschat("Tocmai ai deblocat titlul de Vrajitoare de gheata ,felicitari!")
end
else
pc.setqf("title_11", _getqf + 1)
end
end
when 2493.kill begin
local to_learn_count = 5
local _getqf = pc.getqf("title_12")
if to_learn_count <= _getqf + 1 and not pc.get_title(12) then
if pc.set_title(12, 1) == true then
syschat("Tocmai ai deblocat titlul de Vanator de dragoni ,felicitari!")
end
else
pc.setqf("title_12", _getqf + 1)
end
end
when 3491.kill begin
local to_learn_count = 15
local _getqf = pc.getqf("title_13")
if to_learn_count <= _getqf + 1 and not pc.get_title(13) then
if pc.set_title(13, 1) == true then
syschat("Tocmai ai deblocat titlul de Alchimistul marilor ,felicitari!")
end
else
pc.setqf("title_13", _getqf + 1)
end
end
when 3090.kill begin
local to_learn_count = 15
local _getqf = pc.getqf("title_14")
if to_learn_count <= _getqf + 1 and not pc.get_title(14) then
if pc.set_title(14, 1) == true then
syschat("Tocmai ai deblocat titlul de Alchimistul pamantului ,felicitari!")
end
else
pc.setqf("title_14", _getqf + 1)
end
end
when 3390.kill begin
local to_learn_count = 15
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("Tocmai ai deblocat titlul de Alchimistul cerului ,felicitari!")
end
else
pc.setqf("title_15", _getqf + 1)
end
end
when 3791.kill begin
local to_learn_count = 15
local _getqf = pc.getqf("title_16")
if to_learn_count <= _getqf + 1 and not pc.get_title(16) then
if pc.set_title(16, 1) == true then
syschat("Tocmai ai deblocat titlul de Alchimistul luminii ,felicitari!")
end
else
pc.setqf("title_16", _getqf + 1)
end
end
when 6091.kill begin
local to_learn_count = 5
local _getqf = pc.getqf("title_17")
if to_learn_count <= _getqf + 1 and not pc.get_title(17) then
if pc.set_title(17, 1) == true then
syschat("Tocmai ai deblocat titlul de Ungicator inflacarat ,felicitari!")
end
else
pc.setqf("title_17", _getqf + 1)
end
end
when 6191.kill begin
local to_learn_count = 5
local _getqf = pc.getqf("title_18")
if to_learn_count <= _getqf + 1 and not pc.get_title(18) then
if pc.set_title(18, 1) == true then
syschat("Tocmai ai deblocat titlul de Ungicator inghetat ,felicitari!")
end
else
pc.setqf("title_18", _getqf + 1)
end
end
when 8056.kill begin
local to_learn_count = 50
local _getqf = pc.getqf("title_19")
if to_learn_count <= _getqf + 1 and not pc.get_title(19) then
if pc.set_title(19, 1) == true then
syschat("Tocmai ai deblocat titlul de Alchimistul pietrelor ,felicitari!")
end
else
pc.setqf("title_19", _getqf + 1)
end
end
when 50172.use with pc.is_gm() begin --schimba vnum cu codul itemului tau
local iteme_necesare = pc.count_item(50172, 1) -- pentru 1 item nu 10
local _getqf = pc.getqf("title_20")
local item = 50172
if iteme_necesare >= _getqf + 1 and not pc.get_title(20) then
pc.removeitem("50172", 1)
if pc.set_title(20, 1) == true then
syschat("You just unlock the Bo Hunter title, compliments!")
end
else
pc.setqf("title_20", _getqf + 1)
end
end
end
end