party warp

05/21/2014 19:36 Burbank#1
Hello, I'm looking for function which warps all members in a party.Do you know how to warp all members in a party to an other map?Could you help me please?Thx
05/21/2014 21:29 .Colossus.#2
Quote:
d.new_jump_party
dunno if it works with 34k or below
would be nice if u post a feedback

btw:
both maps need to be on same core
05/22/2014 15:07 Burbank#3
I tried it but without any success.Anyone with other idea please?
05/22/2014 17:02 .Colossus.#4
Quote:
Originally Posted by Burbank View Post
I tried it but without any success.Anyone with other idea please?
which game do you use?
05/22/2014 17:16 .HC'Destrox#5
Well maybe you should give him also the syntax of this function and say, that this function creates a new dungeon (they are on a "own" map then).
Syntax: d.new_jump_party(mapIndex, x, y)
if in your syserr is no error comming, the function exists and should work.

Kind Regards
05/22/2014 17:45 Burbank#6
I wanna make devil's catacomb for party (When a leader of group warps to catacomb then members of group warp to him ) but when I use functions like d.new_jump, d.join, etc. then devil's catacomb don't work.

My quest:

PHP Code:
quest devilscave begin
    state start begin
--Konfiguration   
        when 20351.chat
."DC Configuration!" with game.get_event_flag("block_dc_config") == and pc.is_gm begin
            game
.set_event_flag("dc_is_ok",1)
            
game.set_event_flag("block_dc_config",1)
            
game.set_event_flag("dc_versuche",1)
        
end  
        when 20351.chat
." Katakomby " with game.get_event_flag("dc_is_ok") == and pc.getqf("can_in_dc") == 0 begin
            
if pc.get_level() < 120 then 
                say_title
(" Do katakomb ")
                
say("")
                
say_reward(" Je mi líto, ale tato oblast je pro tebe příliš nebezpečná. ")
                
say("")
            
end
            
if party.is_party() then
                
if party.is_leader() then
                    say
(" Vidím, že jste opravdu odvážní a nebojácní. ")
                    
say(" V Katakombách to není nic jednoduchého a nemusíte ")
                    
say(" se už vrátit. Chcete i přes toto riziko vstoupit? ")
                    
pc.setqf("Ebene"1)
                    
local dc_login select(" Vstoupit "" Zpět ")
                    if 
dc_login == 1 then
                        pc
.warp(4152004209200)
WARP PARTY FUNCTION
                    elseif 
dc_login == 2 then
                        
return
                    
end
                
else
                    
say(" Pouze vůdce skupiny může zahájit teleport do Katakomb. ")
                
end
            
else
                
say(" Bez skupiny to nepůjde. ")
            
end
        end            
--Ebene 1        

        
        when login with pc
.get_map_index() == 76 begin
            game
.set_event_flag(("dcgamer"), game.get_event_flag("dcgamer")+1)
            
game.set_event_flag(("dc_versuche"), game.get_event_flag("dc_versuche")+1)
            if 
pc.getqf("Ebene") == 1 then
                say_title
