Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Metin2 › Metin2 Private Server
You last visited: Today at 19:50

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

Advertisement



[SRC] TItemPos

Discussion on [SRC] TItemPos within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 71
Join Date: Dec 2011
Posts: 598
Received Thanks: 149
[SRC] TItemPos

Hallo,

weiß jemand wo im Server Source die Klasse "TItemPos" definiert ist?

LG
MrPlayboy is offline  
Old   #2
 
elite*gold: 0
Join Date: Mar 2017
Posts: 104
Received Thanks: 21
Hi,

in length.h findest du

PHP Code:
typedef struct SItemPos
{
    
BYTE window_type;
    
WORD cell;
    
SItemPos ()
    {
        
window_type = INVENTORY;
        
cell = WORD_MAX;
    }

    
SItemPos (BYTE _window_type, WORD _cell)
    {
        
window_type = _window_type;
        
cell = _cell;
    }

    
bool IsValidItemPosition() const
    {
        switch (
window_type)
        {
        case 
RESERVED_WINDOW:
            return 
false;
        case 
INVENTORY:
        case 
EQUIPMENT:
        case 
BELT_INVENTORY:
            return 
cell < INVENTORY_AND_EQUIP_SLOT_MAX;
        case 
DRAGON_SOUL_INVENTORY:
            return 
cell < (DRAGON_SOUL_INVENTORY_MAX_NUM);
        
// µ¿ÀûÀ¸·Î Å©±â°¡ Á¤ÇØÁö´Â window´Â valid Ã¼Å©¸¦ ÇÒ ¼ö°¡ ¾ø´Ù.
        
case SAFEBOX:
        case 
MALL:
            return 
false;
        default:
            return 
false;
        }
        return 
false;
    }
    
    
bool IsEquipPosition() const
    {
        return ((
INVENTORY == window_type || EQUIPMENT == window_type) && cell >= INVENTORY_MAX_NUM && cell < INVENTORY_MAX_NUM + WEAR_MAX_NUM)
            || 
IsDragonSoulEquipPosition();
    }

    
bool IsDragonSoulEquipPosition() const
    {
        return (
DRAGON_SOUL_EQUIP_SLOT_START <= cell) && (DRAGON_SOUL_EQUIP_SLOT_END > cell);
    }

    
bool IsBeltInventoryPosition() const
    {
        return (
BELT_INVENTORY_SLOT_START <= cell) && (BELT_INVENTORY_SLOT_END > cell);
    }

    
bool IsDefaultInventoryPosition() const
    {
        return 
INVENTORY == window_type && cell < INVENTORY_MAX_NUM;
    }

    
bool operator==(const struct SItemPos& rhs) const
    {
        return (
window_type == rhs.window_type) && (cell == rhs.cell);
    }
    
bool operator<(const struct SItemPos& rhs) const
    {
        return (
window_type < rhs.window_type) || ((window_type == rhs.window_type) && (cell < rhs.cell));
    }
} 
TItemPos; 
std::max is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Suche Server src undclient src mit passenden client
06/01/2016 - Metin2 Private Server - 2 Replies
Würde mich freuen wenn ihr mir sagen könnt welche am besten wäre und eventuell links dazu geben könntet
WoWSniffer 0.1a (WITH SRC)
11/15/2006 - WoW Exploits, Hacks, Tools & Macros - 30 Replies
WoWSniffer is basically a language hack, but because it doesnt touch the WoW process it is pretty much impossible to detect (assuming you run WoW with restricted privledges) The source code is included! The program has been added at the bottom of http://firepacket.net/WoW OR you can simply download below: Direct Download: http://firepacket.net/WoW/WoWSniffer.rar Source code: http://firepacket.net/WoW/WoWSniffer_src.rar http://firepacket.net/WoW/ss/wows.jpg



All times are GMT +2. The time now is 19:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.