Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
2.6 kB
10
Indexable
Never
char __userpurge CWvsContext::OnPacket@<al>(void *this@<ecx>, char bl0@<bl>, int a3, int a4)
{
  char result; // al
  int savedregs; // [esp+0h] [ebp+0h] BYREF

  // // Credits Sunnyboy @ http://forum.ragezone.com/
  result = a3;
  switch ( a3 )
  {
    case 0x18:
      result = CWvsContext::OnInventoryOperation(&savedregs, a4);
      break;
    case 0x19:
      result = CWvsContext::OnInventoryGrow(a4);
      break;
    case 0x1A:
      result = CWvsContext::OnStatChanged(&savedregs, a4);
      break;
    case 0x1B:
      result = CWvsContext::OnForcedStatSet(&savedregs, a4);
      break;
    case 0x1C:
      result = CWvsContext::OnForcedStatReset(&savedregs, a4);
      break;
    case 0x1D:
      result = CWvsContext::OnChangeSkillRecordResult(this, a4);
      break;
    case 0x1E:
      result = CWvsContext::OnSkillUseResult(a4);
      break;
    case 0x1F:
      result = CWvsContext::OnGivePopularityResult(&savedregs, a4);
      break;
    case 0x20:
      result = CWvsContext::OnMessage(&savedregs, a4);
      break;
    case 0x21:
      result = CWvsContext::OnMemoResult(&savedregs, a4);
      break;
    case 0x22:
      result = CWvsContext::OnMapTransferResult(&savedregs, a4);
      break;
    case 0x23:
      result = CWvsContext::OnAntiMacroResult_lol(this, a4);
      break;
    case 0x24:
      result = CWvsContext::OnClaimResult(&savedregs, a4);
      break;
    case 0x25:
      result = CWvsContext::OnSetClaimSvrAvailableTime(this, a4);
      break;
    case 0x26:
      result = CWvsContext::OnClaimSvrStatusChanged(this, a4);
      break;
    case 0x27:
      result = CWvsContext::OnQuestClear(&savedregs, a4);
      break;
    case 0x28:
      result = CWvsContext::OnEntrustedShopCheckResult(&savedregs, a4);
      break;
    case 0x29:
      result = CWvsContext::OnSueCharacterResult(bl0, &savedregs, a4);
      break;
    case 0x2C:
      result = CWvsContext::OnCharacterInfo(&savedregs, a4);
      break;
    case 0x2D:
      result = CWvsContext::OnPartyResult(&savedregs, a4);
      break;
    case 0x2E:
      result = CWvsContext::OnFriendResult(&savedregs, a4);
      break;
    case 0x30:
      result = CWvsContext::OnGuildResult(&savedregs, a4);
      break;
    case 0x31:
      result = CWvsContext::OnTownPortal(this, a4);
      break;
    case 0x32:
      result = CWvsContext::OnBroadcastMsg(&savedregs, a4);
      break;
    case 0x33:
      result = CWvsContext::OnIncubatorResult(&savedregs, a4);
      break;
    default:
      return result;
  }
  return result;
}