Joa, ich mal wieder ^^
Bei folgender Quest bekomme ich bloss die Meldung, dass ein Fehler vorhanden ist. Allerdings will der Compiler nicht ausspucken wo und was für ein Fehler es ist.
PHP Code:
quest eventhelper begin
state start begin
when 9004.chat."Player Events" begin
say("Hello, I am the Eventhelper and I am")
say("helping the players with Events. You")
say("can choose between 3 little Events,")
say("which will only work for you. This will")
say("cost you 500.000 Yang. The Event will")
say("run for 2 hours!")
say("")
say_reward("Do you want to start an Event?")
local s1=select("Yes!","Cancel")
if s1 == 1 then
if pc.gold<500000 then
say("You don't have 500.000 Yang")
return
end
if event_time.timer > 0 then
say("There is still an Event active!")
say("Come back later.")
return
end
say("Start following Event now:")
local s2=select("Metin Spawn","50% EXP","Double Bosskill,"Cancel")
if s2 == 1 then
if pc.get_level() > 80 then
say("This Event is limited for Level 1-80.")
say("Please select another Event.")
return
end
timer("event_time", 60*120)
pc.changegold(-500000)
say("You can now Drop Metin-Stone-Scrolls")
say("from every Monster with not more than")
say("10 Level difference from your own level.")
when kill with not npc.is_pc() begin
local moblevel = mob_level[npc.get_race()]
local drops = {
---Item id, min level, max level, drop chance
{71080,1,20,10}, --- Metin Easy 10% drop chance
{71081,21,50,10}, --- Metin Middle 10% drop chance
{71082,51,80,10} --- Metin Hard 10% drop chance
}
for i = 1, table.getn(drops) do
if pc.get_level() >= (drops[i][2]) and pc.get_level() <= (drops[i][3]) then
if pc.get_level() >= moblevel-10 and pc.get_level() <= moblevel+10 then
if number(1,1000) >= (1000-drops[i][4]) then
game.drop_item_with_ownership(drops[i][1], 1)
end
end
end
end
end
end
if s2 == 2 then
timer("event_time", 60*120)
pc.changegold(-500000)
affect.add_collect(apply.EXP_DOUBLE_BONUS, 50, 120)
end
if s2 == 3 then
timer("event_time", 60*120)
pc.changegold(-500000)
when 691.kill begin
game.drop_item_with_ownership(71036, 1)
end
when 2091.kill begin
game.drop_item_with_ownership(71038, 1)
end
when 2206.kill begin
game.drop_item_with_ownership(71040, 1)
end
when 1901.kill begin
game.drop_item_with_ownership(71041, 1)
end
when 2091.kill begin
game.drop_item_with_ownership(71038, 1)
end
when 1306.kill begin
game.drop_item_with_ownership(71043, 1)
end
when 1092.kill begin
game.drop_item_with_ownership(71042, 1)
end
end
if s2 == 4 then
return
end
else
return
end
end
when event_time.timer begin
send_letter("Event ended")
when button or info begin
say_title("Event ended")
say("")
say("The Event has now ended. If you want")
say("to start a new Event, go to the Event")
say("Helper and start a new Event, for")
say("for 500.000 Yang.")
say("")
end
end
end
end