Register for your free account! | Forgot your password?

You last visited: Today at 03:32

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

Advertisement



[C++][SOURCE] Auto anti yangbug

Discussion on [C++][SOURCE] Auto anti yangbug within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
[C++][SOURCE] Auto anti yangbug

Hey, in this topic i show you how to fix yangbugs in source.

Open Shop_Manager.cpp and find
Code:
dwPrice = item->GetShopBuyPrice();
Add after this line
Code:
if(dwPrice > item->GetGold()) 
		dwPrice=item->GetGold();
Now save and compile game.


Please do not copy to another boards. This topic is created only for elitepvpers.com
deco016 is offline  
Thanks
10 Users
Old 07/02/2014, 04:13   #2
 
elite*gold: 0
Join Date: Sep 2010
Posts: 45
Received Thanks: 2
Thanks bro.
Florinelus is offline  
Old 07/02/2014, 08:05   #3

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
I think this code creates the "bug".
IgorGlock is offline  
Old 07/02/2014, 12:40   #4

 
IgorGlock's Avatar
 
elite*gold: 1862
Join Date: Jan 2009
Posts: 3,725
Received Thanks: 7,671
IF PLAYER HAS 100 GOLD AND ITEM COSTS 200 GOLD, HE WILL BE ABLE TO BUY IT!
That's not funny...

@.Ammo'
u srs?
IgorGlock is offline  
Thanks
5 Users
Old 07/02/2014, 13:59   #5
 
elite*gold: 0
Join Date: Sep 2013
Posts: 491
Received Thanks: 675
To prevent the "yang bug" you have to increase the maximum value of yang.
.Kibito is offline  
Old 07/02/2014, 14:27   #6
 
elite*gold: 0
Join Date: Jul 2013
Posts: 809
Received Thanks: 1,612
Quote:
Originally Posted by .Ammo' View Post
antispam:
nice thx for publishing
Langsam sollte man auch dafür ne Verwarnung geben (Anti Spam)

@Topic:
kann leider nicht mit Src arbeiten da ich kp habe..
CryPrime is offline  
Thanks
3 Users
Old 07/02/2014, 19:03   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
Quote:
Originally Posted by IgorGlock View Post
I think this code creates the "bug".
Why? If you have in item_proto column gold 100 and shop_buy_price 100000 then game fixing it which replace shop buy price to gold before calculating price

Code:
	DWORD dwPrice;

	if (bCount == 0 || bCount > item->GetCount())
		bCount = item->GetCount();

	dwPrice = item->GetShopBuyPrice();
	
	if(dwPrice > item->GetGold()) 
		dwPrice=item->GetGold();
	if (IS_SET(item->GetFlag(), ITEM_FLAG_COUNT_PER_1GOLD))
	{
		if (dwPrice == 0)
			dwPrice = bCount;
		else
			dwPrice = bCount / dwPrice;
	}
	else
		dwPrice *= bCount;

	dwPrice /= 5;
Quote:
Originally Posted by deluks1980 View Post
Krecik, wypierdalaj
Wypierdalaj elektrozjebie na mpcforum
deco016 is offline  
Thanks
1 User
Old 08/19/2014, 13:35   #8
 
callmax's Avatar
 
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
PHP Code:
int CItem::GetShopBuyPrice()
{
    return 
GetProto()->dwGold;

ich hätts ja so gemacht, da die funktion sowieso nur 1x benutzt wird
und ja igor, das würde schon jegliche yangbugs die mit kaufen/verkaufen zu tun haben unterbinden, weil wegen gold->item_proto = dann Verkaufswert & Shoppreis
callmax is offline  
Thanks
1 User
Old 08/19/2014, 16:38   #9
Trade Restricted
 
elite*gold: 9
Join Date: Jul 2014
Posts: 818
Received Thanks: 677
das ist außerdem kein bug sondern für derartige Fehler ist lediglich die Inkompetenz des jeweiligen Serverleiters schuld
grαyfox is offline  
Old 08/19/2014, 23:17   #10
 
elite*gold: 0
Join Date: Sep 2010
Posts: 73
Received Thanks: 31
Thanks u
galetlefrancais is offline  
Old 08/20/2014, 00:38   #11
 
Zonni's Avatar
 
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
Thanks, great release

But useless if you have good configured item_proto
Zonni is offline  
Old 08/20/2014, 21:22   #12
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
Quote:
Originally Posted by Zonni View Post
Thanks, great release

But useless if you have good configured item_proto
how does a (good configured) item proto look like?
kstmr is offline  
Old 08/20/2014, 21:59   #13
 
elite*gold: 0
Join Date: Nov 2010
Posts: 43
Received Thanks: 10
He means that the sell price isn't bigger than the buy price
aok96boom is offline  
Old 08/20/2014, 23:57   #14
 
Zonni's Avatar
 
elite*gold: 100
Join Date: Feb 2008
Posts: 195
Received Thanks: 270
Quote:
Originally Posted by aok96boom View Post
He means that the sell price isn't bigger than the buy price
Only in some cases - I checked only items from ingame shops.
Zonni is offline  
Old 08/21/2014, 01:47   #15
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
well this basicly mean that this fix is useless as long as you have a good item proto
but did you know that there is a way to buy yang
kstmr is offline  
Reply


Similar Threads Similar Threads
[25/08/12] {Source Pwlvl Bot NoMenù} [Anti-Log ~ Anti-Ban]
08/28/2012 - WarRock Hacks, Bots, Cheats & Exploits - 8 Replies
Download Scan Note: The pwlvl bot is nomenù, to activate it you need to press F9, while for turn off F10. Soon I'll make a video of it ;) This is my first version of Pwlvl Bot, if you experience any bugs or errors, you may report to my Skype contact: d3vilgh0st
Auto Medic , Auto Ammo , Super vehicle , vehicle invisible , Anti M14 , Anti Flash ,
04/29/2012 - WarRock Hacks, Bots, Cheats & Exploits - 0 Replies
http://www.wgh.altervista.org http://i45.tinypic.com/2ro6um9.png We Have Best WarRock Hacks Status : Undetected Last Update : 27/04/2012 Visit Our Site
Auto F7 Yangbug
01/17/2011 - Metin2 Private Server - 3 Replies
Hallo, ich hab mal eine Frage bei Youtube gibt es viele Videos mit dem Yangbug Bot und da haben die manchmal Bots gemacht der Automatisch F7 drückt, nun meine Frage : was bringt mir das wenn der F7 drückt? Im Video zeigen die das der das dann 100 mal in der sec. verkauft ... doch nur wenn man F7 drückt verkauft der doch nicht oder? mfG. glosi
Auto-Queue/Anti-AFK HonorBot With Source Code (c++)
10/13/2007 - WoW Exploits, Hacks, Tools & Macros - 10 Replies
I wrote this bot awhile back before BC released in C# but a lot of my friends were complaining about the .Net Framework .. so w/e .. i rewrote it in c++ Source Code .. Screenshots .. Binarys Index of /nullvalue/nullvalue/HonorBot This is still a beta and although it all functions correctly the "Auto-Queue" routine needs a little tweaking .. so modify the source if you want How It Works - Every 18 seconds or so .. the bot checks to see if your queued .. if your not, it runs the...



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


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