Jump to content

what this function do?


Go to solution Solved by Den,

Recommended Posts

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

  • 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

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

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

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 shocked@@ 20 quest will change with this wrong information but thx

Link to comment
Share on other sites

  • Solution
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 shocked@@ 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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 60

      Inbuild GR2 Animation

    2. 2

      wait() function bug

    3. 0

      Remove Party Role Bonuses

    4. 1

      Fix CBar3D

    5. 2

      set_quest_state not working

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.