Ehm one)
when login with pc.getqf("wolfman") != 1 and pc.get_job() == 4 begin
pc.setqf("wolfman", 1)
Ehm two)
if pc.get_empire() == 1 then
pc.warp()
elseif pc.get_empire() == 2 then
pc.warp()
elseif pc.get_empire == 3 then
pc.warp()
end
Ehm three) - Where is end of quest?
state armor_shop begin
when letter begin
local v = find_npc_by_vnum(xxx)
if v != 0 then
target.vid("__TARGET__", v, "Armor Shop")
end
send_letter("Deliver the book")
end
when button or info begin
local Manufacturing_armor = xxxx
say_title("Deliver the book")
say("Deliver the book that the General Store")
say("Saleswoman's father left behing to him. He is")
say("the armor Shop Dealer from the village.")
say_item_vnum(Manufacturing_armor)
end
when __TARGET__.target.click or xxx.chat."Armor Shop Dealer" begin
target.delete("__TARGET__")
local Manufacturing_armor = xx
say_title("Armor Shop Dealer:")
say("You look like a man on a mission! Ah, my daugther")
say("sent you! Thank you. I need this book to produce")
say("new sets of armor.")
say_item_vnum(Manufacturing_armor)
say("My daugther mus be very busy if she's sending")
say("you to give me the book. Let's see, what would")
say("be an appropiate reward...?")
wait()
say_title("Armor Shop Dealer:")
say("As a reward, I'm doing to five you some Yang, so")
say("you can buy yourself some proper equipment. That")
say("shpuld be enough, shouldn't it? Thank you. When")
say("I need some help again, I'll probably ask for you")
say("another favor. And when you need a new armor")
say("then come and see me. My shop is always open.")
wait()
say_title("Information:")
say_reward("You have received 450 experience points.")
say_reward("You have received 5,000 Yang.")
say_reward("You have received 20 blue potions.")
-----
pc.remove_item(Manufacturing_armor)
pc.give_exp2(450)
pc.change_gold(5000)
pc.give_item2(xxxx,20)
end
Shit work.