("Katakomby"
                
say(" Pro vstup do dalšího patra potřebujete "
                
say_item("Klíč krystalu duše"30311"") --Die "--" vor say_item entfernen wenn beim Login text das Item als Bild angezeigt werden soll das man braucht 
                say
(" Na celé katakomby máte 90 minut! "
                
say(""
                
say_reward(" Hodně štěstí! "
                
say("")
                
timer("dc10"600)
                
pc.setqf("sksgedroppt"0)
            else
                
warp_all_to_village()
            
end
        end
        
        when login with pc
.get_map_index() == 76 begin
            
if party.is_party() then
            
else
                
warp_all_to_villagepc.get_map_index() , )
            
end
        end
        
        when kill with not npc
.is_pc() and pc.get_map_index() == 76 begin 
            local sks 
number(1,15)
            if 
sks==and pc.getqf("sksgedroppt")==0 then
                pc
.setqf("sksgedroppt"1)
                
chat(" Seber klíč krystalu duše, který Ti vypadl a přesuň ho na sochu kud! "
                
game.drop_item(303111)
            else
                
chat(" Toto monstrum nemá klíč krystalu duše. "
            
end
        end
        when 30101.take with item
.vnum == 30311 begin
            chat
(" Budete teleportováni do 2. patra! ")
            
pc.remove_item("30311")
            
d.new_jump_all(76463242082)
            
d.regen_file("data/dungeon/devilcave/dc_regen_ebene2.txt")
            
d.regen_file("data/dungeon/devilcave/dc_regen_tore_unten.txt")
            
d.regen_file("data/dungeon/devilcave/dc_regen_tore_left.txt")
            
d.spawn_mob(30103741221)
            
d.setf("Ebene"2)
        
end    
        
        when login with pc
.in_dungeon() begin
            
if d.getf("Ebene") == 2 then
            chat
(" Nacházíte se ve 2. patře. Najdite teleportační kámen. ")
            
chat(" Máte na to 10 minut.")
            
timer("dc1"600)
        
end
            
if d.getf("Ebene") == 3 then
            chat
(" Najdite a zničte správný metin! ")
            
chat(" Máte na to 20 minut. ")
            
timer("dc2"1200)
        
end
            
if d.getf("Ebene") == 4 then
            chat
(" Najdite správnou cestu z labiryntu a najdite památník, ")
            
chat(" který vás teleportuje do dalšího patra. ")
            
chat(" Máš na to 15 minut. ")
            
timer("dc3"900)
            
d.spawn_mob(30104500800)
            
d.spawn_mob(10800328779)
            
d.spawn_mob(1080170672)
            
d.spawn_mob(10802142865)
            
d.spawn_mob(10803433935)
            
d.spawn_mob(10804243854)
            
d.spawn_mob(10805182667)
        
end
            
if d.getf("Ebene") == 5 then
            chat
(" Musíte najít a zabít Tartarose, který se na tého mapě nachází pouze "
            
chat(" jeden, ze kterého vám padne Šklebící se totem a ten musíte odevzdat obelisku. ")
            
chat(" Máš na to 15 minut. "
            
timer("dc4"900)
            
d.spawn_mob(30104500800)
        
end
            
if d.getf("Ebene") == 6 then
            chat
(" Musíte najít a zabít Charona! ")
            
chat(" Máte na to 15 minut! ")
            
timer("dc5"900)
            
d.spawn_mob(30104500800)
        
end
            
if d.getf("Ebene") == 7 then
            chat
(" Nejprve zabijte všechny příšery nacházející se v místnosti. ")
            
chat(" Následně zabijte samotného Azraela. ")
            
chat(" Máte na to 15 minut! "
            
timer("dc6"900)
            
d.spawn_mob(30104500800)
        
end
        end
        
        
        when dc1
.timer begin
            chat
(" Čas vypršel, budete teleportováni pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end     


        when dc10
.timer begin
            chat
(" Zbývá vám 80 minut k nalezení a zabití Azraela! ")
            
timer("dc20"600)
        
end
        
        when dc20
.timer begin
            chat
(" Zbývá vám 70 minut! ")
            
timer("dc30"600)
        
end    
        when dc30
.timer begin
            chat
(" Zbývá vám 60 minut! ")
            
timer("dc40"600)
        
end        
        when dc40
.timer begin
            chat
(" Zbývá vám 50 minut! ")
            
timer("dc50"600)
        
end        
        when dc50
.timer begin
            chat
(" Zbývá vám 40 minut! ")
            
timer("dc60"600)
        
end        
        when dc60
.timer begin
            chat
(" Zbývá vám 30 minut! ")
            
timer("dc70"600)
        
end        
        when dc70
.timer begin
            chat
(" Zbývá vám 20 minut! ")
            
timer("dc80"600)
        
end        
        when dc80
.timer begin
            chat
(" Zbývá vám 10 minut! ")
            
timer("dc110"600)
        
end
        when dc110
.timer begin
            chat
(" Čas vypršel, budete teleportováni pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end                     
--Ebene 2
        when 30103.chat
." Do 3. patra " begin
            npc
.purge()
            
say_reward(" Teleport ")
            
say(" Vidím, že jste to zvládli a jste na živu. ")
            
say(" Teleportuji vás do dalšího patra. ")
            
wait()
            
d.new_jump_all(76542742282)
            
d.setf("Ebene"3)
            
d.regen_file("data/dungeon/devilcave/dc_regen_ebene3.txt")
            
local metindv number(1,4)
            if 
metindv==1 then
                d
.spawn_mob(80291351348)
                
d.spawn_mob(80291148350)
                
d.spawn_mob(80291151155)
                
d.spawn_mob(80281351149)
            
end
            
if metindv==2 then
                d
.spawn_mob(80291351348)
                
d.spawn_mob(80291148350)
                
d.spawn_mob(80281151155)
                
d.spawn_mob(80291351149)
            
end
            
if metindv==3 then
                d
.spawn_mob(80291351348)
                
d.spawn_mob(80281148350)
                
d.spawn_mob(80291151155)
                
d.spawn_mob(80291351149)
            
end
            
if metindv==4 then
                d
.spawn_mob(80281351348)
                
d.spawn_mob(80291148350)
                
d.spawn_mob(80291151155)
                
d.spawn_mob(80291351149
            
end
        
        end
        
        when 8029.kill with pc
.in_dungeon() begin
            chat
(" Zničili jste špatný metin! ")
        
end
        when 8028.kill with pc
.in_dungeon() begin
            chat
(" Zničili jste správný metin! ")
            
chat(" Budete teleportováni do dalšího patra! ")
            
timer("devils_catacomb_goto_ebene4"2)
        
end    
        when dc2
.timer begin
            chat
(" Čas vypršel, budete teleportováni pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end    

        
--Ebene 4 (Labyrinth)
        
when devils_catacomb_goto_ebene4.timer begin
            d
.new_jump_all(76414342657)
            
d.setf("Ebene"4)
        
end
        
        when 30104.chat
." Psaní " with pc.in_dungeon() begin
            say_title
(" Psaní ")
            
timer("dc3"6000)
            
chat(" Našli jste správnou cestu, teleportuji vás. ")
            
timer("devils_catacomb_goto_ebene5"5)
        
end
        when dc3
.timer begin
            chat
(" Čas vypršel, butete teleportování pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end    
--Ebene 6 (Tartaros)
        
when devils_catacomb_goto_ebene5.timer begin
            d
.new_jump_all(76491742925)
            
d.spawn_mob(30102848739)
            
d.setf("Ebene"5)
            
d.regen_file("data/dungeon/devilcave/dc_regen_ebene5.txt")
            
local tartaros number(1,4)
            if 
tartaros==1 then
                d
.spawn_mob(2593991848)
            
end
            
if tartaros==2 then
                d
.spawn_mob(2593999652)
            
end
            
if tartaros==3 then
                d
.spawn_mob(2593848577)
            
end
            
if tartaros==4 then
                d
.spawn_mob(2593703644)
            
end
            
if tartaros==5 then
                d
.spawn_mob(2593692817)
            
end
        end        
        
        when 2593.kill with pc
.in_dungeon() begin
            chat
(" Tartatos byl zabit.Doneste totem k obelisku. ")
            
game.drop_item(303121)
        
end    
        when 30102.take with item
.vnum == 30312 begin
            timer
("dc4"6000)
            
item.remove()
            
npc.purge()
            
say_reward("...")
            
chat(" Budete teleportování do dalšího patra! ")
            
timer("devils_catacomb_goto_ebene6"5)
        
end
        when dc4
.timer begin
            chat
(" Čas vypršel, budete teleportování pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end    
--Ebene 7 (Charon)
        
when devils_catacomb_goto_ebene6.timer begin
            d
.new_jump_all(76542242782)
            
d.setf("Ebene"6)
            
d.regen_file("data/dungeon/devilcave/dc_regen_ebene6.txt")
        
end
        
        when 2597.kill with pc
.in_dungeon() begin
            timer
("dc5"6000)
            
d.kill_all()
            
chat(" Podařilo se vm zabít Charona, přesunu vás do dalšího patra! ")
            
timer("devils_catacomb_goto_ebene7"10)
        
end
        when dc5
.timer begin
            chat
(" Čas vypršel, budete teleportování pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
        
end    
--Ebene 8 (Azrael)
        
when devils_catacomb_goto_ebene7.timer begin
             d
.new_jump_all(76414743191)
            
d.setf("Ebene"7)
            
d.regen_file("data/dungeon/devilcave/dc_regen_ebene7.txt")
        
end
    
        when 2598.kill with pc
.in_dungeon() begin
            game
.set_event_flag(("dc_geschaft"), game.get_event_flag("dc_geschaft")+1)
            
local level pc.get_level()            
            
chat(" Podařilo se vám porazit krále pekla Azraela.Čeká vás bohatá odměna! ")
            
chat(" Za 3 minuty budou všichni teleportování pryč. ")
            
d.kill_all()
            
d.kill_all()
            
notice_all(" Skupina hráče "..pc.get_name().." zabila Azraela! ")
            
timer("goout_from_dc"180)
            
d.spawn_mob(9012741159)    
        
end
        
        when dc6
.timer begin
            chat
(" Čas vypršel, budete teleportování pryč! ")
            
warp_all_to_villagepc.get_map_index() , )
            
end
        when goout_from_dc
.timer begin
            warp_all_to_village
pc.get_map_index() , )
            
end
    end
end 
05/22/2014 18:05 .Colossus.#7
You must replace
Quote:
d.new_jump_all(76, 4632, 42082)
with
Quote:
d.new_jump_party(76, 4632, 42082)
and can you tell me which game do you use?
05/22/2014 19:17 Burbank#8
d.new_jump_party doesn't working.I'm using r2089M
05/22/2014 19:26 .Colossus.#9
Quote:
Originally Posted by Burbank View Post
d.new_jump_party doesn't working.I'm using r2089M
yep then u need 34k+
05/22/2014 20:04 Burbank#10
Is there another possibility?Could you write such the function?
05/23/2014 07:38 .HC'Destrox#11
No i don't think this is possible with only quest. You would've had to write a lib or dif but this would be an amazing expenditure for a "unnecessary" function - because it's already exists in newer game-cores.
Why you don't like to use the 34k? I don't think there are much changes that will change the game and create bugs or sth like this.

Kind Regards