- Joined
- Apr 5, 2008
- Messages
- 8
- Reaction score
- 0
In player.cpp:
Add:
in the handleRequest function.
The default:break; should fix the character freezing when doing something unexpected.
In mobs.cpp add:
at the bottom ^ ^ ^.
Add:
at the top.
The function is self-explanatory really.
Now in mobs.h add:
Credits:drkgodz
Add:
Code:
case 0x4B: Mobs::handleSummonBag(this, buf+2); break;
default: break;
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);
}
Add:
Code:
#include "Inventory.h"
The function is self-explanatory really.
Now in mobs.h add:
Code:
static void handleSummonBag(Player* player, unsigned char* packet);
Credits:drkgodz

