diff --git a/common/emu_oplist.h b/common/emu_oplist.h index e8ce3b986..62978655a 100644 --- a/common/emu_oplist.h +++ b/common/emu_oplist.h @@ -74,7 +74,9 @@ N(OP_CharacterCreateRequest), N(OP_CharInventory), N(OP_Charm), N(OP_ChatMessage), +N(OP_ClearAA), N(OP_ClearBlockedBuffs), +N(OP_ClearLeadershipAbilities), N(OP_ClearNPCMarks), N(OP_ClearObject), N(OP_ClearSurname), diff --git a/utils/patches/patch_RoF.conf b/utils/patches/patch_RoF.conf index 16973c202..05a3a4a76 100644 --- a/utils/patches/patch_RoF.conf +++ b/utils/patches/patch_RoF.conf @@ -94,7 +94,8 @@ OP_ClearBlockedBuffs=0x5d3c OP_WorldObjectsSent=0x7fa8 OP_SendExpZonein=0x25ab OP_SendAATable=0x7791 -OP_ShroudClearAA=0x422e +OP_ClearAA=0x422e +OP_ClearLeadershipAbilities=0xb978 OP_RespondAA=0x379d OP_UpdateAA=0x504f OP_SendAAStats=0x3d1c diff --git a/utils/patches/patch_SoD.conf b/utils/patches/patch_SoD.conf index f42231238..a5dee668c 100644 --- a/utils/patches/patch_SoD.conf +++ b/utils/patches/patch_SoD.conf @@ -531,7 +531,8 @@ OP_Shroud=0x6d1f OP_ShroudRemove=0x17f6 OP_ShroudUnknown1=0x169a OP_ShroudUnknown2=0x4292 -OP_ShroudClearAA=0x3bef +OP_ClearAA=0x3bef +OP_ClearLeadershipAbilities=0x6e58 OP_ShroudSelectionWindow=0x4d79 OP_ShroudRequestStats=0x28ce OP_ShroudRespondStats=0x33f2 diff --git a/utils/patches/patch_SoF.conf b/utils/patches/patch_SoF.conf index 7b0c41ad2..80aee8bdc 100644 --- a/utils/patches/patch_SoF.conf +++ b/utils/patches/patch_SoF.conf @@ -85,7 +85,8 @@ OP_TaskActivity=0x2E60 #SEQ 12/04/08 OP_CompletedTasks=0x75AC #Derision 2009 OP_Weather=0x70A5 #SEQ 12/04/08 OP_SendAATable=0x6F05 #Trevius 12/20/08 -OP_ShroudClearAA=0x71b9 +OP_ClearAA=0x71b9 +OP_ClearLeadershipAbilities=0x74e5 OP_UpdateAA=0x45D2 #Trevius 12/20/08 OP_RespondAA=0x4426 #Trevius 12/20/08 OP_ReqClientSpawn=0x014C #SEQ 12/04/08 diff --git a/utils/patches/patch_Underfoot.conf b/utils/patches/patch_Underfoot.conf index 2b1c41dd9..09c6a8252 100644 --- a/utils/patches/patch_Underfoot.conf +++ b/utils/patches/patch_Underfoot.conf @@ -88,7 +88,8 @@ OP_TaskActivity=0x31f3 # C OP_CompletedTasks=0x687f # C OP_Weather=0x4658 # V OP_SendAATable=0x6ef9 # V -OP_ShroudClearAA=0x2cd4 +OP_ClearAA=0x2cd4 +OP_ClearLeadershipAbilities=0x7b77 OP_UpdateAA=0x7bf6 # V OP_RespondAA=0x1fbd # C 0x2bad OP_ReqClientSpawn=0x69cd # V diff --git a/utils/scripts/opcode_scripts/opcodelist.txt b/utils/scripts/opcode_scripts/opcodelist.txt index 6ef0916f9..8a4ebf87d 100644 --- a/utils/scripts/opcode_scripts/opcodelist.txt +++ b/utils/scripts/opcode_scripts/opcodelist.txt @@ -71,32 +71,32 @@ RoF2 Built May 10 2013 23:30:08 0x6d9d 0x2538 0x0017 -0x017 +0x017 0x691a 0x0520 0x200f -0x65ab OP_WhoAllRequest -0x674b +0x65ab +0x674b OP_WhoAllRequest 0x6a02 0x0e48 0x12a6 OP_GuildMemberList 0x0eae 0x2921 0x7056 -0x507a OP_GuildList -0x6279 +0x507a +0x6279 OP_GuildList 0x5a26 0x5b51 0x0bad 0x59ad 0x2264 -0x004c OP_SkillUpdate -0x04c OP_ShopPlayerBuy -0x0ddd +0x004c +0x04c OP_SkillUpdate +0x0ddd OP_ShopPlayerBuy 0x4101 -0x5f03 OP_Petition +0x5f03 0x3de3 -0x1901 OP_ShopPlayerSell +0x1901 OP_Petition 0x791b 0x3a5d 0x7013 @@ -190,7 +190,7 @@ RoF2 Built May 10 2013 23:30:08 0x4466 0x1287 OP_CastSpell 0x5467 OP_ManaChange -0x43af OP_ManaChange +0x43af OP_ColoredText 0x6a0d 0x217c OP_MemorizeSpell 0x260a OP_SenseHeading @@ -207,18 +207,18 @@ RoF2 Built May 10 2013 23:30:08 0x2acd 0x7c6d 0x6618 +0x6c65 - -0x6c65 OP_GroupInvite2 -0x32c2 OP_CancelInvite -0x2a50 OP_GroupFollow2 -0x2060 OP_Jump -0x31f4 +0x32c2 OP_GroupInvite2 +0x2a50 OP_CancelInvite +0x2060 OP_GroupFollow2 +0x31f4 OP_Jump 0x4420 0x1256 0x4d38 0x50f5 + 0x79c5 OP_GMHideMe 0x2fab 0x57a5 @@ -239,7 +239,7 @@ RoF2 Built May 10 2013 23:30:08 0x2eb3 0x3db3 0x4008 - + 0x373b OP_Emote 0x7280 OP_DeleteSpawn 0x4bc2 @@ -518,8 +518,9 @@ RoF2 Built May 10 2013 23:30:08 0x728a 0x5232 0x77bd -0x70c0 -0x633c OP_ItemLinkResponse + +0x70c0 OP_ItemLinkResponse +0x633c 0x63eb 0x4765 0x6290 @@ -559,22 +560,20 @@ RoF2 Built May 10 2013 23:30:08 0x2b10 0x4d09 0x0083 OP_SpecialMesg -0x083 OP_TaskDescription -0x3714 OP_TaskActivity -0x08d3 OP_CancelTask -0x39f0 -0x5f7a OP_ItemScriptAdjustment -0x006a -0x06a +0x3714 OP_TaskDescription +0x08d3 OP_TaskActivity +0x39f0 OP_CancelTask +0x5f7a +0x006a OP_ItemScriptAdjustment 0x7465 0x31c0 0x14ba 0x25e0 0x62a0 0x407a -0x7c88 OP_WhoAllResponse +0x7c88 0x51b8 -0x578c +0x578c OP_WhoAllResponse 0x1197 0x2dd3 0x333a @@ -629,16 +628,16 @@ RoF2 Built May 10 2013 23:30:08 0x6259 OP_PostEnterWorld 0x0f70 0x00d1 -0x0d1 +0x0d1 0x1eac 0x1b54 0x5e23 0x7910 0x152e 0x7555 -0x05ce OP_GroupFollow -0x1649 OP_GroupInvite -0x6110 +0x05ce +0x1649 OP_GroupFollow +0x6110 OP_GroupInvite 0x0641 0x578f OP_EnterWorld 0x6cb8 @@ -755,7 +754,7 @@ RoF2 Built May 10 2013 23:30:08 0x6368 0x6192 0x3aa4 -0x502e +0x502e OP_Marquee 0x1b01 OP_AdventureUpdate 0x0f24 0x1015 @@ -831,61 +830,62 @@ RoF2 Built May 10 2013 23:30:08 0x150b 0x11e3 0x1ad3 -0x59ca -0x4701 OP_DzAddPlayer -0x1abc OP_DzRemovePlayer -0x405b OP_DzSwapPlayer -0x543d OP_DzMakeLeader -0x14c6 OP_DzPlayerList -0x7f4b OP_DzJoinExpeditionConfirm -0x1950 OP_DzJoinExpeditionReply + +0x59ca OP_DzAddPlayer +0x4701 OP_DzRemovePlayer +0x1abc OP_DzSwapPlayer +0x405b OP_DzMakeLeader +0x543d OP_DzPlayerList +0x14c6 OP_DzJoinExpeditionConfirm +0x7f4b OP_DzJoinExpeditionReply +0x1950 0x64b5 -0x0398 -0x7b68 OP_DzListTimers -0x4f7e -0x9119 OP_DzExpeditionInfo -0x205f OP_DzExpeditionList -0xb2e3 OP_DzQuit -0x32f0 OP_DzMemberStatus -0x3de9 OP_DzLeaderStatus -0x5ae4 OP_DzMemberList -0x4d6e -0x4fd0 OP_OnLevelMessage +0x0398 OP_DzListTimers +0x7b68 +0x4f7e OP_DzExpeditionInfo +0x9119 OP_DzExpeditionList +0x205f OP_DzQuit +0xb2e3 OP_DzMemberStatus +0x32f0 OP_DzLeaderStatus +0x3de9 OP_DzMemberList +0x5ae4 +0x4d6e OP_OnLevelMessage +0x4fd0 0x575b -0x7e94 -0x5189 OP_DzExpeditionEndsWarning -0x383c OP_BankerChange -0x791e -0x5c74 OP_RecipesFavorite -0x71b1 +0x7e94 OP_DzExpeditionEndsWarning +0x5189 +0x383c +0x791e OP_BankerChange +0x5c74 +0x71b1 OP_RecipesFavorite 0x20ab 0x025f -0x214a OP_PopupResponse -0x08a6 OP_ItemRecastDelay -0x15a9 OP_PVPLeaderBoardDetailsRequest -0x3707 OP_PVPLeaderBoardRequest -0x04aa OP_PVPLeaderBoardDetailsReply -0x25b7 OP_PVPLeaderBoardReply -0x071f +0x214a +0x08a6 OP_PopupResponse +0x15a9 OP_ItemRecastDelay +0x3707 OP_PVPLeaderBoardDetailsRequest +0x04aa OP_PVPLeaderBoardRequest +0x25b7 OP_PVPLeaderBoardDetailsReply +0x071f OP_PVPLeaderBoardReply 0x2dee 0x4e62 0x0c91 -0x18d3 OP_Weblink -0x6f4b OP_PVPStats -0x4b15 +0x18d3 +0x6f4b OP_Weblink +0x4b15 OP_PVPStats 0x6755 0x5c32 -0x5770 +0x5770 OP_PlayMP3 0x7425 0x5eed 0x574e 0x11b4 0x4ed6 0x0d9f -0x7d23 OP_ClearSurname -0x3fb0 -0xc693 OP_RemoveNimbusEffect -0x7b1e +0x7d23 +0x3fb0 OP_ClearSurname +0xc693 +0x7b1e OP_RemoveNimbusEffect 0x20ae 0x0727 0x3771 @@ -913,8 +913,7 @@ RoF2 Built May 10 2013 23:30:08 0x756a 0x7745 0x039d -0x0f50 - +0x0f50 OP_ClearAA 0x66b5 OP_SendAATable 0x0afb OP_AugmentInfo 0x10f6 @@ -985,7 +984,7 @@ RoF2 Built May 10 2013 23:30:08 0x5b72 OP_AdventureMerchantPurchase 0x2f9b OP_AdventureMerchantSell 0x3e47 OP_AdventureMerchantResponse -0x0b7d +0x0b7d OP_DzChooseZone 0x2818 0x35bd 0x51df @@ -1071,7 +1070,7 @@ RoF2 Built May 10 2013 23:30:08 0x4085 0x1507 0x5d93 -0x1669 +0x1669 OP_ResetAA 0x4664 0x312d 0x2215 @@ -1096,16 +1095,16 @@ RoF2 Built May 10 2013 23:30:08 0x2b37 OP_ShroudRequestStats 0x6c04 OP_ShroudRespondStats 0x1cd0 OP_ShroudSelect -0x79da +0x79da OP_ShroudSelectCancel 0x7806 0x541d OP_ShroudProgress -0x3823 +0x3823 OP_ShroudProgress2 0x6562 OP_Shroud 0x4b25 0x2507 0x3acc 0x006e -0x06e +0x06e 0x0728 0x66cd 0x3c54 @@ -1133,7 +1132,7 @@ RoF2 Built May 10 2013 23:30:08 0x6b0b 0x555a 0x7786 -0x67e8 +0x67e8 OP_ShroudRemove 0x6381 0x5628 0xb52f @@ -1148,7 +1147,7 @@ RoF2 Built May 10 2013 23:30:08 0x30e5 0x618c 0x58e6 -0x1456 +0x1456 OP_ShroudUnknown1 0x053c OP_Untargetable 0x71da 0x333f @@ -1167,7 +1166,7 @@ RoF2 Built May 10 2013 23:30:08 0x7631 0x298e 0x003c -0x03c +0x03c 0x0b0f 0x5a72 0x0767 @@ -1180,43 +1179,43 @@ RoF2 Built May 10 2013 23:30:08 0x7707 0x3fb2 0x289e -0x3342 -0x5892 OP_GroupMentor -0x189c OP_NPCMoveUpdate -0x097b OP_ItemVerifyRequest -0x2115 OP_ItemVerifyReply +0x3342 OP_GroupMentor +0x5892 OP_NPCMoveUpdate +0x189c OP_ItemVerifyRequest +0x097b OP_ItemVerifyReply +0x2115 0x6411 0x6471 0x134a 0x1304 -0x5a79 +0x5a79 OP_ShieldGroup 0x2dde 0x7d50 0x1d47 0x10ec -0x000f -0x00f OP_RestState +0x000f OP_RestState +0x00f 0x0f -0x465b -0x2289 OP_ItemViewUnknown +0x465b OP_ItemViewUnknown +0x2289 0x023b 0x4223 0x7261 0x2af9 0x19aa -0x66dd OP_GMTrainSkillConfirm -0x4b64 +0x66dd +0x4b64 OP_GMTrainSkillConfirm 0x319e 0x1af3 0x449c -0x8582 #OP_LoginUnknown1 -0x4b8d #OP_LoginUnknown2 -0x298d +0x8582 +0x4b8d #OP_LoginUnknown1 +0x298d #OP_LoginUnknown2 0x06c8 0x4f93 0x412d 0x001f -0x01f +0x01f 0x60f6 0x1a9e 0x798e @@ -1249,8 +1248,8 @@ RoF2 Built May 10 2013 23:30:08 0x14ac 0x0d92 0x0001 -0x001 -0x01 +0x001 +0x01 0x09bb 0x9e18 0x0d9d @@ -1267,23 +1266,23 @@ RoF2 Built May 10 2013 23:30:08 0x6dec 0x56c9 0x3ee6 -0x7121 OP_AltCurrency +0x7121 0x62ab 0x5d88 -0x05f0 OP_MercenaryAssign -0x6b6d OP_AltCurrencyMerchantRequest -0x61cb OP_AltCurrencyPurchase -0x0165 OP_AltCurrencySell -0x74ec OP_AltCurrencyMerchantReply -0x5409 OP_AltCurrencySellSelection -0x3788 -0x40b6 -0x27a2 -0x532a OP_AltCurrencyReclaim +0x05f0 +0x6b6d OP_AltCurrency +0x61cb +0x0165 +0x74ec OP_MercenaryAssign +0x5409 OP_AltCurrencyMerchantRequest +0x3788 OP_AltCurrencyPurchase +0x40b6 OP_AltCurrencySell +0x27a2 OP_AltCurrencyMerchantReply +0x532a OP_AltCurrencySellSelection 0x3899 0x7567 0x4820 -0x0339 +0x0339 OP_AltCurrencyReclaim 0x0c12 0x074d 0x47ba @@ -1326,17 +1325,18 @@ RoF2 Built May 10 2013 23:30:08 0x65c7 0x5620 0x587e -0x3897 OP_SendFindableNPCs +0x3897 0x7e62 0x67ae 0x74f4 -0x4613 +0x4613 OP_SendFindableNPCs 0x2a92 0x6d6e 0x2c01 0x1243 0x133e 0x67fc + 0x49e1 OP_HideCorpse 0x0e44 0x239a @@ -1423,13 +1423,13 @@ RoF2 Built May 10 2013 23:30:08 0x6c3e 0xee80 0x40e5 -0x76d9 -0x1dc8 OP_GuildCreate +0x76d9 OP_GuildCreate +0x1dc8 0x794a 0x35c5 0x137d 0x004a -0x04a +0x04a 0x29b4 0x18f1 0x17fc @@ -1600,7 +1600,7 @@ RoF2 Built May 10 2013 23:30:08 0x2d28 0x5dab 0x005a -0x05a +0x05a 0x4506 0x046d 0x36db @@ -1668,4 +1668,4 @@ RoF2 Built May 10 2013 23:30:08 0x4efa 0x1da9 0x6678 -0x16e8 +0x16e8 \ No newline at end of file diff --git a/utils/scripts/opcode_scripts/patch_NEW.conf b/utils/scripts/opcode_scripts/patch_NEW.conf index 148d00ba9..29bc320d9 100644 --- a/utils/scripts/opcode_scripts/patch_NEW.conf +++ b/utils/scripts/opcode_scripts/patch_NEW.conf @@ -10,7 +10,7 @@ # OP_CommonMessage -> OP_ChannelMessage OP_Unknown=0x0000 -OP_ExploreUnknown=0x0000 used for unknown explorer +OP_ExploreUnknown=0x0000 # used for unknown explorer # world packets # Required to reach Char Select: @@ -100,7 +100,7 @@ OP_SendAAStats=0x43c8 OP_AAExpUpdate=0x7d14 OP_ExpUpdate=0x20ed OP_HPUpdate=0x2828 -OP_ManaChange=0x43af +OP_ManaChange=0x5467 OP_TGB=0x0876 OP_SpecialMesg=0x0083 OP_GuildMemberList=0x12a6 @@ -108,18 +108,18 @@ OP_GuildMOTD=0x3e13 OP_CharInventory=0x5ca6 OP_WearChange=0x7994 OP_ClientUpdate=0x7dfc -OP_ClientReady=0x345d # 0x422d +OP_ClientReady=0x345d OP_SetServerFilter=0x444d # Guild Opcodes - Disabled until crashes are resolved in RoF -OP_GetGuildMOTD=0x36e0 # Was 0x35dc -OP_GetGuildMOTDReply=0x4f1f # Was 0x4586 -OP_GuildMemberUpdate=0x69b9 # Was 0x5643 +OP_GetGuildMOTD=0x36e0 +OP_GetGuildMOTDReply=0x4f1f +OP_GuildMemberUpdate=0x69b9 OP_GuildInvite=0x7099 OP_GuildRemove=0x1444 OP_GuildPeace=0x67e3 OP_SetGuildMOTD=0x0b0b -OP_GuildList=0x507a +OP_GuildList=0x6279 OP_GuildWar=0x1ffb OP_GuildLeader=0x7e09 OP_GuildDelete=0x3708 @@ -127,12 +127,12 @@ OP_GuildInviteAccept=0x7053 OP_GuildDemote=0x2d4e OP_GuildPromote=0x0000 OP_GuildPublicNote=0x5053 -OP_GuildManageBanker=0x748f # Was 0x0737 -OP_GuildBank=0x5134 # Was 0x10c3 +OP_GuildManageBanker=0x748f +OP_GuildBank=0x5134 OP_SetGuildRank=0x0b9c OP_GuildUpdateURLAndChannel=0x2958 OP_GuildStatus=0x7326 -OP_GuildCreate=0x1dc8 # or maybe 0x086e +OP_GuildCreate=0x76d9 OP_GuildMemberLevelUpdate=0x0000 # Unused? OP_ZoneGuildList=0x0000 # Unused? OP_GetGuildsList=0x0000 # Unused? @@ -152,21 +152,21 @@ OP_GMHideMe=0x79c5 OP_GMDelCorpse=0x607e OP_GMApproval=0x6db5 OP_GMToggle=0x2097 -OP_GMSummon=0x486f # Was 0x684f -OP_GMEmoteZone=0x1cfd # Was 0x0655 -OP_GMEmoteWorld=0x458e # Was 0x1935 +OP_GMSummon=0x486f +OP_GMEmoteZone=0x1cfd +OP_GMEmoteWorld=0x458e OP_GMFind=0x4a8f OP_GMKick=0x26a7 OP_GMKill=0x51d3 -OP_GMNameChange=0x035f # Was 0x4434 -OP_GMLastName=0x46ce # Was 0x3077 +OP_GMNameChange=0x035f +OP_GMLastName=0x46ce # Misc Opcodes OP_InspectRequest=0x57bc OP_InspectAnswer=0x71ac OP_InspectMessageUpdate=0x4d25 OP_BeginCast=0x318f -OP_ColoredText=0x0000 +OP_ColoredText=0x43af OP_ConsentResponse=0x384a OP_MemorizeSpell=0x217c OP_SwapSpell=0x0efa @@ -179,8 +179,8 @@ OP_Illusion=0x312a OP_MoneyOnCorpse=0x5f44 OP_RandomReply=0x106b OP_DenyResponse=0x2382 -OP_SkillUpdate=0x004c -OP_GMTrainSkillConfirm=0x66dd # 0x3960 +OP_SkillUpdate=0x04c +OP_GMTrainSkillConfirm=0x4b64 OP_RandomReq=0x7b10 OP_Death=0x6517 OP_GMTraining=0x1966 @@ -194,7 +194,7 @@ OP_AutoFire=0x241e OP_PetCommands=0x0159 OP_DeleteSpell=0x52e5 OP_Surname=0x0423 -OP_ClearSurname=0x7d23 +OP_ClearSurname=0x3fb0 OP_FaceChange=0x5578 OP_SenseHeading=0x260a OP_Action=0x744c @@ -212,19 +212,19 @@ OP_AssistGroup=0x27f8 OP_MoveCoin=0x0bcf OP_ZonePlayerToBind=0x0ecb OP_KeyRing=0x6857 -OP_WhoAllRequest=0x65ab -OP_WhoAllResponse=0x7c88 +OP_WhoAllRequest=0x674b +OP_WhoAllResponse=0x578c OP_FriendsWho=0x3956 OP_ConfirmDelete=0x43a3 OP_Logout=0x4ac6 OP_Rewind=0x1745 OP_TargetCommand=0x58e2 OP_Hide=0x67fe -OP_Jump=0x2060 +OP_Jump=0x31f4 OP_Camp=0x28ec OP_Emote=0x373b OP_SetRunMode=0x009f -OP_BankerChange=0x383c +OP_BankerChange=0x791e OP_TargetMouse=0x075d OP_MobHealth=0x37b1 OP_InitialMobHealth=0x0000 # Unused? @@ -243,7 +243,7 @@ OP_MoveItem=0x32ee OP_DeleteItem=0x18ad OP_DeleteCharge=0x01b8 OP_ItemPacket=0x368e -OP_ItemLinkResponse=0x633c +OP_ItemLinkResponse=0x70c0 OP_ItemLinkClick=0x4cef OP_ItemPreview=0x6b5c OP_NewSpawn=0x6097 @@ -265,19 +265,19 @@ OP_RezzAnswer=0x701c OP_Shielding=0x48c1 OP_RequestDuel=0x3af1 OP_MobRename=0x2c57 -OP_AugmentItem=0x661b # Was 0x37cb +OP_AugmentItem=0x661b OP_WeaponEquip1=0x34a7 -OP_WeaponEquip2=0x559a # Was 0x6022 -OP_WeaponUnequip2=0x2d25 # Was 0x0110 +OP_WeaponEquip2=0x559a +OP_WeaponUnequip2=0x2d25 OP_ApplyPoison=0x31e6 OP_Save=0x4a39 -OP_TestBuff=0x7cb8 # Was 0x3772 +OP_TestBuff=0x7cb8 OP_CustomTitles=0x100e OP_Split=0x3a54 OP_YellForHelp=0x4e56 OP_LoadSpellSet=0x261d OP_Bandolier=0x7677 -OP_PotionBelt=0x1a3e # Was 0x4d3b +OP_PotionBelt=0x1a3e OP_DuelResponse=0x6a46 OP_DuelResponse2=0x68d3 OP_SaveOnZoneReq=0x600d @@ -290,14 +290,14 @@ OP_LeadershipExpUpdate=0x2797 OP_PurchaseLeadershipAA=0x0026 OP_UpdateLeadershipAA=0x026 OP_MarkNPC=0x5a58 -OP_MarkRaidNPC=0x74bd #unimplemented +OP_MarkRaidNPC=0x74bd #unimplemented OP_ClearNPCMarks=0x2003 OP_ClearRaidNPCMarks=0x20d3 #unimplemented OP_DelegateAbility=0x76b8 OP_SetGroupTarget=0x2814 OP_Charm=0x5d92 OP_Stun=0x36a4 -OP_SendFindableNPCs=0x3897 +OP_SendFindableNPCs=0x4613 OP_FindPersonRequest=0x5cea OP_FindPersonReply=0x7e58 OP_Sound=0x1a30 @@ -305,69 +305,70 @@ OP_PetBuffWindow=0x5882 OP_LevelAppearance=0x3bc9 OP_Translocate=0x6580 OP_Sacrifice=0x1821 -OP_PopupResponse=0x214a -OP_OnLevelMessage=0x4fd0 +OP_PopupResponse=0x08a6 +OP_OnLevelMessage=0x4d6e OP_AugmentInfo=0x0afb -OP_Petition=0x5f03 +OP_Petition=0x1901 OP_SomeItemPacketMaybe=0x747c -OP_PVPStats=0x6f4b # Unsure -OP_PVPLeaderBoardRequest=0x3707 -OP_PVPLeaderBoardReply=0x25b7 -OP_PVPLeaderBoardDetailsRequest=0x15a9 -OP_PVPLeaderBoardDetailsReply=0x04aa -OP_RestState=0x00f +OP_PVPStats=0x4b15 +OP_PVPLeaderBoardRequest=0x04aa +OP_PVPLeaderBoardReply=0x071f +OP_PVPLeaderBoardDetailsRequest=0x3707 +OP_PVPLeaderBoardDetailsReply=0x25b7 +OP_RestState=0x000f OP_RespawnWindow=0x28bc OP_LDoNButton=0x5327 -OP_SetStartCity=0x6326 # Was 0x2d1b +OP_SetStartCity=0x6326 OP_VoiceMacroIn=0x17fd OP_VoiceMacroOut=0x409a -OP_ItemViewUnknown=0x2289 +OP_ItemViewUnknown=0x465b OP_VetRewardsAvaliable=0x590e OP_VetClaimRequest=0x1126 OP_VetClaimReply=0x16d4 -OP_DisciplineUpdate=0x759e # Was 0x2f05 -OP_DisciplineTimer=0x6989 # Was 0x5e3f +OP_DisciplineUpdate=0x759e +OP_DisciplineTimer=0x6989 OP_BecomeCorpse=0x0000 # Unused? OP_Action2=0x0000 # Unused? OP_MobUpdate=0x2c84 -OP_NPCMoveUpdate=0x189c +OP_NPCMoveUpdate=0x5892 OP_CameraEffect=0x127f OP_SpellEffect=0x5936 -OP_RemoveNimbusEffect=0xc693 -OP_AltCurrency=0x7121 -OP_AltCurrencyMerchantRequest=0x6b6d -OP_AltCurrencyMerchantReply=0x74ec -OP_AltCurrencyPurchase=0x61cb -OP_AltCurrencySell=0x0165 -OP_AltCurrencySellSelection=0x5409 -OP_AltCurrencyReclaim=0x532a -OP_CrystalCountUpdate=0x467f # Was 0x3f60 -OP_CrystalCreate=0x7aee # Was 0x5a82 -OP_CrystalReclaim=0x2439 # Was 0x7616 +OP_RemoveNimbusEffect=0x7b1e +OP_AltCurrency=0x6b6d +OP_AltCurrencyMerchantRequest=0x5409 +OP_AltCurrencyMerchantReply=0x27a2 +OP_AltCurrencyPurchase=0x3788 +OP_AltCurrencySell=0x40b6 +OP_AltCurrencySellSelection=0x532a +OP_AltCurrencyReclaim=0x0339 +OP_CrystalCountUpdate=0x467f +OP_CrystalCreate=0x7aee +OP_CrystalReclaim=0x2439 OP_Untargetable=0x053c OP_IncreaseStats=0x70a3 -OP_Weblink=0x18d3 -#OP_OpenInventory=0x0000 # Likely does not exist in RoF -U +OP_Weblink=0x6f4b OP_OpenContainer=0x0000 -OP_Marquee=0x0000 +OP_Marquee=0x502e +OP_ItemRecastDelay=0x15a9 +#OP_OpenInventory=0x0000 # Likely does not exist in RoF -U -OP_DzQuit=0xb2e3 -OP_DzListTimers=0x7b68 -OP_DzAddPlayer=0x4701 -OP_DzRemovePlayer=0x1abc -OP_DzSwapPlayer=0x405b -OP_DzMakeLeader=0x543d -OP_DzPlayerList=0x14c6 -OP_DzJoinExpeditionConfirm=0x7f4b -OP_DzJoinExpeditionReply=0x1950 -OP_DzExpeditionInfo=0x9119 -OP_DzExpeditionList=0x205f -OP_DzMemberStatus=0x32f0 -OP_DzLeaderStatus=0x3de9 -OP_DzExpeditionEndsWarning=0x5189 -OP_DzMemberList=0x5ae4 -OP_DzCompass=0x3e0e # Was 0x4f09 -OP_DzChooseZone=0x0000 # Maybe 0x29d6 +OP_DzQuit=0x205f +OP_DzListTimers=0x0398 +OP_DzAddPlayer=0x59ca +OP_DzRemovePlayer=0x4701 +OP_DzSwapPlayer=0x1abc +OP_DzMakeLeader=0x405b +OP_DzPlayerList=0x543d +OP_DzJoinExpeditionConfirm=0x14c6 +OP_DzJoinExpeditionReply=0x7f4b +OP_DzExpeditionInfo=0x4f7e +OP_DzExpeditionList=0x9119 +OP_DzMemberStatus=0xb2e3 +OP_DzLeaderStatus=0x32f0 +OP_DzExpeditionEndsWarning=0x7e94 +OP_DzMemberList=0x3de9 +OP_DzCompass=0x3e0e +OP_DzChooseZone=0x0b7d # New Opcodes OP_SpawnPositionUpdate=0x0000 # Actually OP_MobUpdate ? @@ -402,7 +403,7 @@ OP_BazaarSearch=0x39d6 OP_TraderDelItem=0x0000 OP_BecomeTrader=0x61b3 OP_TraderShop=0x31df -OP_Trader=0x4ef5 # Was 0x6790 +OP_Trader=0x4ef5 OP_TraderBuy=0x0000 OP_Barter=0x243a OP_ShopItem=0x0000 @@ -427,15 +428,15 @@ OP_FinishWindow2=0x40ef # Sent on Live for what seems to be item existance verification # Ex. Before Right Click Effect happens from items -OP_ItemVerifyRequest=0x097b -OP_ItemVerifyReply=0x2115 +OP_ItemVerifyRequest=0x189c +OP_ItemVerifyReply=0x097b # merchant stuff -OP_ShopPlayerSell=0x1901 +OP_ShopPlayerSell=0x0000 OP_ShopRequest=0x4fed OP_ShopEnd=0x30a8 OP_ShopEndConfirm=0x3196 -OP_ShopPlayerBuy=0x04c +OP_ShopPlayerBuy=0x0ddd OP_ShopDelItem=0x724f # tradeskill stuff: @@ -443,7 +444,7 @@ OP_ClickObject=0x4aa1 OP_ClickObjectAction=0x0c1e OP_ClearObject=0x7a11 OP_RecipeDetails=0x40d7 -OP_RecipesFavorite=0x5c74 +OP_RecipesFavorite=0x71b1 OP_RecipesSearch=0x1db6 OP_RecipeReply=0x6e02 OP_RecipeAutoCombine=0x6261 @@ -451,10 +452,10 @@ OP_TradeSkillCombine=0x579a # Tribute Packets: OP_OpenGuildTributeMaster=0x378d -OP_OpenTributeMaster=0x7666 # Was 0x40f5 +OP_OpenTributeMaster=0x7666 OP_SelectTribute=0x79fc OP_TributeItem=0x4f3e -OP_TributeMoney=0x58fb # Was 0x6fed +OP_TributeMoney=0x58fb OP_TributeToggle=0x241d OP_TributePointUpdate=0x5300 OP_TributeNPC=0x0000 @@ -471,11 +472,11 @@ OP_AdventureRequest=0x2c6c OP_AdventureDetails=0x5648 OP_AdventureData=0x7171 OP_AdventureUpdate=0x1b01 -OP_AdventureMerchantRequest=0x6922 # Was 654d -OP_AdventureMerchantResponse=0x3e47 # Was 7949 -OP_AdventureMerchantPurchase=0x5b72 # Was 155a -OP_AdventureMerchantSell=0x2f9b # Was 389c -OP_AdventurePointsUpdate=0x65c3 # Was 7589 +OP_AdventureMerchantRequest=0x6922 +OP_AdventureMerchantResponse=0x3e47 +OP_AdventureMerchantPurchase=0x5b72 +OP_AdventureMerchantSell=0x2f9b +OP_AdventurePointsUpdate=0x65c3 OP_AdventureStatsRequest=0x5a62 OP_AdventureStatsReply=0x2370 OP_AdventureLeaderboardRequest=0x7093 @@ -483,16 +484,16 @@ OP_AdventureLeaderboardReply=0x7f79 # Group Opcodes OP_GroupDisband=0x4c10 -OP_GroupInvite=0x1649 -OP_GroupFollow=0x05ce +OP_GroupInvite=0x6110 +OP_GroupFollow=0x1649 OP_GroupUpdate=0x3abb OP_GroupUpdateB=0x6194 OP_GroupCancelInvite=0x0000 OP_GroupAcknowledge=0x7323 OP_GroupDelete=0x0f6c -OP_CancelInvite=0x32c2 -OP_GroupFollow2=0x2a50 -OP_GroupInvite2=0x6c65 +OP_CancelInvite=0x2a50 +OP_GroupFollow2=0x2060 +OP_GroupInvite2=0x32c2 OP_GroupDisbandYou=0x1ae5 OP_GroupDisbandOther=0x74da OP_GroupLeaderChange=0x21b4 @@ -500,7 +501,7 @@ OP_GroupRoles=0x70e2 OP_GroupMakeLeader=0x4229 OP_DoGroupLeadershipAbility=0x1fb5 OP_GroupLeadershipAAUpdate=0x02cf -OP_GroupMentor=0x5892 +OP_GroupMentor=0x3342 OP_InspectBuffs=0x486c # LFG/LFP Opcodes @@ -521,7 +522,7 @@ OP_RaidJoin=0x0000 # Button-push commands OP_Taunt=0x2703 OP_CombatAbility=0x3eba -OP_SenseTraps=0x02af # Was 0x2ee0 +OP_SenseTraps=0x02af OP_PickPocket=0x39e8 OP_DisarmTraps=0x78bf OP_Disarm=0x5ec8 @@ -534,15 +535,15 @@ OP_Bind_Wound=0x0386 OP_LDoNOpen=0x3d5c # Task packets -OP_TaskDescription=0x083 -OP_TaskActivity=0x3714 +OP_TaskDescription=0x3714 +OP_TaskActivity=0x08d3 OP_CompletedTasks=0x4eba OP_TaskActivityComplete=0x5e19 OP_AcceptNewTask=0x0a23 -OP_CancelTask=0x08d3 -OP_TaskMemberList=0x5727 # Was 0x1656 -OP_OpenNewTasksWindow=0x48a2 # Was 0x11de -OP_AvaliableTask=0x36e8 # Was 0x2377 +OP_CancelTask=0x39f0 +OP_TaskMemberList=0x5727 +OP_OpenNewTasksWindow=0x48a2 +OP_AvaliableTask=0x36e8 OP_TaskHistoryRequest=0x5f1c OP_TaskHistoryReply=0x3d05 OP_DeclineAllTasks=0x0000 @@ -584,7 +585,7 @@ OP_LoginComplete=0x0000 # discovered opcodes not yet used: OP_PickLockSuccess=0x0000 -OP_PlayMP3=0x0000 +OP_PlayMP3=0x5770 OP_ReclaimCrystals=0x0000 OP_DynamicWall=0x0000 OP_OpenDiscordMerchant=0x0000 @@ -657,5 +658,3 @@ OP_RAWOutOfSession=0x0000 # we need to document the differences between these packets to make identifying them easier OP_Some3ByteHPUpdate=0x0000 # initial HP update for mobs OP_InitialHPUpdate=0x0000 - -OP_ItemRecastDelay=0x08a6 diff --git a/utils/scripts/opcode_scripts/patch_OLD.conf b/utils/scripts/opcode_scripts/patch_OLD.conf index 4bc1f9097..589c47468 100644 --- a/utils/scripts/opcode_scripts/patch_OLD.conf +++ b/utils/scripts/opcode_scripts/patch_OLD.conf @@ -10,7 +10,7 @@ # OP_CommonMessage -> OP_ChannelMessage OP_Unknown=0x0000 -OP_ExploreUnknown=0x0000 used for unknown explorer +OP_ExploreUnknown=0x0000 # used for unknown explorer # world packets # Required to reach Char Select: @@ -19,8 +19,8 @@ OP_ApproveWorld=0x7499 OP_LogServer=0x7ceb OP_SendCharInfo=0x00d2 OP_ExpansionInfo=0x590d -OP_GuildsList=0x7056 -OP_EnterWorld=0x0641 +OP_GuildsList=0x0000 +OP_EnterWorld=0x578f OP_PostEnterWorld=0x6259 OP_World_Client_CRC1=0x12cc OP_World_Client_CRC2=0x0f13 @@ -28,24 +28,24 @@ OP_SendSpellChecksum=0x0000 OP_SendSkillCapsChecksum=0x0000 # Character Select Related: -OP_SendMaxCharacters=0x05a8 -OP_SendMembership=0x057b -OP_SendMembershipDetails=0x6a98 -OP_CharacterCreateRequest=0x655c +OP_SendMaxCharacters=0x5475 +OP_SendMembership=0x7acc +OP_SendMembershipDetails=0x057b +OP_CharacterCreateRequest=0x6773 OP_CharacterCreate=0x6bbf OP_DeleteCharacter=0x1808 OP_RandomNameGenerator=0x5954 OP_ApproveName=0x56a2 OP_MOTD=0x0c22 OP_SetChatServer=0x1bc5 -OP_SetChatServer2=0x7db5 -OP_ZoneServerInfo=0x6ef5 +OP_SetChatServer2=0x7eec +OP_ZoneServerInfo=0x4c44 OP_WorldComplete=0x4493 -OP_WorldUnknown001=0x2958 +OP_WorldUnknown001=0x2301 OP_FloatListThing=0x46c6 # Reasons for Disconnect: -OP_ZoneUnavail=0x4c44 +OP_ZoneUnavail=0x4cb4 OP_WorldClientReady=0x23c1 OP_CharacterStillInZone=0x0000 OP_WorldChecksumFailure=0x0000 @@ -81,58 +81,58 @@ OP_ChangeSize=0x4707 OP_TributeUpdate=0x5961 OP_TributeTimer=0x073d OP_SendTributes=0x729b -OP_SendGuildTributes=0x4d5e +OP_SendGuildTributes=0x1877 OP_TributeInfo=0x4254 OP_Weather=0x661e OP_ReqClientSpawn=0x35fa OP_SpawnDoor=0x7291 OP_GroundSpawn=0x6fca OP_SendZonepoints=0x69a4 -OP_BlockedBuffs=0x4d25 -OP_RemoveBlockedBuffs=0x3033 -OP_ClearBlockedBuffs=0x6b3d +OP_BlockedBuffs=0x3033 +OP_RemoveBlockedBuffs=0x0de7 +OP_ClearBlockedBuffs=0x34cb OP_WorldObjectsSent=0x5ae2 OP_SendExpZonein=0x5f8e OP_SendAATable=0x66b5 OP_RespondAA=0x7a27 OP_UpdateAA=0x66f0 OP_SendAAStats=0x43c8 -OP_AAExpUpdate=0x7e92 +OP_AAExpUpdate=0x7d14 OP_ExpUpdate=0x20ed OP_HPUpdate=0x2828 -OP_ManaChange=0x1287 -OP_TGB=0x0000 -OP_SpecialMesg=0x0000 -OP_GuildMemberList=0x0e48 +OP_ManaChange=0x43af +OP_TGB=0x0876 +OP_SpecialMesg=0x0083 +OP_GuildMemberList=0x12a6 OP_GuildMOTD=0x3e13 OP_CharInventory=0x5ca6 OP_WearChange=0x7994 OP_ClientUpdate=0x7dfc -OP_ClientReady=0x345d # 0x422d +OP_ClientReady=0x345d OP_SetServerFilter=0x444d # Guild Opcodes - Disabled until crashes are resolved in RoF -OP_GetGuildMOTD=0x36e0 # Was 0x35dc -OP_GetGuildMOTDReply=0x4f1f # Was 0x4586 -OP_GuildMemberUpdate=0x69b9 # Was 0x5643 +OP_GetGuildMOTD=0x36e0 +OP_GetGuildMOTDReply=0x4f1f +OP_GuildMemberUpdate=0x69b9 OP_GuildInvite=0x7099 OP_GuildRemove=0x1444 -OP_GuildPeace=0x084e +OP_GuildPeace=0x67e3 OP_SetGuildMOTD=0x0b0b -OP_GuildList=0x0000 -OP_GuildWar=0x46ce -OP_GuildLeader=0x2f3e +OP_GuildList=0x507a +OP_GuildWar=0x1ffb +OP_GuildLeader=0x7e09 OP_GuildDelete=0x3708 OP_GuildInviteAccept=0x7053 OP_GuildDemote=0x2d4e OP_GuildPromote=0x0000 OP_GuildPublicNote=0x5053 -OP_GuildManageBanker=0x748f # Was 0x0737 -OP_GuildBank=0x5134 # Was 0x10c3 +OP_GuildManageBanker=0x748f +OP_GuildBank=0x5134 OP_SetGuildRank=0x0b9c -OP_GuildUpdateURLAndChannel=0x6084 +OP_GuildUpdateURLAndChannel=0x2958 OP_GuildStatus=0x7326 -OP_GuildCreate=0x1dc8 # or maybe 0x086e +OP_GuildCreate=0x1dc8 OP_GuildMemberLevelUpdate=0x0000 # Unused? OP_ZoneGuildList=0x0000 # Unused? OP_GetGuildsList=0x0000 # Unused? @@ -147,40 +147,40 @@ OP_GMBecomeNPC=0x3ae1 OP_GMZoneRequest=0x62ac OP_GMZoneRequest2=0x7e1a OP_GMGoto=0x7d8e -OP_GMSearchCorpse=0x46b1 +OP_GMSearchCorpse=0x357c OP_GMHideMe=0x79c5 OP_GMDelCorpse=0x607e OP_GMApproval=0x6db5 OP_GMToggle=0x2097 -OP_GMSummon=0x486f # Was 0x684f -OP_GMEmoteZone=0x1cfd # Was 0x0655 -OP_GMEmoteWorld=0x458e # Was 0x1935 +OP_GMSummon=0x486f +OP_GMEmoteZone=0x1cfd +OP_GMEmoteWorld=0x458e OP_GMFind=0x4a8f OP_GMKick=0x26a7 OP_GMKill=0x51d3 -OP_GMNameChange=0x035f # Was 0x4434 -OP_GMLastName=0x16ce # Was 0x3077 +OP_GMNameChange=0x035f +OP_GMLastName=0x46ce # Misc Opcodes OP_InspectRequest=0x57bc OP_InspectAnswer=0x71ac -OP_InspectMessageUpdate=0x6f8b +OP_InspectMessageUpdate=0x4d25 OP_BeginCast=0x318f OP_ColoredText=0x0000 OP_ConsentResponse=0x384a -OP_MemorizeSpell=0x6a0d +OP_MemorizeSpell=0x217c OP_SwapSpell=0x0efa -OP_CastSpell=0x4466 +OP_CastSpell=0x1287 OP_Consider=0x742b OP_FormattedMessage=0x1024 OP_SimpleMessage=0x213f -OP_Buff=0x3a54 +OP_Buff=0x659c OP_Illusion=0x312a OP_MoneyOnCorpse=0x5f44 OP_RandomReply=0x106b OP_DenyResponse=0x2382 -OP_SkillUpdate=0x2264 -OP_GMTrainSkillConfirm=0x19aa # 0x3960 +OP_SkillUpdate=0x004c +OP_GMTrainSkillConfirm=0x66dd OP_RandomReq=0x7b10 OP_Death=0x6517 OP_GMTraining=0x1966 @@ -196,12 +196,12 @@ OP_DeleteSpell=0x52e5 OP_Surname=0x0423 OP_ClearSurname=0x7d23 OP_FaceChange=0x5578 -OP_SenseHeading=0x217c +OP_SenseHeading=0x260a OP_Action=0x744c OP_ConsiderCorpse=0x5204 -OP_HideCorpse=0x67fc -OP_CorpseDrag=0x7eec -OP_CorpseDrop=0x0904 +OP_HideCorpse=0x49e1 +OP_CorpseDrag=0x0904 +OP_CorpseDrop=0x7037 OP_Bug=0x73f4 OP_Feedback=0x5602 OP_Report=0x1414 @@ -213,28 +213,28 @@ OP_MoveCoin=0x0bcf OP_ZonePlayerToBind=0x0ecb OP_KeyRing=0x6857 OP_WhoAllRequest=0x65ab -OP_WhoAllResponse=0x407a +OP_WhoAllResponse=0x7c88 OP_FriendsWho=0x3956 OP_ConfirmDelete=0x43a3 OP_Logout=0x4ac6 OP_Rewind=0x1745 OP_TargetCommand=0x58e2 -OP_Hide=0x5d55 +OP_Hide=0x67fe OP_Jump=0x2060 OP_Camp=0x28ec OP_Emote=0x373b OP_SetRunMode=0x009f OP_BankerChange=0x383c OP_TargetMouse=0x075d -OP_MobHealth=0x2dd3 +OP_MobHealth=0x37b1 OP_InitialMobHealth=0x0000 # Unused? -OP_TargetHoTT=0x486c -OP_XTargetResponse=0x4d59 -OP_XTargetRequest=0x3763 -OP_XTargetAutoAddHaters=0x672f +OP_TargetHoTT=0x0272 +OP_XTargetResponse=0x672f +OP_XTargetRequest=0x45be +OP_XTargetAutoAddHaters=0x792c OP_TargetBuffs=0x4f4b OP_BuffCreate=0x3377 -OP_BuffRemoveRequest=0x49bc +OP_BuffRemoveRequest=0x64f2 OP_DeleteSpawn=0x7280 OP_AutoAttack=0x109d OP_AutoAttack2=0x3526 @@ -243,61 +243,61 @@ OP_MoveItem=0x32ee OP_DeleteItem=0x18ad OP_DeleteCharge=0x01b8 OP_ItemPacket=0x368e -OP_ItemLinkResponse=0x70c0 +OP_ItemLinkResponse=0x633c OP_ItemLinkClick=0x4cef -OP_ItemPreview=0x7f80 -OP_NewSpawn=0x0b04 +OP_ItemPreview=0x6b5c +OP_NewSpawn=0x6097 OP_Track=0x17e5 OP_TrackTarget=0x0029 -OP_TrackUnknown=0x0f83 +OP_TrackUnknown=0x4577 OP_ClickDoor=0x3a8f OP_MoveDoor=0x08e8 OP_RemoveAllDoors=0x700c OP_EnvDamage=0x51fd -OP_BoardBoat=0x31e6 +OP_BoardBoat=0x4211 OP_Forage=0x5306 -OP_LeaveBoat=0x4211 +OP_LeaveBoat=0x7617 OP_ControlBoat=0x0ae7 -OP_SafeFallSuccess=0x6dbc +OP_SafeFallSuccess=0x2219 OP_RezzComplete=0x760d OP_RezzRequest=0x3c21 OP_RezzAnswer=0x701c OP_Shielding=0x48c1 OP_RequestDuel=0x3af1 OP_MobRename=0x2c57 -OP_AugmentItem=0x661b # Was 0x37cb +OP_AugmentItem=0x661b OP_WeaponEquip1=0x34a7 -OP_WeaponEquip2=0x559a # Was 0x6022 -OP_WeaponUnequip2=0x2d25 # Was 0x0110 -OP_ApplyPoison=0x1b0c +OP_WeaponEquip2=0x559a +OP_WeaponUnequip2=0x2d25 +OP_ApplyPoison=0x31e6 OP_Save=0x4a39 -OP_TestBuff=0x7cb8 # Was 0x3772 +OP_TestBuff=0x7cb8 OP_CustomTitles=0x100e -OP_Split=0x0522 +OP_Split=0x3a54 OP_YellForHelp=0x4e56 OP_LoadSpellSet=0x261d OP_Bandolier=0x7677 -OP_PotionBelt=0x1a3e # Was 0x4d3b +OP_PotionBelt=0x1a3e OP_DuelResponse=0x6a46 OP_DuelResponse2=0x68d3 -OP_SaveOnZoneReq=0x2c7a +OP_SaveOnZoneReq=0x600d OP_ReadBook=0x72df OP_Dye=0x23b9 OP_InterruptCast=0x048c OP_AAAction=0x424e -OP_LeadershipExpToggle=0x74bd -OP_LeadershipExpUpdate=0x4ee2 -OP_PurchaseLeadershipAA=0x6c55 -OP_UpdateLeadershipAA=0x0026 +OP_LeadershipExpToggle=0x6c55 +OP_LeadershipExpUpdate=0x2797 +OP_PurchaseLeadershipAA=0x0026 +OP_UpdateLeadershipAA=0x026 OP_MarkNPC=0x5a58 -OP_MarkRaidNPC=0x0000 #unimplemented -OP_ClearNPCMarks=0x0272 -OP_ClearRaidNPCMarks=0x0000 #unimplemented -OP_DelegateAbility=0x4c9d -OP_SetGroupTarget=0x026 +OP_MarkRaidNPC=0x74bd #unimplemented +OP_ClearNPCMarks=0x2003 +OP_ClearRaidNPCMarks=0x20d3 #unimplemented +OP_DelegateAbility=0x76b8 +OP_SetGroupTarget=0x2814 OP_Charm=0x5d92 OP_Stun=0x36a4 -OP_SendFindableNPCs=0x587e +OP_SendFindableNPCs=0x3897 OP_FindPersonRequest=0x5cea OP_FindPersonReply=0x7e58 OP_Sound=0x1a30 @@ -308,48 +308,49 @@ OP_Sacrifice=0x1821 OP_PopupResponse=0x214a OP_OnLevelMessage=0x4fd0 OP_AugmentInfo=0x0afb -OP_Petition=0x4101 +OP_Petition=0x5f03 OP_SomeItemPacketMaybe=0x747c -OP_PVPStats=0x6f4b # Unsure +OP_PVPStats=0x6f4b OP_PVPLeaderBoardRequest=0x3707 OP_PVPLeaderBoardReply=0x25b7 OP_PVPLeaderBoardDetailsRequest=0x15a9 OP_PVPLeaderBoardDetailsReply=0x04aa -OP_RestState=0x000f +OP_RestState=0x00f OP_RespawnWindow=0x28bc OP_LDoNButton=0x5327 -OP_SetStartCity=0x6326 # Was 0x2d1b +OP_SetStartCity=0x6326 OP_VoiceMacroIn=0x17fd OP_VoiceMacroOut=0x409a -OP_ItemViewUnknown=0x465b -OP_VetRewardsAvaliable=0x6773 +OP_ItemViewUnknown=0x2289 +OP_VetRewardsAvaliable=0x590e OP_VetClaimRequest=0x1126 OP_VetClaimReply=0x16d4 -OP_DisciplineUpdate=0x759e # Was 0x2f05 -OP_DisciplineTimer=0x6989 # Was 0x5e3f +OP_DisciplineUpdate=0x759e +OP_DisciplineTimer=0x6989 OP_BecomeCorpse=0x0000 # Unused? OP_Action2=0x0000 # Unused? OP_MobUpdate=0x2c84 -OP_NPCMoveUpdate=0x5892 +OP_NPCMoveUpdate=0x189c OP_CameraEffect=0x127f OP_SpellEffect=0x5936 OP_RemoveNimbusEffect=0xc693 -OP_AltCurrency=0x3ee6 -OP_AltCurrencyMerchantRequest=0x05f0 -OP_AltCurrencyMerchantReply=0x0165 -OP_AltCurrencyPurchase=0x6b6d -OP_AltCurrencySell=0x61cb -OP_AltCurrencySellSelection=0x74ec -OP_AltCurrencyReclaim=0x27a2 -OP_CrystalCountUpdate=0x467f # Was 0x3f60 -OP_CrystalCreate=0x7aee # Was 0x5a82 -OP_CrystalReclaim=0x2439 # Was 0x7616 -OP_Untargetable=0x1456 +OP_AltCurrency=0x7121 +OP_AltCurrencyMerchantRequest=0x6b6d +OP_AltCurrencyMerchantReply=0x74ec +OP_AltCurrencyPurchase=0x61cb +OP_AltCurrencySell=0x0165 +OP_AltCurrencySellSelection=0x5409 +OP_AltCurrencyReclaim=0x532a +OP_CrystalCountUpdate=0x467f +OP_CrystalCreate=0x7aee +OP_CrystalReclaim=0x2439 +OP_Untargetable=0x053c OP_IncreaseStats=0x70a3 OP_Weblink=0x18d3 -#OP_OpenInventory=0x0000 # Likely does not exist in RoF -U OP_OpenContainer=0x0000 OP_Marquee=0x0000 +OP_ItemRecastDelay=0x08a6 +#OP_OpenInventory=0x0000 # Likely does not exist in RoF -U OP_DzQuit=0xb2e3 OP_DzListTimers=0x7b68 @@ -365,31 +366,31 @@ OP_DzExpeditionList=0x205f OP_DzMemberStatus=0x32f0 OP_DzLeaderStatus=0x3de9 OP_DzExpeditionEndsWarning=0x5189 -OP_DzMemberList=0x0000 -OP_DzCompass=0x3e0e # Was 0x4f09 -OP_DzChooseZone=0x0000 # Maybe 0x29d6 +OP_DzMemberList=0x5ae4 +OP_DzCompass=0x3e0e +OP_DzChooseZone=0x0000 # New Opcodes OP_SpawnPositionUpdate=0x0000 # Actually OP_MobUpdate ? OP_ManaUpdate=0x3791 OP_EnduranceUpdate=0x5f42 -OP_MobManaUpdate=0x2925 -OP_MobEnduranceUpdate=0x7314 +OP_MobManaUpdate=0x2404 +OP_MobEnduranceUpdate=0x1c81 # Mercenary Opcodes -OP_MercenaryDataUpdateRequest=0x2bcb -OP_MercenaryDataUpdate=0x7b89 -OP_MercenaryDataRequest=0x61a4 -OP_MercenaryDataResponse=0x11c1 -OP_MercenaryHire=0x72ce -OP_MercenaryDismiss=0x7169 -OP_MercenaryTimerRequest=0x6e83 -OP_MercenaryTimer=0x31e4 -OP_MercenaryUnknown1=0x20b9 -OP_MercenaryCommand=0x1b37 -OP_MercenarySuspendRequest=0x6e9f -OP_MercenarySuspendResponse=0x4407 -OP_MercenaryUnsuspendResponse=0x6f03 +OP_MercenaryDataUpdateRequest=0x7b89 +OP_MercenaryDataUpdate=0x61a4 +OP_MercenaryDataRequest=0x11c1 +OP_MercenaryDataResponse=0x72ce +OP_MercenaryHire=0x7169 +OP_MercenaryDismiss=0x6e83 +OP_MercenaryTimerRequest=0x31e4 +OP_MercenaryTimer=0x0763 +OP_MercenaryUnknown1=0x5d26 +OP_MercenaryCommand=0x27f2 +OP_MercenarySuspendRequest=0x4407 +OP_MercenarySuspendResponse=0x6f03 +OP_MercenaryUnsuspendResponse=0x27a0 # Looting OP_LootRequest=0x0adf @@ -401,8 +402,8 @@ OP_LootComplete=0x55c4 OP_BazaarSearch=0x39d6 OP_TraderDelItem=0x0000 OP_BecomeTrader=0x61b3 -OP_TraderShop=0x5eca -OP_Trader=0x4ef5 # Was 0x6790 +OP_TraderShop=0x31df +OP_Trader=0x4ef5 OP_TraderBuy=0x0000 OP_Barter=0x243a OP_ShopItem=0x0000 @@ -427,35 +428,35 @@ OP_FinishWindow2=0x40ef # Sent on Live for what seems to be item existance verification # Ex. Before Right Click Effect happens from items -OP_ItemVerifyRequest=0x189c -OP_ItemVerifyReply=0x097b +OP_ItemVerifyRequest=0x097b +OP_ItemVerifyReply=0x2115 # merchant stuff -OP_ShopPlayerSell=0x3de3 +OP_ShopPlayerSell=0x1901 OP_ShopRequest=0x4fed OP_ShopEnd=0x30a8 OP_ShopEndConfirm=0x3196 -OP_ShopPlayerBuy=0x004c +OP_ShopPlayerBuy=0x04c OP_ShopDelItem=0x724f # tradeskill stuff: OP_ClickObject=0x4aa1 OP_ClickObjectAction=0x0c1e OP_ClearObject=0x7a11 -OP_RecipeDetails=0x6e02 +OP_RecipeDetails=0x40d7 OP_RecipesFavorite=0x5c74 -OP_RecipesSearch=0x6290 -OP_RecipeReply=0x1db6 -OP_RecipeAutoCombine=0x40d7 +OP_RecipesSearch=0x1db6 +OP_RecipeReply=0x6e02 +OP_RecipeAutoCombine=0x6261 OP_TradeSkillCombine=0x579a # Tribute Packets: -OP_OpenGuildTributeMaster=0x49ea -OP_OpenTributeMaster=0x7666 # Was 0x40f5 +OP_OpenGuildTributeMaster=0x378d +OP_OpenTributeMaster=0x7666 OP_SelectTribute=0x79fc OP_TributeItem=0x4f3e -OP_TributeMoney=0x58fb # Was 0x6fed -OP_TributeToggle=0x4e32 +OP_TributeMoney=0x58fb +OP_TributeToggle=0x241d OP_TributePointUpdate=0x5300 OP_TributeNPC=0x0000 OP_GuildTributeInfo=0x0000 @@ -471,11 +472,11 @@ OP_AdventureRequest=0x2c6c OP_AdventureDetails=0x5648 OP_AdventureData=0x7171 OP_AdventureUpdate=0x1b01 -OP_AdventureMerchantRequest=0x6922 # Was 654d -OP_AdventureMerchantResponse=0x3e47 # Was 7949 -OP_AdventureMerchantPurchase=0x5b72 # Was 155a -OP_AdventureMerchantSell=0x2f9b # Was 389c -OP_AdventurePointsUpdate=0x65c3 # Was 7589 +OP_AdventureMerchantRequest=0x6922 +OP_AdventureMerchantResponse=0x3e47 +OP_AdventureMerchantPurchase=0x5b72 +OP_AdventureMerchantSell=0x2f9b +OP_AdventurePointsUpdate=0x65c3 OP_AdventureStatsRequest=0x5a62 OP_AdventureStatsReply=0x2370 OP_AdventureLeaderboardRequest=0x7093 @@ -485,23 +486,23 @@ OP_AdventureLeaderboardReply=0x7f79 OP_GroupDisband=0x4c10 OP_GroupInvite=0x1649 OP_GroupFollow=0x05ce -OP_GroupUpdate=0x4ced -OP_GroupUpdateB=0x0cbc +OP_GroupUpdate=0x3abb +OP_GroupUpdateB=0x6194 OP_GroupCancelInvite=0x0000 -OP_GroupAcknowledge=0x04d0 -OP_GroupDelete=0x3abb +OP_GroupAcknowledge=0x7323 +OP_GroupDelete=0x0f6c OP_CancelInvite=0x32c2 OP_GroupFollow2=0x2a50 OP_GroupInvite2=0x6c65 -OP_GroupDisbandYou=0x7323 -OP_GroupDisbandOther=0x88a1 -OP_GroupLeaderChange=0x74da -OP_GroupRoles=0x4d9f +OP_GroupDisbandYou=0x1ae5 +OP_GroupDisbandOther=0x74da +OP_GroupLeaderChange=0x21b4 +OP_GroupRoles=0x70e2 OP_GroupMakeLeader=0x4229 -OP_DoGroupLeadershipAbility=0x6eae -OP_GroupLeadershipAAUpdate=0x6298 -OP_GroupMentor=0x3342 -OP_InspectBuffs=0x0000 +OP_DoGroupLeadershipAbility=0x1fb5 +OP_GroupLeadershipAAUpdate=0x02cf +OP_GroupMentor=0x5892 +OP_InspectBuffs=0x486c # LFG/LFP Opcodes OP_LFGCommand=0x6060 @@ -514,18 +515,18 @@ OP_LFGAppearance=0x0000 OP_LFGResponse=0x0000 # Raid Opcodes -OP_RaidInvite=0x3973 -OP_RaidUpdate=0x56fe +OP_RaidInvite=0x55ac +OP_RaidUpdate=0x3973 OP_RaidJoin=0x0000 # Button-push commands OP_Taunt=0x2703 OP_CombatAbility=0x3eba -OP_SenseTraps=0x02af # Was 0x2ee0 +OP_SenseTraps=0x02af OP_PickPocket=0x39e8 -OP_DisarmTraps=0x0000 +OP_DisarmTraps=0x78bf OP_Disarm=0x5ec8 -OP_Sneak=0x4577 +OP_Sneak=0x5d55 OP_Fishing=0x1e2a OP_InstillDoubt=0x640e OP_FeignDeath=0x52fa @@ -534,15 +535,15 @@ OP_Bind_Wound=0x0386 OP_LDoNOpen=0x3d5c # Task packets -OP_TaskDescription=0x0083 -OP_TaskActivity=0x083 +OP_TaskDescription=0x083 +OP_TaskActivity=0x3714 OP_CompletedTasks=0x4eba -OP_TaskActivityComplete=0x7037 +OP_TaskActivityComplete=0x5e19 OP_AcceptNewTask=0x0a23 -OP_CancelTask=0x3714 -OP_TaskMemberList=0x5727 # Was 0x1656 -OP_OpenNewTasksWindow=0x48a2 # Was 0x11de -OP_AvaliableTask=0x36e8 # Was 0x2377 +OP_CancelTask=0x08d3 +OP_TaskMemberList=0x5727 +OP_OpenNewTasksWindow=0x48a2 +OP_AvaliableTask=0x36e8 OP_TaskHistoryRequest=0x5f1c OP_TaskHistoryReply=0x3d05 OP_DeclineAllTasks=0x0000 @@ -656,6 +657,4 @@ OP_RAWOutOfSession=0x0000 # we need to document the differences between these packets to make identifying them easier OP_Some3ByteHPUpdate=0x0000 # initial HP update for mobs -OP_InitialHPUpdate=0x0000 - -OP_ItemRecastDelay=0x08a6 +OP_InitialHPUpdate=0x0000 \ No newline at end of file diff --git a/zone/aa.cpp b/zone/aa.cpp index a8c6ff3d0..ba61c9005 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -1471,21 +1471,22 @@ bool ZoneDatabase::LoadAAEffects2() { return true; } + void Client::ResetAA(){ - RefundAA(); + RefundAA(); uint32 i; - for(i=0;iAA = 0; aa[i]->value = 0; m_pp.aa_array[MAX_PP_AA_ARRAY].AA = 0; - m_pp.aa_array[MAX_PP_AA_ARRAY].value = 0; + m_pp.aa_array[MAX_PP_AA_ARRAY].value = 0; } std::map::iterator itr; - for(itr=aa_points.begin();itr!=aa_points.end();++itr) + for(itr = aa_points.begin(); itr != aa_points.end(); ++itr) aa_points[itr->first] = 0; - for(int i = 0; i < _maxLeaderAA; ++i) + for(int i = 0; i < _maxLeaderAA; ++i) m_pp.leader_abilities.ranks[i] = 0; m_pp.group_leadership_points = 0; @@ -1494,10 +1495,23 @@ void Client::ResetAA(){ m_pp.raid_leadership_exp = 0; database.DeleteCharacterAAs(this->CharacterID()); - SaveAA(); + SaveAA(); + SendClearAA(); + SendAAList(); SendAATable(); + SendAAStats(); database.DeleteCharacterLeadershipAAs(this->CharacterID()); - Kick(); + // undefined for these clients + if (GetClientVersionBit() & BIT_TitaniumAndEarlier) + Kick(); +} + +void Client::SendClearAA() +{ + EQApplicationPacket *outapp = new EQApplicationPacket(OP_ClearLeadershipAbilities, 0); + FastQueuePacket(&outapp); + outapp = new EQApplicationPacket(OP_ClearAA, 0); + FastQueuePacket(&outapp); } int Client::GroupLeadershipAAHealthEnhancement() diff --git a/zone/client.h b/zone/client.h index 4c69917fd..a63f37b2f 100644 --- a/zone/client.h +++ b/zone/client.h @@ -755,6 +755,7 @@ public: //AA Methods void SendAAList(); void ResetAA(); + void SendClearAA(); void SendAA(uint32 id, int seq=1); void SendPreviousAA(uint32 id, int seq=1); void BuyAA(AA_Action* action);