quest main_quest_lv6 begin state start begin end state run begin when login or levelup or enter with pc.get_level() >= 6 begin set_state ( gototeacher ) end end state gototeacher begin when letter begin local v=find_npc_by_vnum(20354) if v == 0 then else target.vid("__TARGET__", v, gameforge[LC()][5376]) end end when letter begin send_letter(gameforge[LC()][5376]) end when button or info begin say_title(gameforge[LC()][5376]) say(gameforge[LC()][5387]) say_item_vnum(30070) end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(gameforge[LC()][4940]) say(gameforge[LC()][5396]) wait() say_title(gameforge[LC()][4940]) say(gameforge[LC()][5397]) wait() say_title(gameforge[LC()][99]) say_reward(gameforge[LC()][5398]) say_reward(string.format(gameforge[LC()][5399], 1300)) say_reward(string.format(gameforge[LC()][5400], 1500)) say_reward(string.format(gameforge[LC()][6629], item_name(30070))) say_item_vnum(30070) set_state ( gotosmith ) end end state gotosmith begin when letter begin local v=find_npc_by_vnum(20016) if 0==v then else target.vid("__TARGET__", v, gameforge[LC()][5401]) end end when letter begin send_letter(gameforge[LC()][5402]) end when button or info begin say_title(gameforge[LC()][5402]) say(gameforge[LC()][5377]) end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(gameforge[LC()][6981]) say(gameforge[LC()][5378]) wait() say_title(gameforge[LC()][6981]) say(gameforge[LC()][5379]) say_item_vnum(30003) set_state ( gotowarehousekeeper ) end end state gotowarehousekeeper begin when letter begin local v=find_npc_by_vnum(9005) if 0==v then else target.vid("__TARGET__", v, gameforge[LC()][5380]) end end when letter begin send_letter(gameforge[LC()][5381]) end when button or info begin say_title(gameforge[LC()][5381]) say(gameforge[LC()][5382]) say_item_vnum(30003) end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(gameforge[LC()][5383]) say(gameforge[LC()][5384]) wait() say_title(gameforge[LC()][5383]) say(gameforge[LC()][5385]) say_item_vnum(30003) say(gameforge[LC()][5386]) set_state ( gotosmith2 ) end end state gotosmith2 begin when letter begin local v=find_npc_by_vnum(20016) if 0==v then else target.vid("__TARGET__", v, gameforge[LC()][5401]) end end when letter begin send_letter(gameforge[LC()][8385]) end when button or info begin say_title(gameforge[LC()][8385]) say(gameforge[LC()][5389]) say_item_vnum(30003) end when __TARGET__.target.click begin target.delete("__TARGET__") say_title(gameforge[LC()][6981]) say(gameforge[LC()][5390]) wait() say_title(gameforge[LC()][6981]) say(gameforge[LC()][5391]) wait() say_title(gameforge[LC()][6981]) say(gameforge[LC()][5392]) wait() say_title(gameforge[LC()][7158]) say_reward(string.format(gameforge[LC()][5399], 1300)) say_reward(string.format(gameforge[LC()][5400], 1500)) say_reward(string.format(gameforge[LC()][6629], item_name(30070))) say_item_vnum(30070) pc.give_exp2(5000) pc.change_money(1500) pc.give_item2(30070 , 1) clear_letter() set_state (__COMPLETE__) set_quest_state("main_quest_lv7", "run") end end state __COMPLETE__ begin end end