Register for your free account! | Forgot your password?

You last visited: Today at 00:56

  • 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: 590
Received Thanks: 148
[SRC] TItemPos

Hallo,

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

LG
MrPlayboy is offline  
Old 04/24/2017, 20:04   #2
 
elite*gold: 0
Join Date: Mar 2017
Posts: 103
Received Thanks: 20
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_typeWORD _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 SItemPosrhs) const
    {
        return (
window_type == rhs.window_type) && (cell == rhs.cell);
    }
    
bool operator<(const struct SItemPosrhs) 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 00:56.


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.