forked from metin2/server
1
0
Fork 0
server/gamefiles/locale/english/quest/give_basic_weapon_new.quest

24 lines
489 B
Plaintext

quest give_basic_weapon begin
state start begin
function basic_item(job,index)
item_list={}
item_list[0] = {50187}
item_list[1] = {50212}
item_list[2] = {50187}
item_list[3] = {50213}
return item_list[job][index]
end
when login begin
if pc.getqf("basic_weapon") == 0 then
pc.setqf("basic_weapon", 1)
if pc.countitem(item) == 0 and pc.weapon != item then
pc.give_item2(give_basic_weapon.basic_item(pc.job,1) )
end
end
end
end
end