Jump to content

anti WPE


Guest CHili

Recommended Posts

It seems not so hard to stop it becose people need to know what build you have acording to the movie just give .server info command only to gm lvl 2 or above or somthing that way people cant see the rev anymore make it an bit more dificult to get to setup the right build for wpc.

here is sql query for that purpose if somone needs it:

UPDATE `mangos`.`command` SET `security` = '2' WHERE `command`.`name` = 'server info' LIMIT 1

so this sould stop players to get the right rev number.

Link to comment
Share on other sites

Not really, the real point in using wpe is in it's name, packet editing. They usually find missing checks that can be abused by sending incorrect data by packet editing (otherwise impossible, usually prohibited by client-side checks). If you can get the opcodes they aim and the offsets, you might be able to fix it pretty fast. Even checking a few guides on how they do it can help, but this app (shown in the video) has to be tested.

Link to comment
Share on other sites

  • 1 month later...

// prevent equipping bag in the same slot from its inside

if (IsBagPos(dst) && srcbag == dstslot)

{

SendEquipError(EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, pSrcItem, pDstItem);

return;

}

put it into player.cpp

you can test it , it is from trinity forum

Link to comment
Share on other sites

  • 3 weeks later...
  • 9 months later...

My solution. It works fine on mangos-one. Probably works on master too.

--------------------------- src/game/ItemHandler.cpp ---------------------------
index 402bdee..bef509c 100644
@@ -26,6 +26,7 @@
#include "Item.h"
#include "UpdateData.h"
#include "Chat.h"
+#include "World.h"

void WorldSession::HandleSplitItemOpcode( WorldPacket & recv_data )
{
@@ -927,6 +928,11 @@ void WorldSession::HandleAutoBankItemOpcode(WorldPacket& recvPacket)
    if( !pItem )
        return;

+    // WPE dupe protection
+    if(pItem->IsBag())
+        if(!((Bag *)pItem)->IsEmpty())
+            sWorld.BanAccount(BAN_CHARACTER, GetPlayerName(),0 ,"WPE Duplication Item","Casso's WPE Protection");
+
    ItemPosCountVec dest;
    uint8 msg = _player->CanBankItem( NULL_BAG, NULL_SLOT, dest, pItem, false );
    if( msg != EQUIP_ERR_OK )

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use