Register for your free account! | Forgot your password?

You last visited: Today at 14:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Dungeon scripten

Discussion on Dungeon scripten within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Dungeon scripten

Hallo liebe Community,

ich scripte derzeit ein Dungeon und, da es mein Erster ist, brauche ich eure Hilfe.

Ich bin auf der "Enter-Map" und warpe alle Spieler mit
Code:
d.new_jump_all(MAPINDEX, X, Y)
in den Dungeon.

1. Nun möchte ich, dass eine regen-File geladen wird und gewartet wird, bis alle Mobs tot sind. Wie kann ich das bewerkstelligen?
2. Wie kann ich noch einen Timer einbauen, der für alle User im aktuellen Dungeon gilt? Sprich: Wenn der abgelaufen ist, soll für jeden Spieler eine Questfunktion ausgeführt werden.

Vielen Dank für eure Hilfe!

MfG
Yiv is offline  
Old 01/05/2014, 04:18   #2
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
I suggest you look at deviltower_zone.quest there are examples of what you ask.
.Shōgun is offline  
Old 01/05/2014, 04:49   #3
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
I looked at this quest but have some problems.

What is the function of these functions?
Code:
d.new_jump_all(int map_index, int x, int y) | creating new dungeon and warp all player on map into it
d.regen_file(string path) | loading the regen file
d.set_warp_at_eliminate(?) | ?
d.check_eliminated(?) | ?
d.get_map_index() | returns the map_index of the dungeon (between map_index*10000 and (map_index+1)*10000)
d.set_unique(?) | ?
d.spawn_mob(int mob, int x, int y) | spawning mob at given position
d.setf(string flag, int i) | setting flag of dungeon
d.select(?) | ?
d.notice(string message) | gives out message for each player in dungeon
d.clear_regen(?) | ? (maybe clears regen file)
d.exit_all(?) | ? (maybe cancel dungeon - what happens to player?)
d.is_unique_dead(string unique) | check for dead of unique
d.getf(string flag) | returns value of flag
d.unique_get_hp_perc(string unique) | returns percent of hp of unique
d.purge_unique(string unique) | purges unique
d.purge(?) | ?
d.jump_all(int x, int y) | maybe jumps to position (without leaving dungeon)
d.kill_all(?) | ? (kill all what?)
All written by myself. Maybe there are missing some functions

Hope you can help me ...

Sorry for not so good english.

Regards
Yiv is offline  
Old 01/05/2014, 04:59   #4
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Since I don't feel like making a function guide at this hour I will answere your original questions...

d.check_eliminated()

This checks if all the mobs in the current regen are dead, if not it returns

The timer:

server_timer("mytimer", minutes, get_server_timer_arg())

when my_timer.server_timer begin
syschat("Booh!")
end
.Shōgun is offline  
Thanks
1 User
Old 01/05/2014, 05:11   #5
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Quote:
Originally Posted by .Shōgun View Post
Since I don't feel like making a function guide at this hour I will answere your original questions...

d.check_eliminated()

This checks if all the mobs in the current regen are dead, if not it returns

The timer:

server_timer("mytimer", minutes, get_server_timer_arg())

when my_timer.server_timer begin
syschat("Booh!")
end
Quote:
making a function guide
This was not my intention that you do a guide. I just wanted to tell what I found out already.

Thank you very much!

Regards

€dit: Just one last thing: What does
Code:
d.set_warp_at_eliminate
Yiv is offline  
Old 01/05/2014, 05:57   #6
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
Quote:
Originally Posted by DaJuBi View Post
This was not my intention that you do a guide. I just wanted to tell what I found out already.

Thank you very much!

Regards

€dit: Just one last thing: What does
Code:
d.set_warp_at_eliminate
Warps the players to a new location (and loads a regen file) when all the mobs of the current regen file are dead
.Shōgun is offline  
Reply


Similar Threads Similar Threads
[Help]Einen Dungeon scripten
01/31/2011 - Metin2 Private Server - 19 Replies
Also ich komm gleich mal zum Punkt. mit dem questbefehl d.new_jump_all(73, xxxx, xxxx) <-- kommen alle die sich auf der Map 73 befinden in einem Dungeon, also wird neuer Dungeon eröffnet. Funzt bestens! nun gibs noch d.new_jump(73, xxxx, xxxx) <-- Damit soll ein einzelner gamer, zu diesem neuen Dungeon gebracht werden. Und da hängst, es tut sich nix. Er tut nichts, weder ne Fehlermeldung noch sonstwas, dabei ist der Code komplett richtig, bzw. hof ich es doch. mfg Woody



All times are GMT +2. The time now is 14:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.