Register for your free account! | Forgot your password?

You last visited: Today at 11:20

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

Advertisement



Quest pc.is_pvp()

Discussion on Quest pc.is_pvp() within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
Quest pc.is_pvp()

Hei!

Hab ein Questbefehl eingefügt.... funkt aber nicht x_x

Code:
int is_pvp(lua_State* L)
{
	LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
	LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr();

	if (!ch || !npc->IsPC())
	{
		lua_pushboolean(L, 0);
		return 1;
	}

	CPVP kPVP(ch->GetPlayerID(), npc->GetPlayerID());
	CPVP * pkPVP = CPVPManager::instance().Find(kPVP.GetCRC());

	if (!pkPVP || !pkPVP->IsFight())
	{
		lua_pushboolean(L, 0);
		return 1;
	}

	lua_pushboolean(L, 1);
	return 1;
}
Drαεth is offline  
Old 11/02/2015, 21:03   #2


 
xXGaardenXx's Avatar
 
elite*gold: 26
Join Date: Jan 2009
Posts: 1,186
Received Thanks: 477
Es Funktioniert wenn du es einfügst wie es beschrieben ist auf ein anderen Forum
xXGaardenXx is offline  
Old 11/02/2015, 21:25   #3

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
nope.
Hab nicht zum ersten mal das gemacht ....
Drαεth is offline  
Old 11/04/2015, 14:13   #4

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
#
Drαεth is offline  
Old 11/09/2015, 18:57   #5

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
#
Drαεth is offline  
Reply


Similar Threads Similar Threads
[ClownSro] Cap 110 |New System| New Quest| Free 1 Million silk |New Title Quest|
11/01/2014 - SRO PServer Advertising - 6 Replies
http://www11.0zz0.com/2014/07/13/02/812260850.png | Welcome to CLownSro • Pve Server • Fair Gameplay | Opening: 13-07-2014 Time: 18:00 ~ 20:00 +1 GMT CLown Website Facebook Page http://www13.0zz0.com/2014/07/13/02/148368929.png Server Features
[SPECIAL TEAM_WARP QUEST]'nd Metin2 Sweet Time Quest's Icons and News
01/27/2013 - Metin2 PServer Guides & Strategies - 22 Replies
deleted!
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest
07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies
ENGLISH Hello dear community, this is a very simple guide but at the same time useful. How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"? Easy! Open the file "make" and replace the content of the file with this: for f in *.quest; do ./qc $f; done Oki. Now set the 0777 permission to the file. Finally open a SSH client and sign in. Write the command: cd /game_file_folder



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


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.