Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 20:59

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

Advertisement



function detecting died player.

Discussion on function detecting died player. within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2011
Posts: 37
Received Thanks: 6
function detecting died player.

Is there any function or event that I can use in quest file wich triggers event after when player dies?

function pc.is_dead() is boolean type, but i need to do something like that:

Code:
when (player_dies) begin
-- some actions
end
I could use a timer for that, but loop seems makes no sense.
"Unnecessary extra server load"
Cetus is offline  
Old 08/07/2013, 10:03   #2
 
Mijago's Avatar
 
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
If you have npc.get_vid():
Code:
when kill with npc.is_pc() begin
    local me = pc.select(npc.get_vid())
    do
        -- do whatever you want to do
    end
    pc.select(me)
end
So you can check, whether he dies in pvp..
Mijago is offline  
Old 08/07/2013, 11:12   #3
 
elite*gold: 0
Join Date: Aug 2011
Posts: 37
Received Thanks: 6
Quote:
Originally Posted by Mijago View Post
If you have npc.get_vid():
Code:
when kill with npc.is_pc() begin
    local me = pc.select(npc.get_vid())
    do
        -- do whatever you want to do
    end
    pc.select(me)
end
So you can check, whether he dies in pvp..
What you gave me is almost what I need, but there is a major difference between your solution and my target.

Your code detects player which I kill, I need to write quest, wich tells me that I'm dead. Precisely say:

Code:
when kill begin
This triggers action when my character kills something (mob or player)

I'd like to do something like:

1. I'm on a quest to find spider leg, but npc gave me condition to complete quest
"Remember, you can't die in battle with any spider"
I aqquire spider leg and everyting is ok, but, when spider kills me, mission is failed.
Cetus is offline  
Reply


Similar Threads Similar Threads
[Help]Quest function-player has premium
11/06/2012 - Metin2 Private Server - 6 Replies
Helo, is possible check, that player has premium ? (gold_expirein in table account) In game in quest. Thank you
Detecting Gm
09/10/2011 - Dekaron - 8 Replies
is there anyway to detect the gm before he detect us and then bann us if there is a way please help all of us so we dont get banned and also we are here to help each other and thanks for u respond D:handsdown::handsdown::handsdown:
Hackshield Detecting
02/05/2011 - Metin2 - 1 Replies
Yow nur ne kurze Frage wenn man nen Hack zB benutzt und der detected wird, wird man dann reported oder so? Also gebannt? Gibts hier schon öfter diese Frage aber ne klare Antwort kenn ich noch nicht.. Die einen sagen ja die anderen nein.
Detecting system
07/20/2009 - Silkroad Online - 34 Replies
Joymax are detecting some illegal program I was testing it after the Autologin update Testing info : With 2 Computers , 2 accounts (Created at some time without silk charge history) and SRO installed at some time , Server selected : Xian , sro_client.exe open at some time Test 1 (Day 1) PC1: I was testing try login with some illegal programs runing PC2: I was testing try login without illegal program (Client Pure) ACC1 of PC1 : Login done 2 times
BOT detecting???
06/15/2009 - Silkroad Online - 7 Replies
today in the morning i watching my working bot, in this moment in the guide info screen appears a never seen message "you are now connected to GM (and his name)" i stoped bot and sit down in save zone for 1 hour, i hope the GM stoped watching me and dont banned me..



All times are GMT +1. The time now is 20:59.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.