Céh háború

Indította gife974, 2017-07-20, 20:57:15

Sziasztok! Azt szeretném kérdezni, hogy valaki tudna küldeni egy eredeti/működő guild_war questet? Az eredeti kéne, ahol a sikeres birodalom +20% exp bónuszt kap. Előre is köszönöm!

Most teged a Ceh vagy Birodalmi war erdekel? Mivel guild_war az a ceh haborukkal foglalkozik
all failure is psychological other than death all failure is psychological

Bocsi, rosszul írtam. Birodalom háború érdekel, amikor számolja, hogy melyik birodalom ölte meg a legtöbbet, és amelyik nyer, az exp bónuszt kap.

Ezt probaltad?


quest forked_road begin
state start begin
when login with forked.isforkedmapindex( pc.get_map_index() ) == true begin
if game.get_event_flag("threeway_war") == 0 then
warp_to_village()
else
local noticeShow = false
if forked.is_registered_user() == false then
forked.register_user()
forked.setdeadcount()
pc.remove_item(50089)
noticeShow = true
end
if forked.getdeadcount() <= 0 then
warp_to_village()
elseif true == noticeShow then
if forked.issungzimapindex( pc.get_map_index() ) == true then
say( locale.forked_condition2 )
say( locale.NOTICE_COLOR..locale.forked_rule_sungzi )
else
say( locale.forked_condition )
say( locale.NOTICE_COLOR..locale.forked_rule )
say_item_vnum(50089)
end
end
end
end
when 11001.chat.locale.forked_man_chat or 11003.chat.locale.forked_man_chat or 11005.chat.locale.forked_man_chat begin
if game.get_event_flag("threeway_war") == 0 then
say(locale.forked_man_say_cant)
else
say(locale.forked_man_say)
local s = select(locale.forked_enter,locale.forked_no_enter)
if s == 1 then
local limit = math.min(game.get_event_flag("threeway_war_level"), 30)
if pc.get_level() < limit then
say("In order to join three way war, your level must be over "..limit.."")   
return
end
local canJoin = false
if (pc.getempire() == 1 and game.get_event_flag("threeway_war_open_gate1" ) != 0) or
(pc.getempire() == 2 and game.get_event_flag("threeway_war_open_gate2" ) != 0) or
(pc.getempire() == 3 and game.get_event_flag("threeway_war_open_gate3" ) != 0) then
canJoin = true
else
say( locale.forked_man_say_you_cant2 )
end
if true == canJoin then
pc.warp( forked.get_pass_start_pos() )
else
say("Nem tudsz csatlakozni miután szent föld kapuja megnyílt!")
say("Imádkozz hogy a mi királyságunk hódítsa meg a szent földet!")
end
end
end
end
when 1306.kill with forked.isforkedmapindex(pc.get_map_index()) == true begin
game.drop_item(50089, 1)
----"12345678901234567890123456789012345678901234567890"|
notice_in_map("Ne siess!")
notice_in_map("Amikor kinyitod az Ellopott Folyosói Pecsétet")
notice_in_map("a Bányászati engedéllyel ,Minden játékos")
notice_in_map("belép a harcmezőre.Várd meg harcos társaidat,")
notice_in_map("Mert ezután már senki nem juthat be a Szent földre.")
end
-- when kill with npc.is_pc() and npc.get_empire() != pc.get_empire() and forked.issungzimapindex(pc.get_map_index()) == true begin
-- if 0 == game.get_event_flag("threeway_war") then
-- return
-- end
-- local remainKillCount
-- if pc.get_empire()==1 then
-- remainKillCount = game.get_event_flag("threeway_war_kill_count1") - 1
-- game.set_event_flag("threeway_war_kill_count1", remainKillCount)
-- if remainKillCount >= 1 then
-- return
-- end
-- elseif pc.get_empire()==2 then
-- remainKillCount = game.get_event_flag("threeway_war_kill_count2") - 1
-- game.set_event_flag("threeway_war_kill_count2", remainKillCount)
-- if remainKillCount >= 1 then
-- return
-- end
-- elseif pc.get_empire()==3 then
-- remainKillCount = game.get_event_flag("threeway_war_kill_count3") - 1
-- game.set_event_flag("threeway_war_kill_count3", remainKillCount)
-- if remainKillCount >= 1 then
-- return
-- end
-- end
-- notice_all("killed: "..remainKillCount)
-- if remainKillCount >= 1 then
-- return
-- end
-- game.set_event_flag("threeway_war", 0)
-- local nation = { "Shinsoo","Chunjo","Jinno" }
-- notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
-- notice_all("A birodalmi csata győztese "..nation[pc.getempire()])
-- notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
-- warp_all_to_village(forked.getsungzimapindex(), 30)
-- warp_all_to_village(forked.getpassmapindexbyempire(1), 30)
-- warp_all_to_village(forked.getpassmapindexbyempire(2), 30)
-- warp_all_to_village(forked.getpassmapindexbyempire(3), 30)
-- end
when 1902.kill with forked.issungzimapindex(pc.get_map_index()) == true begin
            if 0 == game.get_event_flag("threeway_war") then
                return
            end

            local remainBossCount = game.get_event_flag("threeway_war_boss_count") - 1

            game.set_event_flag("threeway_war_boss_count", remainBossCount)

            if remainBossCount > 1 then
                return
