Nothing special, but useful :p
XP/Kill-Counter
Realistic use of Mission scrolls:
Buying one scroll starts the thing, check if the npc ID is still correct.
Free Sobs
ES-Hack(Pserver only, crap way):
Reacting to def-change, reacting to buff gone would be better.
Adding more if I find something useful.
XP/Kill-Counter
Code:
case 0x45://State Changed
switch(Buffer[3])
{
case 0x19://Exp Increase
DWORD exp = *(DWORD*)&Buffer[12];
expCount+=exp;
killCounter++;
}
Code:
case 0x07: // Get item
{
WORD itemtype = *(WORD*)&Buffer[3];
if(amountScrolls > 0)
{
if(itemtype >= 1299 && itemtype <= 1365 && scrollid == 0)
{
scrollid = itemtype;
}
if(itemtype == scrollid)
{
DWORD itemscrollid = *(DWORD*)&Buffer[5];
SendPacket(0x1e,"d",itemscrollid);
SendPacket(0x15,"dbbww",11030/*npc ID*/,100,1,scrollid,1);
amountScrolls--;
}
}
Free Sobs
Code:
SendPacket(0x30,"bbbb",3,0,88,27); // lvl 20
SendPacket(0x30,"bbbb",4,0,88,27); // lvl 40
SendPacket(0x30,"bbbb",4,0,88,27); //lvl 60, untested
Code:
if(bType == 0x45 && es == true)
{
if(estimer < GetTickCount()-14900)
{
if(chBuffer[3] == 0x0F )
{
medcounter+=3; // Using 3 mana meds(200 ones)
Sleep(100); //Sending ES while ES active -> crash
SendPacketHook(0x10,"b",34); // ES!
estimer = GetTickCount();
}
}
}
Adding more if I find something useful.