block cheat enchant (server side)

Results 1 to 5 of 5
  1. #1
    Member pinux is offline
    MemberRank
    Jul 2011 Join Date
    IndonesiaLocation
    61Posts

    block cheat enchant (server side)

    hi,
    i just want to share how to block cheat enchant by server side.
    this code work for luna classic and luna plus,
    - first open the source code Map Server
    - open ItemManager.cpp
    - find "CItemManager::Enchant"
    - scroll down and find
    Code:
    if( !item || item->dwDBIdx != message->mProtectionItem.dwDBIdx )
    - change it to
    Code:
    if( !item || item->dwDBIdx != message->mProtectionItem.dwDBIdx || item->wIconIdx != message->mProtectionItem.wIconIdx  )
    i just decide for share the code, if you have a good skill in c++ you can use it for block cheat duplicate and cheat reinforce luna classic.


  2. #2
    Member HaXXoR75 is offline
    MemberRank
    Oct 2013 Join Date
    CanadaLocation
    56Posts

    Re: block cheat enchant (server side)

    Quote Originally Posted by pinux View Post
    hi,
    i just want to share how to block cheat enchant by server side.
    this code work for luna classic and luna plus,
    - first open the source code Map Server
    - open ItemManager.cpp
    - find "CItemManager::Enchant"
    - scroll down and find
    Code:
    if( !item || item->dwDBIdx != message->mProtectionItem.dwDBIdx )
    - change it to
    Code:
    if( !item || item->dwDBIdx != message->mProtectionItem.dwDBIdx || item->wIconIdx != message->mProtectionItem.wIconIdx  )
    i just decide for share the code, if you have a good skill in c++ you can use it for block cheat duplicate and cheat reinforce luna classic.
    It seems like this just adds an additional check to ensure the icon matches along with the existing check that the item id matches, while this would defeat the existing hack that revolve around editing the item id with a cheating tool, it seems it wouldn't take much to edit the icon id to match up in the client as well to bypass this fix. Better then nothing though, thanks for the release pinux!

  3. #3
    Bumiayu Berdebu Fou Gilang is offline
    MemberRank
    Mar 2008 Join Date
    Yogyakarta (ID)Location
    414Posts

    Re: block cheat enchant (server side)

    actually it seems that wIconIdx points to the ItemIdx on the database, not the icon

    ItemInfo.dwDBIdx = DBIdx;
    ItemInfo.wIconIdx = ItemIdx;
    i feel the urge to try editing it like you were saying though

  4. #4
    Member pinux is offline
    MemberRank
    Jul 2011 Join Date
    IndonesiaLocation
    61Posts

    Re: block cheat enchant (server side)

    yes it's linked to itemidx, so it's 100% fixed without weakness again.

  5. #5
    Member HaXXoR75 is offline
    MemberRank
    Oct 2013 Join Date
    CanadaLocation
    56Posts

    Re: block cheat enchant (server side)

    Quote Originally Posted by pinux View Post
    yes it's linked to itemidx, so it's 100% fixed without weakness again.
    Interesting, I wonder why EYA decided to name it IconIDX rather then just calling it ItemIDX then? Doesn't make much sense XD Not that anything they do makes sense :/



Advertisement