Könntest du den Quest so bearbeiten, dass ich ihn nunoch kopieren muss ?
mit freundlichen grüßen
xfantix1
mit freundlichen grüßen
xfantix1
quest main_quest_lv10 begin
state start begin
when login or levelup with pc.get_level() == 1 begin
set_state( gotoboss )
end
end
[...]
quest haustiere begin
state start begin
-- Setzt den neuen Petnamen in die Datenbank ein
function set_pet_name(name)
mysql_query("DELETE FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
mysql_query("INSERT INTO player.pet_name(id, name) VALUES(\\'"..pc.get_player_id().."\\', \\'"..name.."\\')")
end
-- Holt sich den Petnamen aus der Datenbank
function get_pet_name()
local pet_name = mysql_query("SELECT * FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
return (pet_name.name or {pc.get_name().."'s Haustier"})[1]
end
-- Feuer-Phönix
when 53001.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(22)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Rentierjunges
when 53002.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(24)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Eis-Phönix
when 53003.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(23)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Azrael
when 53005.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(25)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Wolfs
when 53006.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(26)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Löwen
when 53007.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(27)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Keiler
when 53008.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(28)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Tiger
when 53009.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(29)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Eisbär
when 53014.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(30)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Namenskette - Namensändung des Haustiers
when 71110.use begin
say_title("Namenskette :")
say("")
say("Hier kannst du deinem Haustier einen neuen")
say("Namen geben. Damit kannst du dein Haustier")
say("über alle anderen hervorheben.")
say("")
akna = haustiere.get_pet_name()
if string.len(akna) == 0 then
say_reward("Dein Haustier besitzt bis jetzt keinen Namen.")
else
say_reward("Der aktuelle Name deines Haustieres lautet: "..akna)
end
say("")
say("Möchtest du fortfahren?")
say("")
local s=select("Umbenennen", "Abbrechen")
if s==2 then
return
end
say_title("Namenskette :")
say("")
say("Bitte gib hier den neuen Namen deines")
say("Haustieres ein.")
local x = input()
if string.len(x) < 2 then
say_title("Namenskette :")
say("Der eingegeben Name ist zu kurz.")
say("")
say_reward("Der neue Name muss aus")
say_reward("mind. 2 Zeichen bestehen.")
say("")
return
elseif string.len(x) > 12 then
say_title("Namenskette :")
say("Der eingegeben Name ist zu lang.")
say("")
say_reward("Der neue Name darf max.")
say_reward("aus 12 Zeichen bestehen.")
say("")
return
end
haustiere.set_pet_name(x)
chat("Haustier erfolgreich umbenannt")
pc.remove_item(71110, 1)
end
end
end
quest dck2 begin
state start begin
when 20376.chat."Kammer des Schreckens" begin
if pc.get_level() < 100 then
say("Entschuldige aber du musst erst Level 100 erreichen.")
else
say("Hallo "..pc.get_name().." ")
say("ich bringe dich gegen")
say("einen Opulus zur Kammer des Schreckens.")
say("Ich brauche nur eine Kleinigkeit.")
say_item_vnum(27991)
say("Mit dem kann ich dich Porten.")
local wahl = select("Ja", "Nein")
if wahl == 1 and pc.count_item(27991) == 1 then
say("Tötet soviel Mops bis ihr")
say_item_vnum(30128)
say("droppt und zieht sie dann auf die Säule")
wait()
pc.removeitem(27991, 1)
pc.warp(45000, 45000)
elseif pc.count_item(27991) == 0 then
say("Ohne den.")
say_item_vnum(27991)
say("gehts nicht!")
elseif wahl == 2 then
return
end
end
end
when kill with pc.get_map_index() == 103 and pc.countitem(30128) < 1 begin
local rnd = number(1,100)
if rnd == 6 then
game.drop_item_with_ownership(30128, 1)
end
end
when 20365.take with item.vnum == 30128 begin
local delay = 300
say_title("To Denkmal")
if get_global_time() - pc.getqf("time") < delay and pc.getqf("time") != 0 then
local zeit = delay - (get_global_time() - pc.getqf("time"))
say("Du kannst noch nicht eintreten!")
say("Du musst noch "..zeit.." Sekunden warten!")
return
end
if pc.get_level() < 100 then
say("Du kommst hier net rein")
else
say("Das Eingangsportal wurde geöffnet.")
say("Geh schnell hindurch!")
wait()
say("Hier beginnt das wahre Abenteuer!")
item.remove()
d.clear_regen()
d.join(103)
end
end
when login with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
say("Zerstöre alle 4 Metins um zu zeigen")
say("das du würdig bist das Siegel,")
say("der Kammer des Schreckens zu brechen!")
d.spawn_mob(8036, 405, 350)
d.check_eliminated()
end
when 8036.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Noch 3 sind über.")
d.spawn_mob(8037, 432, 326)
d.check_eliminated()
end
when 8037 kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Noch 2 sind über.")
d.spawn_mob(8038, 464, 293)
d.check_eliminated()
end
when 8038.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Noch 1 ist über.")
d.spawn_mob(8039, 464, 229)
d.check_eliminated()
end
when 8039.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt es geschafft.")
timer("spawn", 6)
end
when spawn.timer begin
chat("Weiter geht´s,geht zum Fuss des Berges da wartet der Historiker am Eingang zur Kammer")
d.spawn_mob(33002, 467, 179)
end
when 33002.chat."Kammer des Schreckens" begin
if pc.get_level() < 100 then
say("Entschuldige aber du musst erst Level 100 erreichen.")
else
say("Hallo "..pc.get_name().." ")
say("Ich bin der Wächter")
say("Der Kammer des Schreckens!")
say("Verwunderlich das du es bis hier her.")
say("geschafft hast soll ich sie,")
say("für dich öffnen")
local wahl = select("Ja", "Nein")
if wahl == 1 then
say("Ich breche das Siegel auf für euch")
say("Ehm ich bin dann mal ,Viel Glück!")
wait()
npc.purge()
d.spawn_mob(3191, 475, 181)
d.notice("Polyphemos hat das Tor passiert.")
elseif wahl == 2 then
return
end
end
end
when 3191.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt Polyphemos getötet.")
d.notice("Herzlichen Glückwunsch")
chat("Euch erwarten noch weitere 5 Prüfungen bis ihr zum Goldenen Schmied gelangt.")
d.check_eliminated()
timer("spawn1", 7)
end
when spawn1.timer begin
d.notice("Rakshasa hat das Tor passiert.")
d.spawn_mob(3290, 475, 181)
end
when 3290.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr Rakshasa getötet.")
d.notice("Herzlichen Glückwunsch")
chat("Euch erwarten noch weitere 4 Prüfungen bis ihr zum Goldenen Schmied gelangt.")
d.check_eliminated()
timer("spawn2", 7)
end
when spawn2.timer begin
d.notice("General Kappa hat das Tor passiert.")
d.spawn_mob(3490, 475, 181)
end
when 3490.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt General Kappa getötet.")
d.notice("Herzlichen Glückwunsch")
chat("Euch erwarten noch weitere 3 Prüfungen bis ihr zum Goldenen Schmied gelangt.")
d.check_eliminated()
timer("spawn3", 7)
end
when spawn3.timer begin
d.notice("Königskrabbe hat das Tor passiert.")
d.spawn_mob(3691, 475, 181)
end
when 3691.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt die Königskrabbe getötet.")
d.notice("Herzlichen Glückwunsch")
chat("Euch erwarten noch weitere 2 Prüfungen bis ihr zum Goldenen Schmied gelangt.")
d.check_eliminated()
timer("spawn4", 7)
end
when spawn4.timer begin
d.notice(" Weidenmann hat das Tor passiert.")
d.spawn_mob(3901, 475, 181)
end
when 3901.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt Weidenmann getötet.")
d.notice("Herzlichen Glückwunsch")
chat("Euch erwartet 1 weitere Prüfung bis ihr zum Goldenen Schmied gelangt.")
d.check_eliminated()
timer("spawn5", 7)
end
when spawn5.timer begin
d.notice(" King Wobba hat das Tor passiert.")
d.spawn_mob(3791, 475, 181)
end
when 3791.kill with pc.in_dungeon() and pc.get_map_index() >= 1030000 and pc.get_map_index() < 1040000 begin
d.notice("Ihr habt King Wobba bezwungen!")
d.notice("Als Dank dürft ihr beim Goldenen Schmied uppen.")
d.notice("Ihr werdet in 60 sekunden rausteleportiert")
notice_all(pc.get_name().." hat die Kammer des Schreckens bezwungen.")
d.check_eliminated()
d.spawn_mob(20383, 467, 179)
pc.setqf("time",get_global_time())
timer("exit", 60)
end
when exit.timer begin
npc.purge(20383)
d.exit_all_to_start_position()
end
end
end
quest guild_war_bet begin
state start begin
when guild_war_observer1.chat.gameforge.guild_war_bet._10_npcChat or guild_war_observer2.chat.gameforge.guild_war_bet._10_npcChat or guild_war_observer3.chat.gameforge.guild_war_bet._10_npcChat begin
local info_counter = pc.getqf("info")
if info_counter < 3 then
say_title(gameforge.guild_war_bet._20_sayTitle)
say(gameforge.guild_war_bet._30_say)
wait()
end
local g = guild.get_reserve_war_table()
local gname_table = {}
table.foreachi(g,
function(n, p)
gname_table[n] = guild.get_name(p[2])..gameforge.guild_war_bet._35_table..guild.get_name(p[3])
end)
if table.getn(g) == 0 then
say_title(gameforge.guild_war_bet._40_sayTitle)
say(gameforge.guild_war_bet._50_say)
else
gname_table[table.getn(g)+1] = gameforge.locale.cancel
say_title(gameforge.guild_war_bet._40_sayTitle)
say(gameforge.guild_war_bet._60_say)
local s = select_table(gname_table)
if s != table.getn(gname_table) then
if guild.is_bet(g[s][1]) then
say_title(gameforge.guild_war_bet._40_sayTitle)
say(gameforge.guild_war_bet._70_say)
else
local name1 = guild.get_name(g[s][2])
local name2 = guild.get_name(g[s][3])
say_title(gameforge.guild_war_bet._40_sayTitle)
say(string.format(gameforge.guild_war_bet._80_say, name1.." "..name2..gameforge.guild_war_bet._45_say..g[s][4]))
local guild_s = select(name1, name1)
if guild_s != 3 then
local bet_guild = g[s][guild_s+1]
say_title(gameforge.guild_war_bet._90_sayTitle)
say(gameforge.locale.guild.war_bet_price)
local price_button_table = {}
table.foreachi(guild_war_bet_price_table,
function(n, p)
price_button_table[n] = p..gameforge.locale.gold
end)
price_button_table[table.getn(price_button_table)+1] = gameforge.locale.cancel
local price_idx = select_table(price_button_table)
if price_idx != table.getn(price_button_table) then -- ? ??? ?? ??? ???
if pc.gold < guild_war_bet_price_table[price_idx] then
say_title(gameforge.guild_war_bet._40_sayTitle)
say(gameforge.guild_war_bet._100_say)
else
say_title(gameforge.guild_war_bet._40_sayTitle)
pc.changegold(-guild_war_bet_price_table[price_idx])
guild.war_bet(g[s][1], bet_guild, guild_war_bet_price_table[price_idx])
say(gameforge.guild_war_bet._110_say)
end
end
end -- if guild_s != 3
end -- if guild.is_bet(g[s][1])
end -- if s != table.getn(gname_table)
end
end
end
end
quest guild_war_join begin
state start begin
when letter with ( pc.get_map_index() != 71 and pc.get_map_index() != 104 and pc.get_map_index() != 72 and pc.get_map_index() != 73 and pc.get_map_index() != 208) and pc.get_map_index() <= 200 begin
local e = guild.get_any_war()
if e != 0 and pc.get_war_map() == 0 then
setskin(NOWINDOW)
makequestbutton(gameforge.locale.guild.war_join_request)
end
end
when button with ( pc.get_map_index() != 71 and pc.get_map_index() != 104 and pc.get_map_index() != 72 and pc.get_map_index() != 73 and pc.get_map_index() != 208) and pc.get_map_index() <= 200 begin
local e = guild.get_any_war()
if e == 0 then
say(gameforge.locale.guild.war_over)
else
say(string.format(gameforge.guild_war_join._10_say, guild.name(e)))
local s = select(gameforge.locale.guild.yes, gameforge.locale.guild.no)
if s == 1 then
guild.war_enter(e)
else
setskin(NOWINDOW)
makequestbutton(gameforge.locale.guild.war_join_request)
end
end
end
end
end
quest guild_war_observer begin
state start begin
when guild_war_observer1.chat.locale.guild.war_list_button begin
local g = guild.get_warp_war_list() -- return format {{1,2}, {3,4}}
local gname_table = {}
table.foreachi(g,
function(n, p)
gname_table[n] = guild.get_name(p[1]).." vs "..guild.get_name(p[2])
end)
if table.getn(g) == 0 then
say(locale.guild.war_list_none)
else
gname_table[table.getn(g)+1] = locale.confirm
say(locale.guild.war_list_choose)
local s = select_table(gname_table)
if s != table.getn(gname_table) then
pc.warp_to_guild_war_observer_position(g[s][1], g[s][2])
end
end
end
when guild_war_observer2.chat.locale.guild.war_list_button begin
local g = guild.get_warp_war_list() -- return format {{1,2}, {3,4}}
local gname_table = {}
table.foreachi(g,
function(n, p)
gname_table[n] = guild.get_name(p[1]).." vs "..guild.get_name(p[2])
end)
if table.getn(g) == 0 then
say(locale.guild.war_list_none)
else
gname_table[table.getn(g)+1] = locale.confirm
say(locale.guild.war_list_choose)
local s = select_table(gname_table)
if s != table.getn(gname_table) then
pc.warp_to_guild_war_observer_position(g[s][1], g[s][2])
end
end
end
when guild_war_observer3.chat.locale.guild.war_list_button begin
local g = guild.get_warp_war_list() -- return format {{1,2}, {3,4}}
local gname_table = {}
table.foreachi(g,
function(n, p)
gname_table[n] = guild.get_name(p[1]).." vs "..guild.get_name(p[2])
end)
if table.getn(g) == 0 then
say(locale.guild.war_list_none)
else
gname_table[table.getn(g)+1] = locale.confirm
say(locale.guild.war_list_choose)
local s = select_table(gname_table)
if s != table.getn(gname_table) then
pc.warp_to_guild_war_observer_position(g[s][1], g[s][2])
end
end
end
end
end
quest rotamt2servisyuzugu begin
state start begin
when 70007.use begin
say_reward(“ RotaMT2 Servis Yüzüğüne Hoşgeldin "..pc.get_name()" ; ”)
say_title(" Anlaşılan birşeylere acil olarak ihtiyacın var ! "
say("Unutmadan ;")
say(""..pc.get_name()", Yuzugu Tekrar Servis NPC'sinden Alabilirsin..")
Local secim = select(“Yeşil İksir [K]”,“Mor İksir [K]”,“Kritik Isabet ve Delici Isabet”,“Metin Dedektörü”,“Ejderha Tanrısının Malzemeleri”,“Hiçbiri”)
İf secim == 1 then
say(" Anlaşılan Yeşil İksir'e ihtiyacın var.. ")
say" Sıkma canını.. ")
say(" 20Adet işine yarar umarım ")
say(" Al bakalım, elimde sadece küçükleri var! ")
pc.give_item2("27110", 20)
Elseif secim == 2 then
say(" Anlaşılan Mor İksir'e ihtiyacın var.. ")
say(" Sıkma canını.. ")
say(" 20Adet işine yarar umarım ")
say(" Al bakalım, elimde sadece küçükleri var! ")
pc.give_item2("27113", 20)
Elseif secim == 3 then
say(" Anlaşılan Kritik Isabet ve Delici Isabet'e ihtiyacın var.. ")
say(" Sıkma canını.. ")
say(" Ikısınden de 5Adet işine yarar umarım ")
say(" Al bakalım! ")
pc.give_item2("71044", 5)
pc.give_item2("71045", 5)
Elseif secim == 4 then
say(" Anlaşılan Metin Dedektörü'ne ihtiyacın var.. ")
say(" Sıkma canını.. ")
say(" 6Adet işine yarar umarım ")
say(" Al bakalım! ")
pc.give_item2("27989", 1)
Elseif secim == 5 then
say(" Anlaşılan Ejderha Tanrısının Malzemeleri'ne ihtiyacın var.. ")
say(" Sıkma canını.. ")
say(" Dördünden de 10Adet işine yarar umarım ")
say(" Al bakalım! ")
pc.give_item2("72031", 1)
pc.give_item2("72034", 1)
pc.give_item2("72037", 1)
pc.give_item2("72040", 1)
Elseif secim == 6 then
Return
End
End
End
If you can speak english, than do it please.Quote:
Beschädigte sorry für die deutschen,
Ich habe mein Spiel ein ring, den Sie hinzufügen möchten eine Aufgabe. Ring my code "70007". Ich schrieb diese Aufgabe. Putty " ee hongkong_list" fügte ich hinzu. "./qc rotamt2servis.quest" wenn ich den Befehl in ein Foto bekomme ich die Fehlermeldung. Filezilladan findet in der "/usr/Spiel/share/locale/de/quest" und die Datei-Rechte "777".
Vielen Dank Freunde.
Warten auf Eure Hilfe :)
quest rotamt2servisyuzugu begin
state start begin
when 70007.use begin
say_reward("RotaMT2 Servis Yüzügüne Hosgeldin "..pc.get_name().."; ")
say_title("Anlasilan birseylere acil olarak ihtiyacin var ! ")
say("Unutmadan ;")
say(pc.get_name()..", Yuzugu Tekrar Servis NPC'sinden Alabilirsin..")
local secim = select("Yesil Iksir (K)", "Mor Iksir (K)", "Kritik Isabet ve Delici Isabet", "Metin Dedektörü", "Ejderha Tanrisinin Malzemeleri", "Hiçbiri")
if secim == 1 then
say(" Anlasilan Yesil Iksir'e ihtiyacin var.. ")
say" Sikma canini.. ")
say(" 20Adet isine yarar umarim ")
say(" Al bakalim, elimde sadece küçükleri var! ")
pc.give_item2(27110, 20)
elseif secim == 2 then
say(" Anlasilan Mor Iksir'e ihtiyacin var.. ")
say(" Sikma canini.. ")
say(" 20Adet isine yarar umarim ")
say(" Al bakalim, elimde sadece küçükleri var! ")
pc.give_item2(27113, 20)
elseif secim == 3 then
say(" Anlasilan Kritik Isabet ve Delici Isabet'e ihtiyacin var.. ")
say(" Sikma canini.. ")
say(" Ikisinden de 5Adet isine yarar umarim ")
say(" Al bakalim! ")
pc.give_item2(71044, 5)
pc.give_item2(71045, 5)
elseif secim == 4 then
say(" Anlasilan Metin Dedektörü'ne ihtiyacin var.. ")
say(" Sikma canini.. ")
say(" 6Adet isine yarar umarim ")
say(" Al bakalim! ")
pc.give_item2(27989, 1)
elseif secim == 5 then
say(" Anlasilan Ejderha Tanrisinin Malzemeleri'ne ihtiyacin var.. ")
say(" Sikma canini.. ")
say(" Dördünden de 10Adet isine yarar umarim ")
say(" Al bakalim! ")
pc.give_item2(72031, 1)
pc.give_item2(72034, 1)
pc.give_item2(72037, 1)
pc.give_item2(72040, 1)
elseif secim == 6 then
return
end
end
end
end
Brauch immernoch hilfe :/ NICHT für die neue GAMEQuote:
Die Tiere werden nicht gerufen ://PHP Code:quest haustiere begin
state start begin
-- Setzt den neuen Petnamen in die Datenbank ein
function set_pet_name(name)
mysql_query("DELETE FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
mysql_query("INSERT INTO player.pet_name(id, name) VALUES(\\'"..pc.get_player_id().."\\', \\'"..name.."\\')")
end
-- Holt sich den Petnamen aus der Datenbank
function get_pet_name()
local pet_name = mysql_query("SELECT * FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
return (pet_name.name or {pc.get_name().."'s Haustier"})[1]
end
-- Feuer-Phönix
when 53001.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(22)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Rentierjunges
when 53002.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(24)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Eis-Phönix
when 53003.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(23)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Azrael
when 53005.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(25)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Wolfs
when 53006.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(26)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Löwen
when 53007.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(27)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Keiler
when 53008.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(28)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Tiger
when 53009.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(29)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Baby-Eisbär
when 53014.use begin
if pet.is_summon() then
pet.unsummon()
chat("Dein Haustier verabschiedet sich nun von dir!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
else
local old_level = horse.get_level()
local old_name = horse.get_name()
horse.set_level(30)
horse.set_name(haustiere.get_pet_name())
pet.summon()
chat("Dein Pet bringt dir: 100 Angriffswert, 100 Verteidigung und 1000 TP!")
horse.set_level(old_level)
horse.set_name(old_name)
affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*60*8)
affect.add_collect(apply.MAX_HP, 1000, 60*60*8)
end
end
-- Namenskette - Namensändung des Haustiers
when 71110.use begin
say_title("Namenskette :")
say("")
say("Hier kannst du deinem Haustier einen neuen")
say("Namen geben. Damit kannst du dein Haustier")
say("über alle anderen hervorheben.")
say("")
akna = haustiere.get_pet_name()
if string.len(akna) == 0 then
say_reward("Dein Haustier besitzt bis jetzt keinen Namen.")
else
say_reward("Der aktuelle Name deines Haustieres lautet: "..akna)
end
say("")
say("Möchtest du fortfahren?")
say("")
local s=select("Umbenennen", "Abbrechen")
if s==2 then
return
end
say_title("Namenskette :")
say("")
say("Bitte gib hier den neuen Namen deines")
say("Haustieres ein.")
local x = input()
if string.len(x) < 2 then
say_title("Namenskette :")
say("Der eingegeben Name ist zu kurz.")
say("")
say_reward("Der neue Name muss aus")
say_reward("mind. 2 Zeichen bestehen.")
say("")
return
elseif string.len(x) > 12 then
say_title("Namenskette :")
say("Der eingegeben Name ist zu lang.")
say("")
say_reward("Der neue Name darf max.")
say_reward("aus 12 Zeichen bestehen.")
say("")
return
end
haustiere.set_pet_name(x)
chat("Haustier erfolgreich umbenannt")
pc.remove_item(71110, 1)
end
end
end
----------------------------------------------
-- Jage Wildhunde!
-- Made with 1337_Noizes Jagdquestmaker
----------------------------------------------
quest hunt_wilddogslv1 begin
state start begin
when login with pc.level >= 1 begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Jage Wildhunde!")
end
when info or button begin
say("Jage Wildhunde!")
say("Du tapferer Krieger,")
say("jage mir ein paar Wildhunde und du wirst große Belohnungen")
say("bekommen.")
say_reward("Jage 3 Wildhunde.")
say("")
pc.setqf("state", 3)
q.set_counter("Wildhund", 3)
end
when 101.kill begin
local item_vnum = 11205 --Mönchsplattenpanzer +5
if pc.get_job() == 1 then
item_vnum = 11405 --Azuranzug+5
elseif pc.get_job() == 2 then
item_vnum = 11605 --Requiem-Plattenpanzer+5
elseif pc.get_job() == 3 then
item_vnum = 11805 --Purpurkleidung+5
end
local count = pc.getqf("state") - 1
if count <= 3 then
pc.setqf("state", count)
q.set_counter("Wildhund", count)
end
if count == 0 then
say_title("Jage Wildhunde!")
say("Du hast die Quest erfolgreich abgeschlossen!")
say("Du erhälst:")
say_reward("Rüstung +5")
say_reward("Schlachtschild +0")
pc.give_item2(item_vnum)
pc.give_item2(13000, 1)
clear_letter()
set_state(__COMPLETE__)
end
end
end
state __COMPLETE__ begin
end
end