6 mesaje
Developer Developer
  • Mesaje: 41
  • Reacții: 278
  • Mesaje utile: 0
  • Status: nimic interesant
  • Server: -
  • Regat: Chunjo
  • [ID Discord]
  • Contact:

    Medalii

    *Descriere:
    Rezolvare Beltinventory Slot Bug Moveitem Swap

    Este un bug care strica slot-ul 254 de la belt, iar cu aceste modificari nu o sa mai dispara itemele cand le pui peste celelalte iteme in acest slot.

    Cum se manifesta bug-ul?
    - Atunci cand pui un item in slot 254 din belt si tragi alt item peste acest slot, primul item va disparea!
    - Este un BUG foarte nasol pe care majoritatea serverelor il au (pana si martysama)

    *Poze / Video:
    [FIX] Bug Slot Belt Moveitem - Mesaj 1 - Imagine 1
    Inainte:


    Dupa FIX:
    *Link download / Code:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.

    Nou Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Nou Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele rapid & simplu.

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Avatar utilizator
    Utilizator șters 438
  • Reacții: 0
  • Mesaje utile: 0
  • Avatar utilizator
    Utilizator șters 438

    Mesaj de Utilizator șters 438 »

    MULTUMIM TARE MULT! SUNTEM MULTI CU PROBLEMA ASTA.

    Pentru cei carora nu le merge fixu atasat, fiti atenti la sintaxe si name-uri.

    Va las atasata varianta mea, mai diferita umpic. dar cu fixu de la @-crash (Multumim inca odata!)


    Conținut: Afișat

    In char.h: BYTE bItemGrid[INVENTORY_AND_EQUIP_SLOT_MAX]; -----> modificati BYTE cu WORD

    Apoi luati din char_item.cpp (ce este atasat si mai sus) si comparati cu ce aveti voi. Eventual comparati / schimbati cu ce las mai jos
    Code:
    
    bool CHARACTER::IsEmptyItemGrid(TItemPos Cell, BYTE bSize, int iExceptionCell) const
    {
    	switch (Cell.window_type)
    	{
    	case INVENTORY:
    		{
    			WORD wCell = Cell.cell;
    
    			// bItemCell�� 0�� false���� ��Ÿ���� ���� + 1 �ؼ� ó���Ѵ�.
    			// ���� iExceptionCell�� 1�� ���� ���Ѵ�.
    			++iExceptionCell;
    
    			if (Cell.IsBeltInventoryPosition())
    			{
    				//LPITEM beltItem = GetWear(WEAR_BELT);
    
    				//if (NULL == beltItem)
    					//return false;
    
    				//if (false == CBeltInventoryHelper::IsAvailableCell(wCell - BELT_INVENTORY_SLOT_START, beltItem->GetValue(0)))
    					//return false;
    
    				if (m_pointsInstant.bItemGrid[wCell])
    				{
    					if (m_pointsInstant.bItemGrid[wCell] == iExceptionCell)
    						return true;
    
    					return false;
    				}
    
    				if (bSize == 1)
    					return true;
    
    			}
    			else if (wCell >= INVENTORY_MAX_NUM)
    				return false;
    
    			if (m_pointsInstant.bItemGrid[wCell])
    			{
    				if (m_pointsInstant.bItemGrid[wCell] == iExceptionCell)
    				{
    					if (bSize == 1)
    						return true;
    
    					int j = 1;
    					BYTE bPage = wCell / (INVENTORY_MAX_NUM / 4);
    
    					do
    					{
    						BYTE p = wCell + (5 * j);
    
    						if (p >= INVENTORY_MAX_NUM)
    							return false;
    
    						if (p / (INVENTORY_MAX_NUM / 4) != bPage)
    							return false;
    
    						if (m_pointsInstant.bItemGrid[p])
    							if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
    								return false;
    					}
    					while (++j < bSize);
    
    					return true;
    				}
    				else
    					return false;
    			}
    
    			// ũ�Ⱑ 1�̸� ��ĭ�� �����ϴ� ���̹Ƿ� �׳� ����
    			if (1 == bSize)
    				return true;
    			else
    			{
    				int j = 1;
    				BYTE bPage = wCell / (INVENTORY_MAX_NUM / 4);
    
    				do
    				{
    					BYTE p = wCell + (5 * j);
    
    					if (p >= INVENTORY_MAX_NUM)
    						return false;
    
    					if (p / (INVENTORY_MAX_NUM / 4) != bPage)						return false;
    
    					if (m_pointsInstant.bItemGrid[p])
    						if (m_pointsInstant.bItemGrid[p] != iExceptionCell)
    							return false;
    				}
    				while (++j < bSize);
    
    				return true;
    			}
    		}
    		break;
    	case DRAGON_SOUL_INVENTORY:
    		{
    			WORD wCell = Cell.cell;
    			if (wCell >= DRAGON_SOUL_INVENTORY_MAX_NUM)
    				return false;
    
    			// bItemCell�� 0�� false���� ��Ÿ���� ���� + 1 �ؼ� ó���Ѵ�.
    			// ���� iExceptionCell�� 1�� ���� ���Ѵ�.
    			iExceptionCell++;
    
    			if (m_pointsInstant.wDSItemGrid[wCell])
    			{
    				if (m_pointsInstant.wDSItemGrid[wCell] == iExceptionCell)
    				{
    					if (bSize == 1)
    						return true;
    
    					int j = 1;
    
    					do
    					{
    						BYTE p = wCell + (DRAGON_SOUL_BOX_COLUMN_NUM * j);
    
    						if (p >= DRAGON_SOUL_INVENTORY_MAX_NUM)
    							return false;
    
    						if (m_pointsInstant.wDSItemGrid[p])
    							if (m_pointsInstant.wDSItemGrid[p] != iExceptionCell)
    								return false;
    					}
    					while (++j < bSize);
    
    					return true;
    				}
    				else
    					return false;
    			}
    
    			// ũ�Ⱑ 1�̸� ��ĭ�� �����ϴ� ���̹Ƿ� �׳� ����
    			if (1 == bSize)
    				return true;
    			else
    			{
    				int j = 1;
    
    				do
    				{
    					BYTE p = wCell + (DRAGON_SOUL_BOX_COLUMN_NUM * j);
    
    					if (p >= DRAGON_SOUL_INVENTORY_MAX_NUM)
    						return false;
    
    					if (m_pointsInstant.bItemGrid[p])
    						if (m_pointsInstant.wDSItemGrid[p] != iExceptionCell)
    							return false;
    				}
    				while (++j < bSize);
    
    				return true;
    			}
    		}
    #ifdef ENABLE_SWITCHBOT
    	case SWITCHBOT:
    		{
    		WORD wCell = Cell.cell;
    		if (wCell >= SWITCHBOT_SLOT_COUNT)
    		{
    			return false;
    		}
    
    		if (m_pointsInstant.pSwitchbotItems[wCell])
    		{
    			return false;
    		}
    
    		return true;
    		}
    #endif
    	}
    }
    
    Membru Ucenic Membru Ucenic
  • Mesaje: 19
  • Reacții: 133
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Regat: Chunjo
  • Medalii

    Avatar utilizator
    Membru Ucenic
    Membru Ucenic

    Mesaj de xMexR »

    Only kids who don't supposed to deal with metin2 coding have this bug. =))
    Utilizator interzis Utilizator interzis
  • Mesaje: 16
  • Reacții: 84
  • Mesaje utile: 0
  • Status: Membru banat
  • Server: crashcore
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Utilizator interzis
    Utilizator interzis

    Mesaj de crash »

    xMexR scrie: Only kids who don't supposed to deal with metin2 coding have this bug. =))
    [FIX] Bug Belt Inventory Slots.. - Mesaj 4 - Imagine 1
    Membru Avansat Membru Avansat
  • Mesaje: 111
  • Reacții: 361
  • Mesaje utile: 2
  • Status: // Coding: 1% writing, 99% fixing typos.
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Membru Avansat
    Membru Avansat

    Mesaj de thewolf98 »

    -crash scrie:
    xMexR scrie: Only kids who don't supposed to deal with metin2 coding have this bug. =))
    [FIX] Bug Belt Inventory Slots.. - Mesaj 5 - Imagine 1
    NIci eu nu am inteles duma stai linistit :))
    See full signature
    Administrator Administrator
  • Mesaje: 3901
  • Reacții: 72176
  • Mesaje utile: 38
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    Am actualizat si aranjat tutorialul + l-am tradus in romana
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem aproape 2000 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    Suntem aproape: 
    Robot Discord
    Roboțelu'
    Anunț
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

    Înapoi la “FIX-uri”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator

    Discord ID copiat: