Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 10:41

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

Advertisement



[SOURCE] EquipItem/UnequipItem

Discussion on [SOURCE] EquipItem/UnequipItem within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
[SOURCE] EquipItem/UnequipItem

Folgende Funktionen funktionieren nicht, wie sie funktionieren sollten.

Code:
bool CHARACTER::EquipItem([...])
{
    [...]
    if (item->GetType() == ITEM_COSTUME && item->GetSubType() >= COSTUME_BELL)
	{
		if (!GetWear(WEAR_WEAPON))
		{
			return false;
		}
	}
    [...]
}
Code:
bool CHARACTER::UnequipItem([...])
{
    [...]
    if (item->GetType() == ITEM_WEAPON)
	{
		if (GetWear(WEAR_COSTUME_WEAPON))
		{
			return false;
		}
	}
    [...]
}
Erklärung:
Man soll keine Waffe ausziehen können, wenn eine Kostümwaffe getragen wird.
& Man soll keine Kostümwaffe anziehen können, wenn keine Waffe getragen wird.
Mr. 'Avenue™ is offline  
Old 10/18/2015, 20:59   #2

 
Drαεth's Avatar
 
elite*gold: 35
Join Date: Jan 2014
Posts: 1,421
Received Thanks: 268
Dir fehlt ein Code teil :0

Du hast einfach geschrieben das WENN man eine Kostümwaffe hat das er nichts machen soll
aber was wen er doch eine hat?
Drαεth is offline  
Old 10/18/2015, 21:03   #3


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
Quote:
Originally Posted by Drαεth View Post
Dir fehlt ein Code teil :0

Du hast einfach geschrieben das WENN man eine Kostümwaffe hat das er nichts machen soll
aber was wen er doch eine hat?
Nein, eigentlich nicht.
Mr. 'Avenue™ is offline  
Old 10/18/2015, 23:39   #4
 
elite*gold: 5
Join Date: Mar 2013
Posts: 1,986
Received Thanks: 2,254
Wie soll das auch funktionieren wenn das Ganze erst nach dem Un-/Equipen geprüft wird?
xGr33n is offline  
Old 10/19/2015, 02:24   #5


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
Wird es ebend nicht. Schau dir doch an.
Mr. 'Avenue™ is offline  
Old 10/19/2015, 07:05   #6
 
elite*gold: 5
Join Date: Mar 2013
Posts: 1,986
Received Thanks: 2,254

Rot das "ausziehen", grün deine Abfrage. Also wohl danach, so returnst du erst nach der itemloeschung und wiedergebung
xGr33n is offline  
Old 10/19/2015, 10:38   #7


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
Quote:
Originally Posted by byte xGr33n View Post

Rot das "ausziehen", grün deine Abfrage. Also wohl danach, so returnst du erst nach der itemloeschung und wiedergebung
Klappt nun, danke dir.
Mr. 'Avenue™ is offline  
Closed Thread

Tags
halloween, kostüme, metin2, source, waffen


Similar Threads Similar Threads
speed, skill, jump and unequipitem disabling
11/21/2011 - CO2 Private Server - 4 Replies
Okay so i want to know ho to disable Steed Speed, a skill, Jump and Unequip item or equip item on a map ? so any help with a simple code ?
[WTS] Steam ACC - Counter Strike Source, Day of Defeat: Source und Half-Life 2: Death
12/12/2010 - Counter-Strike Trading - 1 Replies
Delete.
Sell Source Binary v3.5, The Strongest Source in the world of private server
12/08/2009 - CO2 Private Server - 8 Replies
#Removed
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



All times are GMT +2. The time now is 10:41.


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.