Refactored directory structure, added game files from TMP
This commit is contained in:
23
gamefiles/locale/english/quest/give_basic_weapon_new.quest
Normal file
23
gamefiles/locale/english/quest/give_basic_weapon_new.quest
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user