Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 21:59

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

Advertisement



[C++] New belt inventory bug fix - Rideas -

Discussion on [C++] New belt inventory bug fix - Rideas - within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2015
Posts: 3
Received Thanks: 18
[C++] New belt inventory bug fix - Rideas -

Is Bug :

Open : input_main.cpp

Search:


HTML Code:
	CSafebox * pkSafebox = ch->GetSafebox();
	LPITEM pkItem = ch->GetItem(p->ItemPos);

	if (!pkSafebox || !pkItem)
		return;
Add:



HTML Code:
if (pkItem->GetType() == ITEM_BELT && pkItem->IsEquipped()) // Belt inventory new bug fixed by Rideas
{

ch->ChatPacket(CHAT_TYPE_INFO, "Empty your belt before inventory !");
    return;
}
Rideas is offline  
Thanks
13 Users
Old 09/25/2015, 17:53   #2
 
elite*gold: 0
Join Date: Aug 2015
Posts: 3
Received Thanks: 18
C++ Mount Bug Fixed CTRL+G

Game / Src

cmd_general.cpp open

HTML Code:
ACMD(do_unmount)
{
 if(true== ch->UnEquipSpecialRideUniqueItem())
 {

  ch->RemoveAffect(AFFECT_MOUNT);
  ch->RemoveAffect(AFFECT_MOUNT_BONUS);

  if(ch->IsHorseRiding())
  {
   ch->StopRiding();
  }
 }
 else
 {
  ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼* ³»¸± ¼ö ¾ø½À´Ï´Ù."));
 }
 }


Search and replace:

Kod:
HTML Code:
ACMD(do_unmount)
{
   LPITEM item = ch->GetWear(WEAR_UNIQUE1);
   LPITEM item2 = ch->GetWear(WEAR_UNIQUE2);


  if (item && item->IsRideItem())
  {
    ch->UnequipItem(item);
  }
  
  if (item2 && item2->IsRideItem())
  {
    ch->UnequipItem(item2);
  }
 if (true == ch->UnEquipSpecialRideUniqueItem())
 {
  ch->RemoveAffect(AFFECT_MOUNT);
  ch->RemoveAffect(AFFECT_MOUNT_BONUS);


  if (ch->IsHorseRiding())
  {
   ch->StopRiding(); 
  }
 }
 else
 {
  ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼* ³»¸± ¼ö ¾ø½À´Ï´Ù."));
 }


}

char_battle.cpp open

Search:
HTML Code:
RemoveAffect(AFFECT_MOUNT_BONUS);

Add:


HTML Code:
        LPITEM item =GetWear(WEAR_UNIQUE1);
         LPITEM item2 =GetWear(WEAR_UNIQUE2);

      if (item && item->IsRideItem())
      {
        UnequipItem(item);
      }
      
      if (item2 && item2->IsRideItem())
      {
        UnequipItem(item2);
      }


Rideas is offline  
Thanks
5 Users
Old 09/25/2015, 21:43   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 1
Received Thanks: 0
how to i extract game?
tmis is offline  
Old 09/27/2015, 03:46   #4
 
elite*gold: 0
Join Date: Jul 2015
Posts: 8
Received Thanks: 4


have any fix ?

thanks
Berke0158 is offline  
Old 12/22/2015, 12:05   #5
 
deltous'fabius's Avatar
 
elite*gold: 84
Join Date: May 2013
Posts: 478
Received Thanks: 234
Quote:
Originally Posted by WoM2 | MartPwnS View Post
Falscher Fix bei den Belts das zwingt einen dazu den Gürtel immer abzulegen auch wenn keine items drin sind (falsche Fehlermeldung)

Besser:
Code:
if (ITEM_BELT == pkItem->GetType() && pkItem->IsEquipped() && CBeltInventoryHelper::IsExistItemInBeltInventory(ch))
{
	ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("벨트 인벤토리에 아이템이 존재하면 해제할 수 없습니다."));
	return;
}
Kind regards
MartPwnS
this doesnt work for me
deltous'fabius is offline  
Reply


Similar Threads Similar Threads
[Selling] WTS OP lvl 171+9 Belt with 2x 3% PK/PVP
04/28/2015 - Dekaron Trading - 2 Replies
Have Perfect Options and 2x Heal Brands. Nobody selling perfect belt this is why i put new price because people are to poor 60Euro you have to pay a additional fee about 5 Euro-15 Euro via Moneygramm,Westernunion. Tell me your skype and we can talk about the price again.
[NEW]Belt Inventory ?
01/30/2014 - Metin2 Private Server - 0 Replies
Hello Com ! How can i add new belt system to my client ? My game rev. is 2089M plesae help me !:handsdown::handsdown:
[Selling] +171 BELT +9
07/28/2013 - Dekaron Trading - 3 Replies
Helllo. I want sell belt 171 +9 DN SOLD _ -- +171 belt +9 DN {2x 2% critical resistance}{DN - 46 def,1% speed,2% male dmg tolerance ,3% dmg reduction){Brand option--1% critical res,54 ice res,300 max HP} SOLD I am accepting only paypal as gift. Dont pm me if u arnt going 1st.
[WTS/WTT] +9 171 Belt
07/15/2012 - Dekaron Trading - 1 Replies
Refer to the title. The belt has 2 x 1% pk/pvp damage tolerance gems in it. Selling for either dil, or trading for +9 Atrocius pants/boots/helmet +9 160 shield, or +9 160 2h axe.... Screenshots on request. Hellion.
DT In Belt -.-
01/25/2012 - Rappelz Private Server - 7 Replies
Heey Guys ,, Well ,, When I Put DT In Belt It Just Adds P.atk And Str ,,, And In Normal Server It adds Patk And Str And Atk Spd Any Ideas About How Can i Make DT To Add Atk Spd in the private server ??



All times are GMT +2. The time now is 21:59.


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.