PHP Code:
---------------------------------------------
-- Itemshop Informationen -
---------------------------------------------
quest game_info begin
state start begin
when login begin
send_letter("Server Information")
end
when button or info begin
say_title("Server Information")
say("")
say_title("BlaBlaBla Metin2 Support Team")
say("Game Admin:")
say("Super Game Master:")
say("Game Master: - ")
say("Trial Game Master: - ")
say_title("Server Rates")
say("Yang: %")
say("Exp: %")
say("Drop: %")
say_title("For more information go to:")
say("www.BlaBlaBlaMetin2.com")
say_reward("Remember...Play fair and follow the rules!")
say_title("Have a good play time "..pc.get_name())
end
end
end
PHP Code:
quest couple_ring begin
state start begin
when 9006.chat."The Revenge" with pc.get_level()>=65 begin
say_title("Old lady:")
say("My husband had once visited Mountain Sohan")
say("to find some rare herbs.")
say("Some days later i finded out that")
say("someone had killed him.")
say("I cried a lot and my rage was bigger")
say("than anyone's.")
say("I want you to go there and kill some")
say("Metins of Death to revenge for my husband.")
local s=select(
"I will take revenge",
"No,thanks")
if 1==s then
say("Thank you!")
say_reward("Go and kill Metins of Death at Mountain Sohan")
say("Good Luck!")
set_state(kill)
elseif 2==s then
say("Oh...Okay then...")
say("I will continue crying now")
say("and wait here until a real hero comes to help me.")
say("Have a nice day!")
end
end
end
state kill begin
when enter begin
pc.setqf("kill_count", 0)
end
when leave begin
pc.setqf("kill_count", 0)
q.done()
end
when letter begin
q.set_counter("Metins of Death", couple_ring.get_rest_count());
end
when 8013.kill begin
local kill_count=pc.getqf("kill_count")+1
pc.setqf("kill_count", kill_count)
q.set_counter("Metins of Death", couple_ring.get_rest_count());
if couple_ring.is_completed() then
say_title("Well Done!")
say("You have successfully killed all the")
say("Metins of Death at the Mountain Sohan!")
say("")
say("Return to Old Lady at the city")
say("and tell her the great news.")
set_state(report)
end
end
function get_rest_count()
return 15-pc.getqf("kill_count")
end
function is_completed()
return pc.getqf("kill_count")>=15
end
when letter begin
send_letter("Kill the Metins of Death")
end
when button or info begin
say_title("Kill all Metins of Death!")
say("By killing them you take revenge for")
say("the Old Lady's husband.")
say("")
say_reward(string.format("Metins of Death Remaining : %d", couple_ring.get_rest_count()))
say("")
end
when 9006.chat."§Ω«ό°Σ¤HΊ«θ«λ" begin
say("¦Ρ¤H®a:")
say("ό~ §A±ώ¦Ί¤F¥Υ½¬°μ*Ί¶ά??")
say("ΑΩ¨S¦³±ώ¦Ί¨¬°χ¥Υ½¬°μ*Ί..")
say("¦pGΔ±±o¤ΣΓψΐH®Ι§i¶D§Ϊ§a...")
say("")
local s=select("¶i¦ζ","©ρ±σ")
if 1==s then
say("§Ω«ό°Σ¤HΊ®a¤H,¤]·Q¬°¤F³ψ¤³¦Σ¥h±ώ¦Ί¥Υ½¬°μ*Ί")
say("¦pG§Ϊ±ώ¦Ί¥Υ½¬°μ*Ί¥i¥H®ψ°£¥L*Μ«θ«λ")
say("§Ϊ¥i¥Hΐ°¥L*Μ±ώ¦Ί¥Υ½¬°μ*Ί..!!")
say("")
else
say("§Ϊ¤£»{ΓΡ§Ω«ό°Σ¤H...")
say("§ΪΔ±±o¨S¥²*n¬°¥L³ψ¤³..")
say("")
wait()
say("¦Ρ¤H®a:")
say("¶β §A¦Ϋ¤vΊ¥Ν©R¤]«ά*«*n...")
say("§ΪΎΉD¤F, §A*n«O*«¦Ϋ¤vΊ¥Ν©R.")
say("")
say("¦Ρ¤H®aΊ¤β¤W¦ό¥G®³µΫ¤°»ςF¦θ")
say("¬έΌΛ¤l¬O¤@¶΅¤Q¤ΐΐιΔκ¤Q¤ΐ¬Γ¶QΊF¦θ")
say("(¦nΉ³χ»Θ°]Δ_¤@ΌΛ...)")
say("")
local s=select("*«·s¦AΈΥ", "©ρ±σ")
if 1==s then
say("¨δΉκ§Ϊ¨Γ¤£·Q±o¨μχ»Θ°]Δ_")
say("¬°¤F§Ω«ό°Σ¤HΊ®a¤H")
say("§Ϊ¤@©w*n±ώ¦Ί¨Ί¨Η¥Υ½¬°μ*Ί")
say("")
elseif 2==s then
say("¤£·|Ί, ¤HΊ¤H¥Ν¥u¦³¤@¦Έ,")
say("§Ϊ¤£¥²Εύ§ΪΊ¥Ν©RΉJ¨μ¦MΐI, ΉοΉο...")
say("Ήο§Ω«όΊ®a¤H§Ϊ·P¨μ¤Q¤ΐ©κΊp, ¦ύ¬O§Ϊ·Q©ρ±σ.")
say("")
set_state(start)
q.done()
end
end
end
end
state report begin
when letter begin
send_letter("Success!")
end
when button or info begin
say_title("Finally!")
say("You have killed all the Metins of Death.")
say("Go and tell the great news to Old Lady.")
say("")
end
when 9006.chat."I Took Revenge!" begin
say_title("Old Lady:")
say("Well Done!")
say("You are my hero young man.")
say("Now it's time for your award!")
say("")
say("")
say_reward("You have earned a Engagement Ring!")
say_item("Engagement Ring", 70301, "©w±΅«H«µ²±BΊ¨Ζ«J¥i¥H¨Ο¥Ξ.")
pc.give_item2(70301)
set_state(complete)
q.done()
end
end
state complete begin
end
state failure begin
end
end