PHP Code:
quest gemi_shop begin
state start begin
when 9003.chat begin
say_title("Gemischtwarenhändlerin")
say("")
say("Willkommen bei der Gemischtwarenhändlerin "..pc.get_name().."!")
say("Welchen Shop möchtest du öffnen?")
local shop = select("Itemshop", "Tränke", "Frisuren")
if shop == 1 then
npc.open_shop(1)
if shop == 2 then
npc.open_shop(2)
if shop == 3 then
local race = select("Krieger", "Ninja", "Sura", "Schamane")
if race == 1 then
npc.open_shop(10)
if race == 2 then
npc.open_shop(11)
if race == 3 then
npc.open_shop(12)
if race == 4 then
npc.open_shop(13)
end
end
end
end
end
PHP Code:
quest ruestungs_shop begin
state start begin
when 9002.chat begin
say_title("Rüstungshändler")
say("")
say("Willkommen beim Rüstungshändler "..pc.get_name().."!")
say("Welchen Shop möchtest du öffnen?")
local shop = select("Krieger", "Ninja", "Sura", "Schamane")
if shop == 1 then
npc.open_shop(3)
if shop == 2 then
npc.open_shop(4)
if shop == 3 then
npc.open_shop(5)
if shop == 4 then
npc.open_shop(6)
end
end
end
end
PHP Code:
quest waffen_shop begin
state start begin
when 9001.chat begin
say_title("Waffenhändler")
say("")
say("Willkommen beim Waffenhändler "..pc.get_name().."!")
say("Welchen Shop möchtest du öffnen?")
local shop = select("Anfangswaffen", "30er Waffen", "Pfeile")
if shop == 1 then
npc.open_shop(7)
if shop == 2 then
npc.open_shop(8)
if shop == 3 then
npc.open_shop(9)
end
end
end
end