PHP Code:
quest waffen1 begin
state start begin
when 20086.chat."Waffen" begin
if pc.countitem("95000")<10 or pc.countitem("95001")<10 or pc.countitem("95002")<10 or pc.countitem("96000")<1 or pc.countitem("96001")<1 or pc.countitem("96002")<1 then
say_title("Waffen")
say("Du willst Waffen für das Level 95 bis 99")
say("von mir? Nun ich habe nicht viele davon")
say("deswegen musst du mich dafür bezahlen!)
say("Zudem mag ich sehr gerne Schokolade!")
say("Du bekommst sie von den goldenen Fröschen")
say("In der verlassenden Stadt, oder als OX Gewinn!")
say("Geh und besorge mir jeweils:")
say_reward("10x 100kk Yang Speicher")
say_reward("10x 250kk Yang Speicher")
say_reward("10x 500kk Yang Speicher")
say_reward("1x Weiße Schokolade")
say_reward("1x Vollmilch Schokolade")
say_reward("1x Zartbitter Schokolade")
elseif pc.countitem("95000")>10 and pc.countitem("95001")>10 and pc.countitem("95002")>10 and pc.countitem("96000")>1 and pc.countitem("96001")>1 and pc.countitem("96002")>1 then[<<<KILL]bis unten ALLES
say_title("Waffen")
say("Ohh, du hast das Geld und die Schokoladen!")
say("Jetzt kannst du dir eine Waffe aussuchen!")
say_reward("Für welche Klasse möchtest du eine?")
local m = select("Krieger","Ninja","Sura","Schamie","Abbrechen")
if m == 5 then
return
end
if m == 1 then
say_title("Special NPC:")
say_reward("Welchen Waffentyp möchtest du?")
local t = select("Einhänder","Zweihänder","Abbrechen")
if t == 3 then
return
end
if t == 1 then
pc.give_item2("300",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
elseif t == 2 then
pc.give_item2("3220",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
end
elseif m == 2 then
say_title("Special NPC:")
say_reward("Welchen Waffentyp möchtest du?")
local t = select("Einhänder","Dolche","Bogen","Abbrechen")
if t == 4 then
return
end
if t == 1 then
pc.give_item2("300",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
elseif t == 2 then
pc.give_item2("1140",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
elseif t == 3 then
pc.give_item2("8050",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
end
elseif m == 3 then
say_title("Special NPC:")
say_reward("Welchen Waffentyp möchtest du?")
local t = select("Einhänder","Sura Spezial","Abbrechen")
if t == 3 then
return
end
if t == 1 then
pc.give_item2("300",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
elseif t == 2 then
pc.give_item2("9970",1)
pc.removeitem("95000",10)
pc.removeitem("96000",1)
pc.removeitem("95001",10)
pc.removeitem("96001",1)
pc.removeitem("95002",10)
pc.removeitem("96002",1)
end
elseif m == 4 then
say_title("Special NPC:")
say_reward("Welchen Waffentyp möchtest du?")
local t = select("Fächer","Glocke","Abbrechen")
if t == 3 then
return
end
if t == 1 then
pc.give_item2("7180",1)
pc.removeitem("95000",10)
pc.removeitem("96000",5)
pc.removeitem("95001",10)
pc.removeitem("96001",5)
pc.removeitem("95002",10)
pc.removeitem("96002",5)
elseif t == 2 then
pc.give_item2("5330",1)
pc.removeitem("95000",10)
pc.removeitem("96000",5)
pc.removeitem("95001",10)
pc.removeitem("96001",5)
pc.removeitem("95002",10)
pc.removeitem("96002",5)
end
end
end
end
end
end