1363{
1364 uint32 maxPacketCounterAllowed;
1365 switch (opcode)
1366 {
1367
1368
1457 {
1458
1459
1460 maxPacketCounterAllowed = 0;
1461 break;
1462 }
1463
1475 {
1476 maxPacketCounterAllowed = 200;
1477 break;
1478 }
1479
1489 {
1490 maxPacketCounterAllowed = 50;
1491 break;
1492 }
1493
1495 {
1497 break;
1498 }
1499
1504 {
1505 maxPacketCounterAllowed = 20;
1506 break;
1507 }
1508
1536 {
1537 maxPacketCounterAllowed = 10;
1538 break;
1539 }
1540
1587 {
1588 maxPacketCounterAllowed = 3;
1589 break;
1590 }
1591
1593 {
1595 break;
1596 }
1597
1598 default:
1599 {
1600 maxPacketCounterAllowed = 100;
1601 break;
1602 }
1603 }
1604
1605 return maxPacketCounterAllowed;
1606}
#define MAX_QUEST_LOG_SIZE
Definition: QuestDef.h:33
@ PLAYER_SLOTS_COUNT
Definition: Player.h:667
@ CMSG_QUESTGIVER_QUERY_QUEST
Definition: Opcodes.h:420
@ CMSG_CALENDAR_EVENT_MODERATOR_STATUS
Definition: Opcodes.h:1107
@ CMSG_LEARN_PREVIEW_TALENTS
Definition: Opcodes.h:1247
@ CMSG_TURN_IN_PETITION
Definition: Opcodes.h:482
@ CMSG_CALENDAR_ADD_EVENT
Definition: Opcodes.h:1099
@ MSG_RANDOM_ROLL
Definition: Opcodes.h:537
@ CMSG_CALENDAR_EVENT_REMOVE_INVITE
Definition: Opcodes.h:1105
@ MSG_PETITION_DECLINE
Definition: Opcodes.h:480
@ CMSG_SPELLCLICK
Definition: Opcodes.h:1046
@ MSG_MOVE_SET_FACING
Definition: Opcodes.h:248
@ CMSG_GUILD_DEL_RANK
Definition: Opcodes.h:593
@ CMSG_LOGOUT_REQUEST
Definition: Opcodes.h:105
@ CMSG_PET_RENAME
Definition: Opcodes.h:405
@ CMSG_QUEST_QUERY
Definition: Opcodes.h:122
@ CMSG_SET_GUILD_BANK_TEXT
Definition: Opcodes.h:1065
@ CMSG_REPORT_PVP_AFK
Definition: Opcodes.h:1026
@ CMSG_ARENA_TEAM_DISBAND
Definition: Opcodes.h:883
@ MSG_RAID_READY_CHECK
Definition: Opcodes.h:832
@ CMSG_SET_SHEATHED
Definition: Opcodes.h:510
@ CMSG_REQUEST_VEHICLE_SWITCH_SEAT
Definition: Opcodes.h:1175
@ CMSG_QUESTGIVER_STATUS_QUERY
Definition: Opcodes.h:416
@ CMSG_REPOP_REQUEST
Definition: Opcodes.h:376
@ CMSG_ACTIVATETAXI
Definition: Opcodes.h:459
@ CMSG_PETITION_QUERY
Definition: Opcodes.h:484
@ CMSG_PET_ABANDON
Definition: Opcodes.h:404
@ CMSG_QUEST_CONFIRM_ACCEPT
Definition: Opcodes.h:441
@ CMSG_FORCE_PITCH_RATE_CHANGE_ACK
Definition: Opcodes.h:1147
@ CMSG_QUESTGIVER_COMPLETE_QUEST
Definition: Opcodes.h:424
@ CMSG_GMTICKET_CREATE
Definition: Opcodes.h:547
@ CMSG_TOGGLE_PVP
Definition: Opcodes.h:625
@ CMSG_CALENDAR_EVENT_INVITE
Definition: Opcodes.h:1103
@ CMSG_GUILD_ACCEPT
Definition: Opcodes.h:162
@ CMSG_ITEM_REFUND_INFO
Definition: Opcodes.h:1233
@ CMSG_ACTIVATETAXIEXPRESS
Definition: Opcodes.h:816
@ CMSG_GUILD_BANK_DEPOSIT_MONEY
Definition: Opcodes.h:1034
@ CMSG_GUILD_LEAVE
Definition: Opcodes.h:171
@ CMSG_CREATURE_QUERY
Definition: Opcodes.h:126
@ CMSG_GUILD_BANK_WITHDRAW_MONEY
Definition: Opcodes.h:1035
@ CMSG_SET_CONTACT_NOTES
Definition: Opcodes.h:137
@ CMSG_QUEST_POI_QUERY
Definition: Opcodes.h:513
@ CMSG_GM_REPORT_LAG
Definition: Opcodes.h:1312
@ CMSG_SOCKET_GEMS
Definition: Opcodes.h:869
@ MSG_QUERY_GUILD_BANK_TEXT
Definition: Opcodes.h:1064
@ CMSG_GAMEOBJ_REPORT_USE
Definition: Opcodes.h:1183
@ CMSG_MOVE_TIME_SKIPPED
Definition: Opcodes.h:748
@ CMSG_CHAR_ENUM
Definition: Opcodes.h:85
@ MSG_SAVE_GUILD_EMBLEM
Definition: Opcodes.h:527
@ CMSG_COMPLETE_CINEMATIC
Definition: Opcodes.h:282
@ CMSG_SELF_RES
Definition: Opcodes.h:721
@ CMSG_REQUEST_VEHICLE_NEXT_SEAT
Definition: Opcodes.h:1174
@ CMSG_ARENA_TEAM_REMOVE
Definition: Opcodes.h:882
@ CMSG_GROUP_ASSISTANT_LEADER
Definition: Opcodes.h:685
@ CMSG_QUESTGIVER_ACCEPT_QUEST
Definition: Opcodes.h:423
@ CMSG_CHAR_RACE_CHANGE
Definition: Opcodes.h:1302
@ CMSG_REQUEST_VEHICLE_PREV_SEAT
Definition: Opcodes.h:1173
@ CMSG_REQUEST_VEHICLE_EXIT
Definition: Opcodes.h:1172
@ CMSG_GUILD_INVITE
Definition: Opcodes.h:160
@ CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:259
@ CMSG_GUILD_DECLINE
Definition: Opcodes.h:163
@ MSG_TALENT_WIPE_CONFIRM
Definition: Opcodes.h:712
@ CMSG_GROUP_INVITE
Definition: Opcodes.h:140
@ CMSG_TIME_SYNC_RESP
Definition: Opcodes.h:943
@ CMSG_FORCE_TURN_RATE_CHANGE_ACK
Definition: Opcodes.h:765
@ CMSG_NAME_QUERY
Definition: Opcodes.h:110
@ CMSG_ATTACKSTOP
Definition: Opcodes.h:352
@ CMSG_ARENA_TEAM_LEADER
Definition: Opcodes.h:884
@ CMSG_GROUP_UNINVITE
Definition: Opcodes.h:147
@ MSG_SET_RAID_DIFFICULTY
Definition: Opcodes.h:1289
@ CMSG_GMRESPONSE_RESOLVE
Definition: Opcodes.h:1294
@ CMSG_CONTROLLER_EJECT_PASSENGER
Definition: Opcodes.h:1223
@ CMSG_DELETEEQUIPMENT_SET
Definition: Opcodes.h:348
@ CMSG_OPT_OUT_OF_LOOT
Definition: Opcodes.h:1063
@ CMSG_EQUIPMENT_SET_SAVE
Definition: Opcodes.h:1243
@ CMSG_CALENDAR_COMPLAIN
Definition: Opcodes.h:1124
@ CMSG_GUILD_SET_OFFICER_NOTE
Definition: Opcodes.h:595
@ CMSG_CALENDAR_EVENT_SIGNUP
Definition: Opcodes.h:1240
@ CMSG_AUTOSTORE_BANK_ITEM
Definition: Opcodes.h:672
@ CMSG_STANDSTATECHANGE
Definition: Opcodes.h:287
@ CMSG_GROUP_CHANGE_SUB_GROUP
Definition: Opcodes.h:668
@ MSG_GUILD_BANK_LOG_QUERY
Definition: Opcodes.h:1036
@ CMSG_GUILD_ADD_RANK
Definition: Opcodes.h:592
@ CMSG_DISMISS_CRITTER
Definition: Opcodes.h:1195
@ CMSG_CALENDAR_GET_CALENDAR
Definition: Opcodes.h:1095
@ CMSG_CHAR_DELETE
Definition: Opcodes.h:86
@ CMSG_PET_NAME_QUERY
Definition: Opcodes.h:112
@ MSG_RAID_TARGET_UPDATE
Definition: Opcodes.h:831
@ CMSG_LEARN_PREVIEW_TALENTS_PET
Definition: Opcodes.h:1248
@ CMSG_AUTOBANK_ITEM
Definition: Opcodes.h:673
@ CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:930
@ CMSG_GROUP_SET_LEADER
Definition: Opcodes.h:150
@ CMSG_ARENA_TEAM_ACCEPT
Definition: Opcodes.h:879
@ CMSG_CHAR_CUSTOMIZE
Definition: Opcodes.h:1169
@ CMSG_BUG
Definition: Opcodes.h:488
@ CMSG_BANKER_ACTIVATE
Definition: Opcodes.h:469
@ CMSG_ITEM_REFUND
Definition: Opcodes.h:1234
@ CMSG_CALENDAR_COPY_EVENT
Definition: Opcodes.h:1102
@ CMSG_FORCE_SWIM_SPEED_CHANGE_ACK
Definition: Opcodes.h:261
@ CMSG_GUILD_DISBAND
Definition: Opcodes.h:173
@ CMSG_ITEM_NAME_QUERY
Definition: Opcodes.h:738
@ CMSG_GMTICKET_UPDATETEXT
Definition: Opcodes.h:549
@ CMSG_QUERY_INSPECT_ACHIEVEMENTS
Definition: Opcodes.h:1161
@ CMSG_CONTACT_LIST
Definition: Opcodes.h:132
@ CMSG_CHAR_RENAME
Definition: Opcodes.h:741
@ CMSG_QUESTGIVER_STATUS_MULTIPLE_QUERY
Definition: Opcodes.h:1077
@ CMSG_CALENDAR_EVENT_RSVP
Definition: Opcodes.h:1104
@ CMSG_TAXINODE_STATUS_QUERY
Definition: Opcodes.h:456
@ MSG_PARTY_ASSIGNMENT
Definition: Opcodes.h:940
@ CMSG_ARENA_TEAM_INVITE
Definition: Opcodes.h:877
@ CMSG_GMSURVEY_SUBMIT
Definition: Opcodes.h:840
@ CMSG_GROUP_DISBAND
Definition: Opcodes.h:153
@ CMSG_ALTER_APPEARANCE
Definition: Opcodes.h:1092
@ MSG_MOVE_HEARTBEAT
Definition: Opcodes.h:268
@ CMSG_GMTICKET_DELETETICKET
Definition: Opcodes.h:565
@ CMSG_SET_ACTION_BUTTON
Definition: Opcodes.h:326
@ CMSG_WRAP_ITEM
Definition: Opcodes.h:497
@ CMSG_GAMEOBJECT_QUERY
Definition: Opcodes.h:124
@ CMSG_LOOT_METHOD
Definition: Opcodes.h:152
@ CMSG_GROUP_ACCEPT
Definition: Opcodes.h:144
@ CMSG_GUILD_RANK
Definition: Opcodes.h:591
@ CMSG_BEGIN_TRADE
Definition: Opcodes.h:309
@ CMSG_GUILD_QUERY
Definition: Opcodes.h:114
@ CMSG_QUESTGIVER_REQUEST_REWARD
Definition: Opcodes.h:426
@ CMSG_LEAVE_BATTLEFIELD
Definition: Opcodes.h:767
@ CMSG_INSPECT
Definition: Opcodes.h:306
@ CMSG_GROUP_UNINVITE_GUID
Definition: Opcodes.h:148
@ CMSG_AREA_SPIRIT_HEALER_QUERY
Definition: Opcodes.h:768
@ CMSG_DISMISS_CONTROLLED_VEHICLE
Definition: Opcodes.h:1163
@ CMSG_DEL_FRIEND
Definition: Opcodes.h:136
@ CMSG_GUILD_INFO_TEXT
Definition: Opcodes.h:794
@ CMSG_TAXIQUERYAVAILABLENODES
Definition: Opcodes.h:458
@ CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE
Definition: Opcodes.h:1209
@ CMSG_MESSAGECHAT
Definition: Opcodes.h:179
@ CMSG_QUERY_TIME
Definition: Opcodes.h:492
@ CMSG_QUESTLOG_REMOVE_QUEST
Definition: Opcodes.h:434
@ MSG_CORPSE_QUERY
Definition: Opcodes.h:564
@ CMSG_ADD_FRIEND
Definition: Opcodes.h:135
@ CMSG_QUESTGIVER_CANCEL
Definition: Opcodes.h:430
@ CMSG_PAGE_TEXT_QUERY
Definition: Opcodes.h:120
@ CMSG_FORCE_RUN_SPEED_CHANGE_ACK
Definition: Opcodes.h:257
@ CMSG_LOGOUT_CANCEL
Definition: Opcodes.h:108
@ CMSG_GROUP_RAID_CONVERT
Definition: Opcodes.h:684
@ CMSG_READY_FOR_ACCOUNT_DATA_TIMES
Definition: Opcodes.h:1309
@ CMSG_CHAR_CREATE
Definition: Opcodes.h:84
@ CMSG_BATTLEMASTER_JOIN_ARENA
Definition: Opcodes.h:886
@ CMSG_WHO
Definition: Opcodes.h:128
@ CMSG_HEARTH_AND_RESURRECT
Definition: Opcodes.h:1210
@ CMSG_CORPSE_MAP_POSITION_QUERY
Definition: Opcodes.h:1236
@ CMSG_PLAYER_LOGIN
Definition: Opcodes.h:91
@ CMSG_PLAYER_LOGOUT
Definition: Opcodes.h:104
@ CMSG_NPC_TEXT_QUERY
Definition: Opcodes.h:413
@ CMSG_CALENDAR_UPDATE_EVENT
Definition: Opcodes.h:1100
@ CMSG_RESET_INSTANCES
Definition: Opcodes.h:827
@ CMSG_GROUP_DECLINE
Definition: Opcodes.h:145
@ MSG_SET_DUNGEON_DIFFICULTY
Definition: Opcodes.h:839
@ CMSG_GUILD_SET_PUBLIC_NOTE
Definition: Opcodes.h:594
@ CMSG_DUEL_CANCELLED
Definition: Opcodes.h:395
@ CMSG_GUILD_LEADER
Definition: Opcodes.h:174
@ CMSG_TRAINER_BUY_SPELL
Definition: Opcodes.h:464
@ MSG_GUILD_EVENT_LOG_QUERY
Definition: Opcodes.h:1053
@ MSG_QUERY_NEXT_MAIL_TIME
Definition: Opcodes.h:674
@ CMSG_UNLEARN_SKILL
Definition: Opcodes.h:544
@ CMSG_INITIATE_TRADE
Definition: Opcodes.h:308
@ CMSG_DUEL_ACCEPTED
Definition: Opcodes.h:394
@ CMSG_QUESTGIVER_CHOOSE_REWARD
Definition: Opcodes.h:428
@ CMSG_FORCE_WALK_SPEED_CHANGE_ACK
Definition: Opcodes.h:761
@ CMSG_ARENA_TEAM_DECLINE
Definition: Opcodes.h:880
@ CMSG_REALM_SPLIT
Definition: Opcodes.h:938
@ CMSG_CALENDAR_REMOVE_EVENT
Definition: Opcodes.h:1101
@ CMSG_ARENA_TEAM_QUERY
Definition: Opcodes.h:873
@ CMSG_QUERY_QUESTS_COMPLETED
Definition: Opcodes.h:1310
@ CMSG_CHAR_FACTION_CHANGE
Definition: Opcodes.h:1271
@ CMSG_GUILD_BANK_BUY_TAB
Definition: Opcodes.h:1032
@ MSG_PETITION_RENAME
Definition: Opcodes.h:735
@ CMSG_PETITION_BUY
Definition: Opcodes.h:475
@ CMSG_PETITION_SIGN
Definition: Opcodes.h:478
@ CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK
Definition: Opcodes.h:928
@ CMSG_ARENA_TEAM_LEAVE
Definition: Opcodes.h:881
@ CMSG_REMOVE_GLYPH
Definition: Opcodes.h:1192
@ CMSG_GUILD_BANK_QUERY_TAB
Definition: Opcodes.h:1029
@ CMSG_PLAYER_VEHICLE_ENTER
Definition: Opcodes.h:1222
@ CMSG_BUY_BANK_SLOT
Definition: Opcodes.h:471
@ CMSG_REQUEST_PARTY_MEMBER_STATS
Definition: Opcodes.h:669
@ CMSG_ITEM_QUERY_SINGLE
Definition: Opcodes.h:116
@ CMSG_GUILD_BANK_UPDATE_TAB
Definition: Opcodes.h:1033
@ CMSG_GUILD_MOTD
Definition: Opcodes.h:175
@ CMSG_GAMEOBJ_USE
Definition: Opcodes.h:207
@ CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:763