Nene
funzt net :SQuote:
Du musst machen with pc.get_level() = 80 then
wenns nicht klappt dann probier mal with pc.get_level() == 80 then
quest levelup_item begin
state start begin
when levelup begin
chat("Du wurdest gerade Levelup und hast ein Item bekommen!")
if pc . job == 0 then
pc.give_item2(229) -- Item für Krieger
elseif pc . job == 1 then
pc.give_item2(229) -- Item für Ninja
elseif pc . job == 2 then
pc.give_item2(229) -- Item für Sura
elseif pc . job == 3 then
pc.give_item2(229) -- Item für Schamie
end
end
when levelup with pc.get_level() == 80 begin -- Wenn man lvl80 wird
chat("Du bist gerade Level 80 geworde, udn hat eine Lv80iger Waffe bekommen!")
if pc . job == 0 then
pc.give_item2(229) -- Item für Krieger
elseif pc . job == 1 then
pc.give_item2(229) -- Item für Ninja
elseif pc . job == 2 then
pc.give_item2(229) -- Item für Sura
elseif pc . job == 3 then
pc.give_item2(229) -- Item für Schamie
end
end
when levelup with pc.get_level() == 120 begin -- Wenn man lvl 90 wird
chat("Du bist gerade Level 90 geworden und hast eine Lv90iger Waffe bekommen!")
if pc . job == 0 then
pc.give_item2(229) -- Item für Krieger
elseif pc . job == 1 then
pc.give_item2(229) -- Item für Ninja
elseif pc . job == 2 then
pc.give_item2(229) -- Item für Sura
elseif pc . job == 3 then
pc.give_item2(229) -- Item für Schamie
end
end
end
end
quest levelup begin
state start begin
when levelup with pc.get_level() == 80 begin
notice_all(pc.get_name().. " hat level 80 erreicht.")
notice_all("Wir gratulieren.")
end
end
end
quest durchsage begin
state start begin
when 70001.use with pc.is_gm() begin
say_title("Willst du eine Durchsage durchführen?")
say("Text der Durchsage?")
local sendtext = input()
timer("devildown_time1", 60*1)
end
when devildown_time1.timer begin
notice_all("###"..sendtext.."###")
notice_all(sendtext)
timer("devildown_time2", 60*1)
end
when devildown_time2.timer begin
notice_all("###"..sendtext.."###")
notice_all(sendtext)
timer("devildown_time1", 60*1)
end
end
end
quest durchsage begin
state start begin
when 70001.use with pc.is_gm() begin
say_title("Willst du eine Durchsage durchführen?")
say("Text der Durchsage?")
local sendtext = input()
timer("msg_timer_1", 60)
end
when msg_timer_1.timer begin
notice_all("###" ..sendtext.. "###")
notice_all(sendtext)
timer("msg_timer_2", 60)
end
when msg_timer_2.timer begin
notice_all("###" ..sendtext.. "###")
notice_all(sendtext)
timer("msg_timer_1", 60)
end
end
end
quest dt begin
state start begin
when 20092.chat."Boss Spawn Event bekannt geben." with pc.is_gm() begin
local s= select("Wüste","Eisland")
if s==1 then
notice_all("Jong-Pyung:")
notice_all("Hey Abenteurer,")
notice_all("Die Bosse haben *******")
notice_all("eingeholt.")
notice_all("Schaut doch mal")
notice_all("In der Mitte der Wüste nach.")
notice_all("Viel Spaß.")
d.set_regen_file("locale/english/map/metin2_map_sungzi_desert_01/regen.txt")
d.spawn_mob(1095, 865, 632, 1)
d.spawn_mob(1093, 899, 694, 1)
d.spawn_mob(1093, 812, 677, 1)
d.spawn_mob(1093, 907, 556, 1)
d.spawn_mob(691, 897, 589, 1)
d.spawn_mob(691, 897, 589, 1)
d.spawn_mob(691, 897, 589, 1)
d.spawn_mob(691, 897, 589, 1)
d.spawn_mob(691, 897, 589, 1)
d.spawn_mob(691, 903, 703, 1)
d.spawn_mob(691, 903, 703, 1)
d.spawn_mob(691, 903, 703, 1)
d.spawn_mob(691, 903, 703, 1)
d.spawn_mob(691, 903, 703, 1)
d.spawn_mob(691, 812, 676, 1)
d.spawn_mob(691, 812, 676, 1)
d.spawn_mob(691, 812, 676, 1)
d.spawn_mob(691, 812, 676, 1)
d.spawn_mob(691, 812, 676, 1)
d.spawn_mob(2291, 850, 649, 1)
elseif s==2 then
notice_all("Jong-Pyung:")
notice_all("Hey Abenteurer,")
notice_all("Die Bosse haben *******")
notice_all("eingeholt.")
notice_all("Schaut doch mal")
notice_all("In der Mitte des Eislands nach.")
notice_all("Erbeutet was ihr könnt.")
notice_all("Viel Spaß.")
d.set_regen_file("locale/english/map/map_n_snowm_01/regen.txt")
d.spawn_mob(1095, 722, 633, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(691, 758, 649, 1)
d.spawn_mob(1093, 757, 603, 1)
d.spawn_mob(1092, 784, 586, 1)
d.spawn_mob(993, 724, 543, 1)
d.spawn_mob(1192, 722, 567, 1)
d.spawn_mob(1192, 764, 613, 1)
d.spawn_mob(1307, 789, 633, 1)
end
end
end
end
Hab dir was in dienen Thread geschirben!Quote:
Kommt einfach keine notice nachdem der Timer abgelaufen ist.PHP Code:quest durchsage begin
state start begin
when 70001.use with pc.is_gm() begin
say_title("Willst du eine Durchsage durchführen?")
say("Text der Durchsage?")
local sendtext = input()
timer("devildown_time1", 60*1)
end
when devildown_time1.timer begin
notice_all("###"..sendtext.."###")
notice_all(sendtext)
timer("devildown_time2", 60*1)
end
when devildown_time2.timer begin
notice_all("###"..sendtext.."###")
notice_all(sendtext)
timer("devildown_time1", 60*1)
end
end
end
Wenn ich es ohne Time versuche klappt alles... o.o
Bitte helfen..
quest dt begin
state start begin
when 20092.chat."Boss Spawn Event bekannt geben." with pc.is_gm() begin
local s= select("Wüste","Eisland")
if s==1 then
notice_all("Jong-Pyung:")
notice_all("Hey Abenteurer,")
notice_all("Die Bosse haben *******")
notice_all("eingeholt.")
notice_all("Schaut doch mal")
notice_all("In der Mitte der Wüste nach.")
notice_all("Viel Spaß.")
d.set_regen_file("locale/english/map/metin2_map_sungzi_desert_01/regen.txt")
spawn_mob(1095, 865, 632, 1)
spawn_mob(1093, 899, 694, 1)
spawn_mob(1093, 812, 677, 1)
spawn_mob(1093, 907, 556, 1)
spawn_mob(691, 897, 589, 1)
spawn_mob(691, 897, 589, 1)
spawn_mob(691, 897, 589, 1)
spawn_mob(691, 897, 589, 1)
spawn_mob(691, 897, 589, 1)
spawn_mob(691, 903, 703, 1)
spawn_mob(691, 903, 703, 1)
spawn_mob(691, 903, 703, 1)
spawn_mob(691, 903, 703, 1)
spawn_mob(691, 903, 703, 1)
spawn_mob(691, 812, 676, 1)
spawn_mob(691, 812, 676, 1)
spawn_mob(691, 812, 676, 1)
spawn_mob(691, 812, 676, 1)
spawn_mob(691, 812, 676, 1)
spawn_mob(2291, 850, 649, 1)
elseif s==2 then
notice_all("Jong-Pyung:")
notice_all("Hey Abenteurer,")
notice_all("Die Bosse haben *******")
notice_all("eingeholt.")
notice_all("Schaut doch mal")
notice_all("In der Mitte des Eislands nach.")
notice_all("Erbeutet was ihr könnt.")
notice_all("Viel Spaß.")
d.set_regen_file("locale/english/map/map_n_snowm_01/regen.txt")
spawn_mob(1095, 722, 633, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(691, 758, 649, 1)
spawn_mob(1093, 757, 603, 1)
spawn_mob(1092, 784, 586, 1)
spawn_mob(993, 724, 543, 1)
spawn_mob(1192, 722, 567, 1)
spawn_mob(1192, 764, 613, 1)
spawn_mob(1307, 789, 633, 1)
end
end
end
end
quest mob_kill begin
state start begin
when 2095.kill begin
notice_all(pc.get_name().. " hat " ..mob_name(2095).. " getötet!")
pc.setqf("count_" ..mob_name(2095), pc.getqf("count_" ..mob_name(2095)+1))
notice_all("Herzlichen Glückwunsch!")
notice_all(mob_name(2095).. " wurde schon " ..pc.getqf("count_" ..mob_name(2095)).. " mal getötet!")
end
end
end
Habe ich doch auf Seite 23..Quote:
dann musst du schon sagen was passiert wenn du sie startetst..
Greatz Benhero
quest mob_kill begin
state start begin
when 2095.kill begin
notice_all(pc.get_name().. " hat " ..mob_name(2095).. " getötet!")
pc.setqf("count_" ..mob_name(2095), pc.getqf("count_" ..mob_name(2095))+1)
notice_all("Herzlichen Glückwunsch!")
notice_all(mob_name(2095).. " wurde schon " ..pc.getqf("count_" ..mob_name(2095)).. " mal getötet!")
end
end
end
quest adminrelog begin
state start begin
when 20083.chat."admin-Reload" begin
say_title("GM-NPC:")
say ("Du benötigst das Passwort,")
say ("das nur GM's wissen")
say("Gib Das Passwort ein.")
local sname = input()
if sname == "Passwort" then
command("reload a")
end
end
end
end