[Release] Summining bags!!

Newbie Spellweaver
Joined
Apr 5, 2008
Messages
8
Reaction score
0
In player.cpp:
Add:
Code:
case 0x4B: Mobs::handleSummonBag(this, buf+2); break;
default: break;
in the handleRequest function.
The default:break; should fix the character freezing when doing something unexpected.



In mobs.cpp add:
Code:
void Mobs::handleSummonBag(Player* player, unsigned char* packet)
{
    int itemID = getInt(packet+6);
    if(itemID == 2101001)
    {
        //Crimson Balrog
        spawnMob(player, 8150000);
    }
    if(itemID == 2100008)
    {
        //The Boss
        spawnMob(player, 9400300);
    }
    Inventory::takeItem(player, itemID, 1);
}
at the bottom ^ ^ ^.

Add:
Code:
#include "Inventory.h"
at the top.
The function is self-explanatory really.

Now in mobs.h add:
Code:
static void handleSummonBag(Player* player, unsigned char* packet);



Credits:drkgodz
 
yay
EDIT: WTF THERE'S A "THE BOSS" SOUMONING BAG?!
EDIT2: oh sorry its "a boss" summoning bag, it summons bosses...
 
you all fail at life

---------- Post added at 09:04 PM ---------- Previous post was at 09:03 PM ----------

fail fail fail!
 
Back