Register for your free account! | Forgot your password?
Rust Cheats

You last visited: Today at 12:02

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

Advertisement



Quest function

Discussion on Quest function within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2014
Posts: 15
Received Thanks: 5
Quest function

Hi, i'm working on pvp system for my root server, and i need 1 quest function.

For example:
Player1 kills Player2, and i need get name of both players, so for Player1 i'll use pc.get_name, but i don't know how to get Player2 name.

For example:
notice_in_map("Player "..pc.get_name().." kills "..player2name.."")


Thanks, and sorry for my english.
DemoroCZ is offline  
Old 06/30/2014, 12:58   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1,297
Received Thanks: 1,295



PHP Code:
quest test begin
    state start begin
        when kill with npc
.is_pc() begin
            local vid 
npc.get_vid()
            
local old_pc pc.select(vid)
            
local o_name pc.get_name()
            if 
old_pc != 0 then
                local lev 
pc.get_level()
                
local name pc.get_name()
                
pc.select(old_pc)
                
notice_all(o_name.." killed "..name)
            
end
        end
    end
end 
He3o Sippel is offline  
Thanks
2 Users
Old 06/30/2014, 13:09   #3
 
elite*gold: 0
Join Date: Mar 2014
Posts: 15
Received Thanks: 5
Quote:
Originally Posted by .He3o Sippel View Post



PHP Code:
quest test begin
    state start begin
        when kill with npc
.is_pc() begin
            local vid 
npc.get_vid()
            
local old_pc pc.select(vid)
            
local o_name pc.get_name()
            if 
old_pc != 0 then
                local lev 
pc.get_level()
                
local name pc.get_name()
                
pc.select(old_pc)
                
notice_all(o_name.." killed "..name)
            
end
        end
    end
end 
Thanks
DemoroCZ is offline  
Reply


Similar Threads Similar Threads
[SUCHE]Quest Function
04/21/2014 - Metin2 Private Server - 4 Replies
Moin moin Wollte heute eine quest schreiben die im Großen und Ganzen ein Item das ein Spieler besitzt entfernt. pc.remove_item() ist ja schön und gut aber hat einen Nachteil der mir aufgefallen ist, items die Equipt sind oder im Inventar werden nicht entfernt. Und nach einer solchen möglichkeit suche ich. Ein Angezogenes Item zu entfernen würde mir schon reichen. Dazu gibt es 2 Möglichkeiten 1. Ein Questbefehl der angezogene Items auszieht, dann könnte man das item wieder mit...
Suche Quest function
01/19/2014 - Metin2 Private Server - 3 Replies
Hey ehm ja ich suche eine Quest function womit ich bei einer Willkommens Nachricht eine 2 seite einbauen kann wo der Text dann weiter geht Sprich Abschnitt 1 dann kann man auf Weiter klicken. Mfg
Quest function failure
06/21/2013 - Metin2 Private Server - 1 Replies
I'm trying to make my quest function like, I should write my character name correctly, or else it gives an error. I did it like that, but there's a missing function, it doesn't show the error case every time I write the name wrongly, I mean like it just says 'Your name is incorrect' and there's an OK button that closes quest, I can't re-open that quest from NPC or anything else because it is a set_state quest function. Here's what I'm trying to do locale name = input() if name =...
[HELP] Function quest error
05/30/2012 - Metin2 Private Server - 2 Replies
hi I got an error when doing make.sh someone can help me plzzzz img: http://i.epvpimg.com/dxDqe.png plzz someone can help me plzzzz??????
Quest Function
03/08/2012 - CO2 Private Server - 5 Replies
I have a question for the following code posted below. I managed to add albetro's Quest functions/actions on a source based on Impulse/Hybrids work. It was a success, however there seems to be an issue when attempting to run the packet properly. When logging in I can see the quest list but they all say (Completed) as in I can't take the quests nor use a pathfinder for them. A simple solution would be helpful as I feel this works yet it doesn't. { ...



All times are GMT +1. The time now is 12:03.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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