Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 06:50

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

Advertisement



[help]how to use pc.is_dead()

Discussion on [help]how to use pc.is_dead() within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 8
Received Thanks: 23
[help]how to use pc.is_dead()

who can tell me how to active the code: pc.is_dead.
i made quest like this ,but don't work.
Code:
quest dead begin
    state start begin
		when kill begin
			if pc.is_dead() then
				chat("you dead!")
			end
        end
    end
end
cpsky is offline  
Thanks
2 Users
Old 08/24/2011, 17:13   #2
 
elite*gold: 110
Join Date: Oct 2009
Posts: 134
Received Thanks: 96
Quote:
when kill begin
kill what?

Quote:
when pc.get_hp() < 1 begin
game.drop_item(50076, 1)
end
[TM]SixSense is offline  
Old 08/24/2011, 17:27   #3
 
[SGA]Jango's Avatar
 
elite*gold: 3
Join Date: Oct 2010
Posts: 390
Received Thanks: 463
sicher das dat funzt ->
Code:
when pc.get_hp() < 1 begin
machs mit ner timer schleife dann funzt das!
[SGA]Jango is offline  
Old 08/24/2011, 17:28   #4
 
elite*gold: 0
Join Date: Mar 2009
Posts: 8
Received Thanks: 23
when pc.get_hp() < 1 begin
game.drop_item(50076, 1)
end

can it working?
cpsky is offline  
Old 08/24/2011, 17:31   #5
 
[SGA]Jango's Avatar
 
elite*gold: 3
Join Date: Oct 2010
Posts: 390
Received Thanks: 463
no! maybe on 2011 or so!
but on 2007 im testing it and it dosent worke
[SGA]Jango is offline  
Old 08/24/2011, 17:41   #6
 
elite*gold: 0
Join Date: Mar 2009
Posts: 8
Received Thanks: 23
is this code pc.is_dead() need run with timer to actve only?
i made this ,and it works.
Code:
quest siwang begin
    state start begin
	
		when login  begin
			timer('siwang1', 10)
		end
		
		when siwang1.timer begin 
				if pc.is_dead() == true then
					if pc.get_empire() == 1 then
						pc.warp(409600, 896000 )
					elseif pc.get_empire() == 2 then
						pc.warp(0, 102400 )
					else
						pc.warp(921600, 204800 )
					end
				end
			timer('siwang2', 10) 
		end 		

		when siwang2.timer begin 
				if pc.is_dead() == true then
					if pc.get_empire() == 1 then
						pc.warp(409600, 896000 )
					elseif pc.get_empire() == 2 then
						pc.warp(0, 102400 )
					else
						pc.warp(921600, 204800 )
					end
				end
			timer('siwang1', 10) 
			end
		
	end
end
cpsky is offline  
Thanks
1 User
Closed Thread




All times are GMT +2. The time now is 06:50.


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.