Register for your free account! | Forgot your password?

You last visited: Today at 20:58

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

Advertisement



BLEND bug fix.

Discussion on BLEND bug fix. within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
fcsk_aim's Avatar
 
elite*gold: 100
Join Date: Dec 2014
Posts: 93
Received Thanks: 51
BLEND bug fix.

Hi, epvp.

Search char_item.cpp ITEM_BLEND :

replace with this.
Code:
		case ITEM_BLEND:
			sys_log(0,"ITEM_BLEND!!");
			
			if (Blend_Item_find(item->GetVnum())) {
				int affect_type = AFFECT_BLEND;
				if (item->GetSocket(1) >= _countof(aApplyInfo)) {
					sys_err ("INVALID BLEND ITEM(id : %d, vnum : %d). APPLY TYPE IS %d.", item->GetID(), item->GetVnum(), item->GetSocket(0));
					return false;
				}
				int apply_type = aApplyInfo[item->GetSocket(1)].bPointType;
				int apply_value = item->GetSocket(2);
				int apply_duration = item->GetSocket(3);

				if (FindAffect(affect_type, apply_type)) {
					if(!m_bIsLoadedAffect) {
                        Chat Packet(CHAT_TYPE_INFO, LC_TEXT("Nu poti face asta."));
                        return false;
                        }
				} else {
						AddAffect(affect_type, apply_type, apply_value, 0, apply_duration, 0, false);
						item->SetCount(item->GetCount() - 1);
				}
			}
			break;
PS: fix don't tested.
One friend said me to fix.

I don't really understand the bug, but test for me.
If u like thanks button.
fcsk_aim is offline  
Old 02/09/2016, 22:45   #2
 
.Sanii's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 353
Received Thanks: 621
Pls tell me what this should fix.

Code:
if (item->GetSocket(1) >= _countof(aApplyInfo))
What should this do? Why are you comparing the Value of Blend Item with the count of applies? i think you want to check, Socket0 with the type.
Even then, why using "_countof(aApplyInfo)" when the structure of metin source have ENUMS. Use "MAX_APPLY_NUM"

As i see, this only tell me what i failed in blend.txt, this is not a fix for me

so pls tell me ^^

#edit:
The Blue Blend Item will be disabled with this fix. Because of Socket1 is Value and will be over (in my source 95 applycount) same with the white.
.Sanii is offline  
Reply


Similar Threads Similar Threads
Staff Blend -> Nif
05/19/2013 - Fiesta Online - 3 Replies
Heyho Da ich mein PC rebooted hab, und nur noch Phyton kenne für das importieren, fehlen noch paar andere programme^^ ( Texturen seh ich nicht ) Ich hab heute das hier erstellt, und möchte das gern im nif haben^^ http://www7.pic-upload.de/19.05.13/poh5h714ig2.pn g http://www.pic-upload.de/view-19399506/Unbenannt. png.html Wenn es mir jemand machen könnte, kann er gern diesen Stab auch haben hehe, aber wenn ihr mir die programme nennen könnt reicht es mir auch^^
WTS ATT BLEND lv II
02/15/2013 - Cabal Online Trading - 1 Replies
SELL Strike Pray lv II >>> pm me offers skype:tzontzo94 cabal : ihateeverything ;)
DJ BLEND
11/04/2012 - DarkOrbit - 9 Replies
he is banned , can anyone get his ip ?? i'll find him and get him down !!!
Blend.txt
03/27/2012 - Metin2 Private Server - 3 Replies
könnte mir jemand eine normale blend.txt schicken. hab beim umändern was falsch gemacht und jetzt funktioniert es nicht mehr ;> bitte ;>
blend granate
05/11/2010 - WarRock - 11 Replies
hallo com es gibt doch eine landmine und das runde teil wenn man drauf tritt leuchtet es ganz hell und wenn ich mir jetz beides in den 6.sloth kaufe und die landmine reintu in den 6.sloth und die dann verbraucht is im game kommt dann die wo leuchtet rein?



All times are GMT +2. The time now is 20:58.


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.