end

            game.set_event_flag("threeway_war", 0)
            local nation = { "Shinsoo","Chunjo","Jinno" }
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
notice_all("A birodalmi csata győztese "..nation[pc.getempire()])
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")

            warp_all_to_village(forked.getsungzimapindex(), 30)
            warp_all_to_village(forked.getpassmapindexbyempire(1), 30)
            warp_all_to_village(forked.getpassmapindexbyempire(2), 30)
            warp_all_to_village(forked.getpassmapindexbyempire(3), 30)
        end
when 20081.take with item.vnum == 50089 begin
say_in_map(pc.get_map_index(), locale.forked_open_gate)
npc.purge()
item.remove()
forked.initkillcount()
if pc.getempire() == 1 then
game.set_event_flag("threeway_war_open_gate1", 0)
notice_all("A Shinsoo birodalom belépett a szent földre." )
elseif pc.getempire() == 2 then
game.set_event_flag("threeway_war_open_gate2", 0)
notice_all("A Chunjo birodalom belépett a szent földre." )
elseif pc.getempire() == 3 then
game.set_event_flag("threeway_war_open_gate3", 0)
notice_all("A Jinno birodalom belépett a szent földre." )
else
say(locale.forked_man_say_you_cant2 )
end
local x, y = forked.get_sungzi_start_pos()
forked.warp_all_in_map( pc.get_map_index(), forked.getsungzimapindex(), x, y, 10)
end
when 11001.chat."GM; Három Birodalom Harca" or 11003.chat."GM; Három Birodalom Harca" or 11005.chat."GM: Három Birodalom Harca" with pc.is_gm() begin
local pw = "miazpaw2"
say("Add meg a jelszót.")
local pass = input()
if pass != pw then
say("Rossz jelszó!")
return
end
local s = select( "A Birodalmi Csata Indítása" , "A Birodalmi Csata Befejezése" );
if s == 1 then
local killcount
while killcount == nil or killcount<3 or killcount>500 do
say_title("Hány pontig menjen a war?")
if killcount == nil  or killcount > 500 or killcount < 3 then
say_reward("Egy számot adj meg 3 és 500 között.")
else
say("")
end
killcount = tonumber(input(""))
end
say("Indulhat a háború "..killcount.." pontig?")
local mehete=select("Mehet", "Mégse")
if mehete==2 then
say("A háború lefújva.")
return
end
forked.purge_all_monsters()
forked.initforked()
game.set_event_flag("threeway_war", 1)
game.set_event_flag("threeway_war_dead_count", 25)    -- oÎE° °!´É 1ö
if true == is_test_server() then
game.set_event_flag("threeway_war_kill_count", 5)    -- PC ¸î ¸í Á×AI¸é 1oA§ ¸Ô?Š Aťśô1AA3 °ÍAΰ!
else
game.set_event_flag("threeway_war_kill_count1", killcount)
game.set_event_flag("threeway_war_kill_count2", killcount)
game.set_event_flag("threeway_war_kill_count3", killcount)
end
game.set_event_flag("threeway_war_open_gate1", 1)
game.set_event_flag("threeway_war_open_gate2", 1)
game.set_event_flag("threeway_war_open_gate3", 1)
say("Three way war has begun.")
say("")
wait()
regen_in_map( forked.getpassmapindexbyempire(1), forked.getpasspathbyempire(1) .."regen.txt" )
regen_in_map( forked.getpassmapindexbyempire(1), forked.getpasspathbyempire(1) .."npc.txt" )
regen_in_map( forked.getpassmapindexbyempire(2), forked.getpasspathbyempire(2) .."regen.txt" )
regen_in_map( forked.getpassmapindexbyempire(2), forked.getpasspathbyempire(2) .."npc.txt" )
regen_in_map( forked.getpassmapindexbyempire(3), forked.getpasspathbyempire(3) .."regen.txt" )
regen_in_map( forked.getpassmapindexbyempire(3), forked.getpasspathbyempire(3) .."npc.txt" )
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
notice_all("A Birodalmak Háborúja Elkezdődött!")
notice_all("Beszélj a Csatairányítóval, ha harcolni")
notice_all("szeretnél a birodalmadad dicsőségéért.")
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
elseif 2 == s then
game.set_event_flag("threeway_war", 0)
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
notice_all("A Birodalmi csata befejeződött")
notice_all("<~~~~~~~* FreeMetin2 *~~~~~~~>")
forked.purge_all_monsters()
warp_all_to_village(forked.getsungzimapindex(), 1)
warp_all_to_village(forked.getpassmapindexbyempire(1), 1)
warp_all_to_village(forked.getpassmapindexbyempire(2), 1)
warp_all_to_village(forked.getpassmapindexbyempire(3), 1)
end
end
end
end 


Forras: Forum kereso hasznos
all failure is psychological other than death all failure is psychological