Jump to content
UPDATE 2 - External pictures are being replaced... ×
×
×
  • Create New...
  • 0

what this function do?


Riner

Question

hello there 

Can anyone explain to me what this function do? or the job of this function

d.new_jump_all(mapindex, x, y) --some on tell me that teleport all player in the core (all of them? like all player in map a1 and map a2)

npc.get_vid

d.spawn_mob(I know its spawn but I should put it in quest kill? or login in dungeon)

d.regen_file -d.set_regen_file whats the different 

I know its a lot  but Im try to improve my self in quest-lua in metin 2 i try to understand from source but:wacko:

 

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0
16 minutes ago, Riner said:

so that true thx

do you know what this func do?

npc.get_vid

why you tell me this Im get [email protected]@ 20 quest will change with this wrong information but thx

The function will return virtual ID of npc. You can use this in some function that takes vid as an argument.

Quote

d.regen_file -d.set_regen_file whats the different 

d.regen_file() will spawn mobs only once, d.set_regen_file() will loop regen (mobs will be respawned like in normal maps).

 

  • Love 1
Link to comment
Share on other sites

  • 0
On 7/23/2017 at 6:03 PM, Dobrescu Sebastian said:

d.new_jump_all will teleport the leader and the members of a team. Just them. Special for dungeons.

 

so there is no function to teleport all people in the map to the dungeon?

 

Link to comment
Share on other sites

  • 0
  • Premium
5 hours ago, Riner said:

so there is no function to teleport all people in the map to the dungeon?

 

Nope :)

I will make you one.

quest event_warp begin
	state start begin
		when login begin
			loop_timer("event_check",60)
		end	
		
		when event_check.timer begin
			if game.get_event_flag("start_event") == 1 then
				pc . warp ( 1135100 , 1653000 )  
			end
		end		
	end
end

Write on chat /e start_event 1 and wait 60 seconds.

For close /e start_event 0

 

Change 

pc . warp ( 1135100 , 1653000 )   with d.new_jump_all() and see what happens.
Link to comment
Share on other sites

  • 0
2 hours ago, Riner said:

so there is no function to teleport all people in the map to the dungeon?

 

EDIT: I'm blind xD

EDIT2:

d.new_jump_party() will teleport only party.

d.new_jump_all() will teleport everyone on map.

Link to comment
Share on other sites

  • 0
1 hour ago, Dobrescu Sebastian said:

Nope :)

I will make you one.

quest event_warp begin
	state start begin
		when login begin
			loop_timer("event_check",60)
		end	
		
		when event_check.timer begin
			if game.get_event_flag("start_event") == 1 then
				pc . warp ( 1135100 , 1653000 )  
			end
		end		
	end
end

Write on chat /e start_event 1 and wait 60 seconds.

For close /e start_event 0

 

Change 

pc . warp ( 1135100 , 1653000 )   with d jump or d jump all and see what happens.

I know there is quest like this and thx for it but I need to teleport all people in the map to dungeon

and no body can meet the first people that already going to dungeon

there is any way to do this?

Link to comment
Share on other sites

  • 0
2 minutes ago, Riner said:

I know there is quest like this and thx for it but I need to teleport all people in the map to dungeon

and no body can meet the first people that already going to dungeon

there is any way to do this?

I've edited the post above with the explanation of the functions. Do you want teleport them to the private dungeon map (10000+) or global map?

  • Love 1
Link to comment
Share on other sites

  • 0
2 minutes ago, Den said:

I've edited the post above with the explanation of the functions. Do you want teleport them to the private dungeon map (10000+) or global map?

Do you want teleport them to the private dungeon map?

yeah I need to teleport them for private dungeon map

Link to comment
Share on other sites

  • 0
Just now, Riner said:

Do you want teleport them to the private dungeon map?

yeah I need to teleport them for private dungeon map

So use d.new_jump_all(), it will create a new private map and teleport everyone like deviltower dungeon.

  • Love 1
Link to comment
Share on other sites

  • 0
Just now, Den said:

So use d.new_jump_all(), it will create a new private map and teleport everyone like deviltower dungeon.

so that true thx

do you know what this func do?

npc.get_vid
On 7/23/2017 at 6:03 PM, Dobrescu Sebastian said:

d.new_jump_all will teleport the leader and the members of a team. Just them. Special for dungeons.

 

why you tell me this Im get [email protected]@ 20 quest will change with this wrong information but thx

Link to comment
Share on other sites

  • 0
1 minute ago, Den said:

The function will return virtual ID of npc. You can use this in some function that takes vid as an argument.

 

 

like that allow you to make another thing to another people in game?

like teleport? but not you the another player?

Link to comment
Share on other sites

  • 0
1 hour ago, Riner said:

like that allow you to make another thing to another people in game?

like teleport? but not you the another player?

You can use it like that for example:

when 20019.chat."testing here" begin
	say("test")
	local npc_vid = npc.get_vid() --getting npc vid for the future use
	if npc_vid !=0 then
		target.vid("__TARGET__", npc_vid, "test_target") --targeting npc you've just talked to
	end
end

when __TARGET__.target.click begin
	say("test")
	target.delete("__TARGET__")
end

 

  • Love 1
Link to comment
Share on other sites

  • 0
  • Premium

Man you said " teleport all people "

all people means all server. I made your quest to be adapted for all server. I didn't knew you want just a simple teleport.

And yeah, my bad. d.new_jump_party is just for team. Never tested d.new_jump_all(), but i'm gonna do.

Link to comment
Share on other sites

  • 0
On 7/25/2017 at 7:07 PM, Den said:

You can use it like that for example:

when 20019.chat."testing here" begin
	say("test")
	local npc_vid = npc.get_vid() --getting npc vid for the future use
	if npc_vid !=0 then
		target.vid("__TARGET__", npc_vid, "test_target") --targeting npc you've just talked to
	end
end

when __TARGET__.target.click begin
	say("test")
	target.delete("__TARGET__")
end

 

so this is what the function do and i think its another think for kill:lol: 

On 7/25/2017 at 8:06 PM, Dobrescu Sebastian said:

Man you said " teleport all people "

all people means all server. I made your quest to be adapted for all server. I didn't knew you want just a simple teleport.

And yeah, my bad. d.new_jump_party is just for team. Never tested d.new_jump_all(), but i'm gonna do.

Im sure you are help full for me but i say teleport all player in core or in map i thing you misunderstand me but you also help me with the quest :)

thank you 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.