Batch #16644 by ragnarok-clanker: no function's compiled code changes; checked with 593 compiled unit(s), including every includer of Source/Client/Application/Registry.h, Source/Client/Application/RegistryKey.h, Source/Client/Application/Timer.h, Source/Client/Mode/ModeFade.h, Source/Client/Mode/ModeFadeOut.h, Source/Client/Mode/ModeScreenshot.h, Source/Client/Replay/Replay.h, Source/Client/Replay/ReplayRecordOption.h, Source/Client/Session/Session.h, Source/Contents/Actors/ActorPickNode.h, Source/Contents/Effects/Core/RagEffectState.h, Source/Contents/Effects/Particles/Particle.h, Source/Contents/Movies/BinkMovie.h, Source/Contents/Sprites/SpriteLayerDrawing.h, Source/File/NFileLog.h, Source/Network/NIPAddr.h, Source/Network/Packets/ActorNamePacket.h, Source/Network/Packets/ClientKeepalive.h, Source/Network/Packets/ClientOptionPacket.h, Source/Network/Packets/ExecutableDigestPacket.h, Source/Network/Packets/GameTickPacket.h, Source/Render/DX7/QueuedDrawingDX7.h, Source/Render/DX7/RendererDX7.h, Source/Render/DX9/RenderSystemDX9.h, Source/Render/Device/DeviceSelection.h, Source/Render/Device/Direct3DErrors.h, Source/Render/Device/DisplayMode.h, Source/Render/Device/RenderAdapter.h, Source/Render/Device/RenderBackends.h, Source/Render/Drawing/ActionSpriteDrawing.h, Source/Render/Drawing/BitmapDrawing.h, Source/Render/Drawing/BlendColor.h, Source/Render/Drawing/SpriteGeometry.h, Source/Render/Drawing/TextureStageModes.h, Source/Render/Primitives/AuxiliarySubmission.h, Source/Render/Primitives/SpriteQuad.h, Source/Render/Primitives/TextureQuad.h, Source/Render/Projection/ScreenGeometry.h, Source/Render/Projection/ScreenRectangle.h, Source/Resource/Audio/BinkRuntime.h, Source/Resource/Bitmap/EmblemResource.h, Source/Resource/Bitmap/GifLzw.h, Source/Resource/Bitmap/GifResource.h, Source/Resource/Bitmap/PaletteResource.h, Source/Resource/Bitmap/SkinPalette.h, Source/Resource/Bitmap/TextureNames.h, Source/Resource/Effects/EZeffectResource.h, Source/Resource/Json/JsonCppLoader.h, Source/Resource/Models/RmaResource.h, Source/Resource/Sprites/ImfResource.h, Source/Resource/Xml/XmlNode.h, Source/Security/FileSignatureVerifier.h, Source/Security/ProcessSecurity.h, Source/UI/Achievement/UIAchWnd.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Buttons/UIBalloonOpenBtn.h, Source/UI/Buttons/UIMiniBtnWnd.h, Source/UI/Buttons/UISlotBitmap.h, Source/UI/Buttons/UIStaticBitmap.h, Source/UI/Buttons/UIStaticItem.h, Source/UI/Buttons/UIWindowCallBtnWnd.h, Source/UI/CashEmotion/UICashEmotionSprBtn.h, Source/UI/CashShop/UIMileageWnd.h, Source/UI/CashShop/UIPayConfirmWnd.h, Source/UI/Chat/UIChatRoomWnd.h, Source/UI/Dialogs/UIAccountLimitedToolWnd.h, Source/UI/Dialogs/UICntWnd.h, Source/UI/Dialogs/UILoadingWnd.h, Source/UI/Dialogs/UIMessageBox.h, Source/UI/Dialogs/UIMessageBoxAutoreturn.h, Source/UI/Dialogs/UINormalMB.h, Source/UI/Dialogs/UINoteWnd.h, Source/UI/Dialogs/UINoticeWnd.h, Source/UI/Dialogs/UIRPImageWnd.h, Source/UI/Dialogs/UIRPImageWnd2.h, Source/UI/Dialogs/UITalkboxTrapInputWnd.h, Source/UI/Dialogs/UITransMenuWnd.h, Source/UI/Dialogs/UIVideoWnd.h, Source/UI/Dialogs/UIWordDisplayWnd.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Events/UICheckAttendanceWnd.h, Source/UI/Events/UIOpenRoulletteWnd.h, Source/UI/Events/UIRoulletteWnd.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/GameSettings/UIBattleMsgOptionWnd.h, Source/UI/GameSettings/UIEscOptionWnd.h, Source/UI/GameSettings/UIHotKeyWnd.h, Source/UI/GameSettings/UIHotkeyGuideWnd.h, Source/UI/GameSettings/UIViewCameraInfoWnd.h, Source/UI/Gauges/UIBarGraph.h, Source/UI/Guild/UIEmblemWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Items/UIChangeMaterialWnd.h, Source/UI/Items/UICollectionSystemWnd.h, Source/UI/Items/UIEquipmentPropertiesWnd.h, Source/UI/Items/UIGradeEnchantWnd.h, Source/UI/Items/UIIngredientInfoWnd.h, Source/UI/Items/UIItemBaseWnd.h, Source/UI/Items/UIItemCollectionWnd.h, Source/UI/Items/UIItemMoveInfo.h, Source/UI/Items/UIItemPurchaseWnd.h, Source/UI/Items/UIItemReformWnd.h, Source/UI/Items/UIItemSellWnd.h, Source/UI/Items/UIItemSellWnd2.h, Source/UI/Items/UIItemShopWnd.h, Source/UI/Items/UIItemShopWnd2.h, Source/UI/Items/UIItemStoreComboBox.h, Source/UI/Items/UIItemStoreFindWnd.h, Source/UI/Items/UIItemStoreSubWnd.h, Source/UI/Items/UIItemStoreWnd.h, Source/UI/Items/UIItemWnd.h, Source/UI/Items/UILapineScrollBar.h, Source/UI/Items/UILapineUpgradeBoxWnd.h, Source/UI/Items/UIMerchantItemLogWnd.h, Source/UI/Items/UIParaItemShopWnd.h, Source/UI/Items/UIPreviewEquipWnd.h, Source/UI/Items/UIRefiningWnd.h, Source/UI/Items/UISecondCostumeWnd.h, Source/UI/Items/UISelectCartWnd.h, Source/UI/Lists/UIComboBoxEx.h, Source/UI/Lists/UIScrollBarVariants.h, Source/UI/Lists/UIScrollWnd.h, Source/UI/Lists/UITagListBox.h, Source/UI/Login/FuncDrawWNDChar.h, Source/UI/Login/UIChangeNameWnd.h, Source/UI/Login/UIDescriptRace.h, Source/UI/Login/UIEmailAddressWnd.h, Source/UI/Login/UILoginOTPWnd.h, Source/UI/Login/UILoginWnd.h, Source/UI/Login/UIMakeCharWnd.h, Source/UI/Login/UINewMakeCharWnd.h, Source/UI/Login/UINewSelectCharWnd.h, Source/UI/Login/UIPasswordWnd.h, Source/UI/Login/UISecondPasswordEditWnd.h, Source/UI/Login/UISelCharForUServerWnd.h, Source/UI/Login/UISelectServerWnd.h, Source/UI/Login/UIWaitDBSaveWnd.h, Source/UI/Macro/UICaptchaPreviewWnd.h, Source/UI/Macro/UICaptchaRegisterWnd.h, Source/UI/Macro/UIMacroBlackListCheckWnd.h, Source/UI/Macro/UIMacroDetectorWnd.h, Source/UI/Macro/UIMacroReport.h, Source/UI/Macro/UIMacroUserInfoWnd.h, Source/UI/Monster/UIMonsterDisplayWnd.h, Source/UI/Monster/UIMonsterInfoWnd.h, Source/UI/Navigation/NavigationLink.h, Source/UI/Navigation/UIChooseWarpWnd.h, Source/UI/Navigation/UIListBoxNavi.h, Source/UI/Navigation/UIListBoxNaviSearch.h, Source/UI/Navigation/UIMemorialDunWnd.h, Source/UI/Navigation/UIMiniMapWnd.h, Source/UI/Navigation/UIMinimapZoomWnd.h, Source/UI/Navigation/UINavigationHelpWnd.h, Source/UI/Navigation/UINavigationWnd.h, Source/UI/Navigation/UIRoMapWnd.h, Source/UI/Navigation/UIScrollBarNavi.h, Source/UI/Navigation/UIShowWarpWnd.h, Source/UI/Party/MiniPartyGrid.h, Source/UI/Party/MiniPartyPlacement.h, Source/UI/Party/MiniPartyWndAreaMgr.h, Source/UI/Party/UIJobSlotButton.h, Source/UI/Party/UIPartyBookingHelpWnd.h, Source/UI/Party/UISeekPartyListWnd.h, Source/UI/Party/UISeekPartyMBWnd.h, Source/UI/Party/UISeekPartyWnd.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UINotifyQuestWnd.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Quest/UIRecommendedQuestInfo.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Quest/UIRenewQuestWnd.h, Source/UI/Replay/UIReplayButton.h, Source/UI/Replay/UIReplayControlWnd.h, Source/UI/Replay/UIReplayListBox.h, Source/UI/Replay/UIReplayRECControlWnd.h, Source/UI/Replay/UISelectReplayDataWnd.h, Source/UI/Repute/UIReputeWnd.h, Source/UI/Rodex/UIOpenMailBoxWnd.h, Source/UI/Rodex/UIRodexContentsWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/RuneSystem/UIRuneSystemWindows.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SelectPackageItemBox/UIPackageBoxNameList.h, Source/UI/Shop/PriceCommission.h, Source/UI/Shop/UIBank_NewWnd.h, Source/UI/Shop/UIBartermarketWnd.h, Source/UI/Shop/UIMerchantItemMyShopWnd.h, Source/UI/Shop/UIMerchantItemPurchaseWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantItemWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UISerachStoreInfoWnd.h, Source/UI/Shop/UInCash_CallWnd.h, Source/UI/Skill/UIDebuffRemoveWnd.h, Source/UI/Skill/UIGraffiStrboxWnd.h, Source/UI/Skill/UINewSkillListWnd.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Status/UIBasicInfoWnd.h, Source/UI/Status/UIHomunInfoWnd.h, Source/UI/Status/UIJobListWnd.h, Source/UI/Status/UIMerInfoWnd.h, Source/UI/Status/UIPetEvolutionWnd.h, Source/UI/Status/UIPetInfoWnd.h, Source/UI/Status/UIPetTamingDeceiveWnd.h, Source/UI/Status/UIRebirthWnd.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/Text/TextTags.h, Source/UI/Text/UIBroadcastBalloon.h, Source/UI/Text/UIRoundBoxTooltipWnd.h, Source/UI/Window/FrameSkin.h, Source/UI/Window/UIBasicCtrl.h, Source/UI/Window/UIControl.h, Source/UI/Window/UIWindowMgr.inl, Source/Utility/Cipher/EncryptedName.h, Source/Utility/Hash/CRC32.h, Source/Utility/Hash/GGHash.h, Source/Utility/Hash/GGHashMgr.h, Source/Utility/Hash/Md5State.h, Source/Utility/Hash/SHA3.h, Source/Utility/Hash/XxHash3.h, Source/Utility/Text/GuidParse.h, Source/Utility/Text/Tokenizer.h, Source/Utility/Zlib.h, Source/ActorPickNode.h, Source/Client/ModeFade.h, Source/Client/ModeFadeOut.h, Source/Client/ModeScreenshot.h, Source/Client/Registry.h, Source/Client/Replay.h, Source/Client/ReplayRecordOption.h, Source/Client/Session.h, Source/Client/Timer.h, Source/Network/ActorNamePacket.h, Source/Network/ClientKeepalive.h, Source/Network/ClientOptionPacket.h, Source/Network/ExecutableDigestPacket.h, Source/Network/GameTickPacket.h, Source/Render/ActionSpriteDrawing.h, Source/Render/AuxiliarySubmission.h, Source/Render/BitmapDrawing.h, Source/Render/BlendColor.h, Source/Render/DeviceSelection.h, Source/Render/Direct3DErrors.h, Source/Render/DisplayMode.h, Source/Render/RenderAdapter.h, Source/Render/RenderBackends.h, Source/Render/RendererDX7.h, Source/Render/ScreenGeometry.h, Source/Render/ScreenRectangle.h, Source/Render/SpriteGeometry.h, Source/Render/SpriteQuad.h, Source/Render/TextureQuad.h, Source/Render/TextureStageModes.h, Source/Resource/BinkRuntime.h, Source/Resource/EZeffectResource.h, Source/Resource/EmblemResource.h, Source/Resource/GifLzw.h, Source/Resource/GifResource.h, Source/Resource/ImfResource.h, Source/Resource/PaletteResource.h, Source/Resource/RmaResource.h, Source/Resource/SkinPalette.h, Source/Resource/TextureNames.h, Source/Resource/XmlNode.h, Source/UI/Buttons/UICashEmotionSprBtn.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/Buttons/UIItemMoveInfo.h, Source/UI/Buttons/UIJobSlotButton.h, Source/UI/Buttons/UIReplayButton.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIEmailAddressWnd.h, Source/UI/Dialogs/UIGraffiStrboxWnd.h, Source/UI/Dialogs/UIMemorialDunWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINotifyQuestWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UIPetTamingDeceiveWnd.h, Source/UI/Dialogs/UISecondPasswordEditWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UIWaitDBSaveWnd.h, Source/UI/FrameSkin.h, Source/UI/Item/UIEquipmentPropertiesWnd.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemShopWnd.h, Source/UI/Item/UIItemShopWnd2.h, Source/UI/Item/UIItemStoreFindWnd.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIMerchantItemLogWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Lists/UIItemStoreComboBox.h, Source/UI/Lists/UIListBoxNavi.h, Source/UI/Lists/UIListBoxNaviSearch.h, Source/UI/Lists/UIPackageBoxNameList.h, Source/UI/Lists/UIReplayListBox.h, Source/UI/Lists/UIScrollBarNavi.h, Source/UI/MiniPartyGrid.h, Source/UI/MiniPartyPlacement.h, Source/UI/PriceCommission.h, Source/UI/Text/NavigationLink.h, Source/UI/Text/UIAchWnd.h, Source/UI/TextTags.h, Source/UI/UIBarGraph.h, Source/UI/UIBartermarketWnd.h, Source/UI/UIBasicCtrl.h, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaPreviewWnd.h, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UICheckAttendanceWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIHotkeyGuideWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIItemReformWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/UILapineUpgradeBoxWnd.h, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIMacroReport.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.h, Source/UI/UIReputeWnd.h, Source/UI/UIRoundBoxTooltipWnd.h, Source/UI/UIScrollWnd.h, Source/UI/UISlotBitmap.h, Source/UI/UIStaticBitmap.h, Source/UI/UIStaticItem.h, Source/UI/Window/FuncDrawWNDChar.h, Source/UI/Window/MiniPartyWndAreaMgr.h, Source/UI/Window/UIAccountLimitedToolWnd.h, Source/UI/Window/UIBalloonOpenBtn.h, Source/UI/Window/UIBank_NewWnd.h, Source/UI/Window/UIBasicInfoWnd.h, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChangeNameWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICntWnd.h, Source/UI/Window/UICollectionSystemWnd.h, Source/UI/Window/UIDebuffRemoveWnd.h, Source/UI/Window/UIEmblemWnd.h, Source/UI/Window/UIEscOptionWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UILoginWnd.h, Source/UI/Window/UIMakeCharWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UIMessageBoxAutoreturn.h, Source/UI/Window/UIMileageWnd.h, Source/UI/Window/UIMiniBtnWnd.h, Source/UI/Window/UIMonsterDisplayWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationHelpWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UINormalMB.h, Source/UI/Window/UINoteWnd.h, Source/UI/Window/UINoticeWnd.h, Source/UI/Window/UIOpenMailBoxWnd.h, Source/UI/Window/UIOpenRoulletteWnd.h, Source/UI/Window/UIPartyBookingHelpWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetEvolutionWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRPImageWnd.h, Source/UI/Window/UIRPImageWnd2.h, Source/UI/Window/UIRebirthWnd.h, Source/UI/Window/UIReplayControlWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIRoMapWnd.h, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UIRoulletteWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyListWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UISelectReplayDataWnd.h, Source/UI/Window/UISelectServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIVideoWnd.h, Source/UI/Window/UIViewCameraInfoWnd.h, Source/UI/Window/UIWindowCallBtnWnd.h, Source/UI/Window/UIWordDisplayWnd.h, Source/Utility/CRC32.h, Source/Utility/Compression/Zlib.h, Source/Utility/EncryptedName.h, Source/Utility/FileSignatureVerifier.h, Source/Utility/GGHash.h, Source/Utility/GGHashMgr.h, Source/Utility/GuidParse.h, Source/Utility/JsonCppLoader.h, Source/Utility/Md5State.h, Source/Utility/NFileLog.h, Source/Utility/NIPAddr.h, Source/Utility/ProcessSecurity.h, Source/Utility/RegistryKey.h, Source/Utility/SHA3.h, Source/Utility/Tokenizer.h, Source/Utility/XxHash3.h. Adds to the build: Source/Client/Application/ClientOptions.cpp, Source/Client/Application/Registry.cpp, Source/Client/Application/RegistryKey.cpp, Source/Client/Application/Timer.cpp, Source/Client/Mode/EntityInit.cpp, Source/Client/Mode/ModeBaseEvents.cpp, Source/Client/Mode/ModeCursorDrawing.cpp, Source/Client/Mode/ModeFade.cpp, Source/Client/Mode/ModeFadeOut.cpp, Source/Client/Mode/ModeScreenshot.cpp, Source/Client/Mode/ModeTransitions.cpp, Source/Client/Replay/Replay.cpp, Source/Client/Replay/ReplayControl.cpp, Source/Client/Replay/ReplayPacketRecorder.cpp, Source/Client/Session/Session.cpp, Source/Client/Session/SessionAchievements.cpp, Source/Client/Session/SessionParty.cpp, Source/Client/Session/SessionPredicates.cpp, Source/Client/Session/SessionState.cpp, Source/Contents/Actors/ActorPickNode.cpp, Source/File/NFileLog.cpp, Source/Network/NIPAddr.cpp, Source/Network/Packets/ActorNamePacket.cpp, Source/Network/Packets/ClientKeepalive.cpp, Source/Network/Packets/ClientOptionPacket.cpp, Source/Network/Packets/ExecutableDigestPacket.cpp, Source/Network/Packets/GameTickPacket.cpp, Source/Render/DX7/AlphaQueuesDX7.cpp, Source/Render/DX7/AuxiliaryQueuesDX7.cpp, Source/Render/DX7/OpaqueQueuesDX7.cpp, Source/Render/DX7/RendererDX7.cpp, Source/Render/DX9/DeviceCapabilitiesDX9.cpp, Source/Render/Device/DeviceSelection.cpp, Source/Render/Device/Direct3DErrors.cpp, Source/Render/Device/DisplayMode.cpp, Source/Render/Device/RenderAdapter.cpp, Source/Render/Device/RenderBackends.cpp, Source/Render/Drawing/ActionSpriteDrawing.cpp, Source/Render/Drawing/BitmapDrawing.cpp, Source/Render/Drawing/BlendColor.cpp, Source/Render/Drawing/SpriteGeometry.cpp, Source/Render/Primitives/AlphaRectangle.cpp, Source/Render/Primitives/AuxiliarySubmission.cpp, Source/Render/Primitives/SpriteQuad.cpp, Source/Render/Primitives/TextureQuad.cpp, Source/Render/Primitives/UIRPDataDrawing.cpp, Source/Render/Projection/ScreenGeometry.cpp, Source/Render/Projection/ScreenRectangle.cpp, Source/Render/Projection/ViewportProjection.cpp, Source/Resource/Bitmap/EmblemResource.cpp, Source/Resource/Bitmap/GifLzw.cpp, Source/Resource/Bitmap/GifResource.cpp, Source/Resource/Bitmap/PaletteResource.cpp, Source/Resource/Bitmap/SkinPalette.cpp, Source/Resource/Bitmap/TextureNames.cpp, Source/Resource/Effects/EZeffectResource.cpp, Source/Resource/Json/JsonCppLoader.cpp, Source/Resource/Models/RmaResource.cpp, Source/Resource/Sprites/ImfLayerIndex.cpp, Source/Resource/Sprites/ImfResource.cpp, Source/Resource/Xml/XmlNode.cpp, Source/Resource/Xml/XmlParsing.cpp, Source/Security/FileSignatureVerifier.cpp, Source/Security/ProcessSecurity.cpp, Source/Security/UnknownA68.cpp, Source/UI/Achievement/UIAchWnd.cpp, Source/UI/Buttons/UIBalloonOpenBtn.cpp, Source/UI/Buttons/UIMiniBtnWnd.cpp, Source/UI/Buttons/UISlotBitmap.cpp, Source/UI/Buttons/UIStaticBitmap.cpp, Source/UI/Buttons/UIStaticItem.cpp, Source/UI/CashShop/UIMileageWnd.cpp, Source/UI/Chat/UIZeroChatWnd.cpp, Source/UI/Dialogs/UIAccountLimitedToolWnd.cpp, Source/UI/Dialogs/UILocaleTextWnd.cpp, Source/UI/Dialogs/UIMessageBox.cpp, Source/UI/Dialogs/UINormalMB.cpp, Source/UI/Dialogs/UINoteWnd.cpp, Source/UI/Dialogs/UINoticeWnd.cpp, Source/UI/Dialogs/UIRPImageWnd.cpp, Source/UI/Dialogs/UIRPImageWnd2.cpp, Source/UI/Dialogs/UITransMenuWnd.cpp, Source/UI/Dialogs/UIVideoWnd.cpp, Source/UI/Dialogs/UIWordDisplayWnd.cpp, Source/UI/Events/UICheckAttendanceWnd.cpp, Source/UI/Events/UIOpenRoulletteWnd.cpp, Source/UI/Events/UIRoulletteWnd.cpp, Source/UI/GameSettings/UIBattleMsgOptionWnd.cpp, Source/UI/GameSettings/UIEscOptionWnd.cpp, Source/UI/GameSettings/UIHotKeyWnd.cpp, Source/UI/GameSettings/UIHotkeyGuideWnd.cpp, Source/UI/GameSettings/UIViewCameraInfoWnd.cpp, Source/UI/Gauges/UIBarGraph.cpp, Source/UI/Guild/UIEmblemWnd.cpp, Source/UI/Items/UIChangeMaterialWnd.cpp, Source/UI/Items/UICollectionSystemWnd.cpp, Source/UI/Items/UIEquipmentPropertiesWnd.cpp, Source/UI/Items/UIGradeEnchantWnd.cpp, Source/UI/Items/UIItemMoveInfo.cpp, Source/UI/Items/UIItemReformWnd.cpp, Source/UI/Items/UIItemStoreComboBox.cpp, Source/UI/Items/UIItemStoreWnd.cpp, Source/UI/Items/UILapineBoxWnd.cpp, Source/UI/Items/UILapineScrollBar.cpp, Source/UI/Items/UILapineUpgradeBoxWnd.cpp, Source/UI/Items/UIMerchantItemLogWnd.cpp, Source/UI/Items/UIParaItemShopWnd.cpp, Source/UI/Items/UIPreviewEquipWnd.cpp, Source/UI/Items/UIRefiningWnd.cpp, Source/UI/Items/UISecondCostumeWnd.cpp, Source/UI/Lists/UIScrollWnd.cpp, Source/UI/Login/FuncDrawWNDChar.cpp, Source/UI/Login/UIChangeNameWnd.cpp, Source/UI/Login/UIDescriptRace.cpp, Source/UI/Login/UIEmailAddressWnd.cpp, Source/UI/Login/UILoginWnd.cpp, Source/UI/Login/UINewMakeCharWnd.cpp, Source/UI/Login/UINewSelectCharWnd.cpp, Source/UI/Login/UIPasswordWnd.cpp, Source/UI/Login/UISelCharForUServerWnd.cpp, Source/UI/Login/UIWaitDBSaveWnd.cpp, Source/UI/Macro/UICaptchaPreviewWnd.cpp, Source/UI/Macro/UICaptchaRegisterWnd.cpp, Source/UI/Macro/UIMacroBlackListCheckWnd.cpp, Source/UI/Macro/UIMacroDetectorWnd.cpp, Source/UI/Macro/UIMacroReport.cpp, Source/UI/Macro/UIMacroUserInfoWnd.cpp, Source/UI/Navigation/NavigationLink.cpp, Source/UI/Navigation/UIListBoxNavi.cpp, Source/UI/Navigation/UIMinimapZoomWnd.cpp, Source/UI/Navigation/UINavigationHelpWnd.cpp, Source/UI/Navigation/UINavigationWnd.cpp, Source/UI/Navigation/UIRoMapWnd.cpp, Source/UI/Navigation/UIScrollBarNavi.cpp, Source/UI/Navigation/UIShowWarpWnd.cpp, Source/UI/Party/MiniPartyGrid.cpp, Source/UI/Party/MiniPartyManager.cpp, Source/UI/Party/MiniPartyPlacement.cpp, Source/UI/Party/MiniPartyUsableArea.cpp, Source/UI/Party/UIJobSlotButton.cpp, Source/UI/Party/UIPartyBookingHelpWnd.cpp, Source/UI/Party/UISeekPartyListWnd.cpp, Source/UI/Party/UISeekPartyMBWnd.cpp, Source/UI/Party/UISeekPartyWnd.cpp, Source/UI/Repute/UIReputeWnd.cpp, Source/UI/Rodex/UIOpenMailBoxWnd.cpp, Source/UI/Rodex/UIRodexContentsWnd.cpp, Source/UI/SelectPackageItemBox/UIPackageBoxNameList.cpp, Source/UI/Shop/PriceCommission.cpp, Source/UI/Shop/UIBartermarketWnd.cpp, Source/UI/Shop/UISerachStoreInfoWnd.cpp, Source/UI/Skill/UIDebuffRemoveWnd.cpp, Source/UI/Skill/UIGraffiStrboxWnd.cpp, Source/UI/Skill/UINewSkillListWnd.cpp, Source/UI/Skill/UINewSkillListWndHitTest.cpp, Source/UI/Status/UIBasicInfoWnd.cpp, Source/UI/Status/UIJobListWnd.cpp, Source/UI/Status/UIPetEvolutionWnd.cpp, Source/UI/Status/UIRebirthWnd.cpp, Source/UI/Text/TextTagExtraction.cpp, Source/UI/Text/TextTagRegistry.cpp, Source/UI/Text/UIBroadcastBalloon.cpp, Source/UI/Text/UIRoundBoxTooltipWnd.cpp, Source/UI/Window/FrameSkin.cpp, Source/UI/Window/UIBasicCtrl.cpp, Source/UI/Window/WindowBackground.cpp, Source/UI/Window/WindowLowerBorder.cpp, Source/UI/Window/WindowOverlay.cpp, Source/UI/Window/WindowSprite.cpp, Source/UI/Window/WindowTitlebar.cpp, Source/Utility/BoolStubs.cpp, Source/Utility/Hash/CRC32.cpp, Source/Utility/Hash/GGHash.cpp, Source/Utility/Hash/GGHashMgr.cpp, Source/Utility/Hash/Md5State.cpp, Source/Utility/Hash/SHA3.cpp, Source/Utility/Hash/XxHash3.cpp, Source/Utility/Lexicon/LexiconTrie.cpp, Source/Utility/Text/GuidParse.cpp, Source/Utility/Text/Tokenizer.cpp Deletes: Source/ActorPickNode.cpp, Source/ActorPickNode.h, Source/Archive/UnknownA68.cpp, Source/Client/ClientOptions.cpp, Source/Client/ModeBaseEvents.cpp, Source/Client/ModeCursorDrawing.cpp, Source/Client/ModeFade.cpp, Source/Client/ModeFade.h, Source/Client/ModeFadeOut.cpp, Source/Client/ModeFadeOut.h, Source/Client/ModeScreenshot.cpp, Source/Client/ModeScreenshot.h, Source/Client/ModeTransitions.cpp, Source/Client/Registry.cpp, Source/Client/Registry.h, Source/Client/Replay.cpp, Source/Client/Replay.h, Source/Client/ReplayControl.cpp, Source/Client/ReplayPacketRecorder.cpp, Source/Client/ReplayRecordOption.h, Source/Client/Session.cpp, Source/Client/Session.h, Source/Client/SessionAchievements.cpp, Source/Client/SessionParty.cpp, Source/Client/SessionPredicates.cpp, Source/Client/SessionState.cpp, Source/Client/Timer.cpp, Source/Client/Timer.h, Source/EntityInit.cpp, Source/Interface/BoolStubs.cpp, Source/LexiconTrie.cpp, Source/Network/ActorNamePacket.cpp, Source/Network/ActorNamePacket.h, Source/Network/ClientKeepalive.cpp, Source/Network/ClientKeepalive.h, Source/Network/ClientOptionPacket.cpp, Source/Network/ClientOptionPacket.h, Source/Network/ExecutableDigestPacket.cpp, Source/Network/ExecutableDigestPacket.h, Source/Network/GameTickPacket.cpp, Source/Network/GameTickPacket.h, Source/Render/ActionSpriteDrawing.cpp, Source/Render/ActionSpriteDrawing.h, Source/Render/AlphaQueuesDX7.cpp, Source/Render/AlphaRectangle.cpp, Source/Render/AuxiliaryQueuesDX7.cpp, Source/Render/AuxiliarySubmission.cpp, Source/Render/AuxiliarySubmission.h, Source/Render/BitmapDrawing.cpp, Source/Render/BitmapDrawing.h, Source/Render/BlendColor.cpp, Source/Render/BlendColor.h, Source/Render/DeviceCapabilitiesDX9.cpp, Source/Render/DeviceSelection.cpp, Source/Render/DeviceSelection.h, Source/Render/Direct3DErrors.cpp, Source/Render/Direct3DErrors.h, Source/Render/DisplayMode.cpp, Source/Render/DisplayMode.h, Source/Render/OpaqueQueuesDX7.cpp, Source/Render/RenderAdapter.cpp, Source/Render/RenderAdapter.h, Source/Render/RenderBackends.cpp, Source/Render/RenderBackends.h, Source/Render/RendererDX7.cpp, Source/Render/RendererDX7.h, Source/Render/ScreenGeometry.cpp, Source/Render/ScreenGeometry.h, Source/Render/ScreenRectangle.cpp, Source/Render/ScreenRectangle.h, Source/Render/SpriteGeometry.cpp, Source/Render/SpriteGeometry.h, Source/Render/SpriteQuad.cpp, Source/Render/SpriteQuad.h, Source/Render/TextureQuad.cpp, Source/Render/TextureQuad.h, Source/Render/TextureStageModes.h, Source/Render/UIRPDataDrawing.cpp, Source/Render/ViewportProjection.cpp, Source/Resource/BinkRuntime.h, Source/Resource/EZeffectResource.cpp, Source/Resource/EZeffectResource.h, Source/Resource/EmblemResource.cpp, Source/Resource/EmblemResource.h, Source/Resource/GifLzw.cpp, Source/Resource/GifLzw.h, Source/Resource/GifResource.cpp, Source/Resource/GifResource.h, Source/Resource/ImfLayerIndex.cpp, Source/Resource/ImfResource.cpp, Source/Resource/ImfResource.h, Source/Resource/PaletteResource.cpp, Source/Resource/PaletteResource.h, Source/Resource/RmaResource.cpp, Source/Resource/RmaResource.h, Source/Resource/SkinPalette.cpp, Source/Resource/SkinPalette.h, Source/Resource/TextureNames.cpp, Source/Resource/TextureNames.h, Source/Resource/XmlNode.cpp, Source/Resource/XmlNode.h, Source/Resource/XmlParsing.cpp, Source/UI/Buttons/UICashEmotionSprBtn.h, Source/UI/Buttons/UIDescriptRace.cpp, Source/UI/Buttons/UIDescriptRace.h, Source/UI/Buttons/UIItemMoveInfo.cpp, Source/UI/Buttons/UIItemMoveInfo.h, Source/UI/Buttons/UIJobSlotButton.cpp, Source/UI/Buttons/UIJobSlotButton.h, Source/UI/Buttons/UIReplayButton.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIEmailAddressWnd.cpp, Source/UI/Dialogs/UIEmailAddressWnd.h, Source/UI/Dialogs/UIGraffiStrboxWnd.cpp, Source/UI/Dialogs/UIGraffiStrboxWnd.h, Source/UI/Dialogs/UIMemorialDunWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.cpp, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINotifyQuestWnd.h, Source/UI/Dialogs/UIPasswordWnd.cpp, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UIPetTamingDeceiveWnd.h, Source/UI/Dialogs/UISecondPasswordEditWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UIWaitDBSaveWnd.cpp, Source/UI/Dialogs/UIWaitDBSaveWnd.h, Source/UI/FrameSkin.cpp, Source/UI/FrameSkin.h, Source/UI/Item/UIEquipmentPropertiesWnd.cpp, Source/UI/Item/UIEquipmentPropertiesWnd.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemShopWnd.h, Source/UI/Item/UIItemShopWnd2.h, Source/UI/Item/UIItemStoreFindWnd.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Item/UIItemStoreWnd.cpp, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIMerchantItemLogWnd.cpp, Source/UI/Item/UIMerchantItemLogWnd.h, Source/UI/Item/UIParaItemShopWnd.cpp, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Lists/UIItemStoreComboBox.cpp, Source/UI/Lists/UIItemStoreComboBox.h, Source/UI/Lists/UIListBoxNavi.cpp, Source/UI/Lists/UIListBoxNavi.h, Source/UI/Lists/UIListBoxNaviSearch.h, Source/UI/Lists/UIPackageBoxNameList.cpp, Source/UI/Lists/UIPackageBoxNameList.h, Source/UI/Lists/UIReplayListBox.h, Source/UI/Lists/UIScrollBarNavi.cpp, Source/UI/Lists/UIScrollBarNavi.h, Source/UI/MiniPartyGrid.cpp, Source/UI/MiniPartyGrid.h, Source/UI/MiniPartyManager.cpp, Source/UI/MiniPartyPlacement.cpp, Source/UI/MiniPartyPlacement.h, Source/UI/MiniPartyUsableArea.cpp, Source/UI/PriceCommission.cpp, Source/UI/PriceCommission.h, Source/UI/Text/NavigationLink.cpp, Source/UI/Text/NavigationLink.h, Source/UI/Text/UIAchWnd.cpp, Source/UI/Text/UIAchWnd.h, Source/UI/TextTagExtraction.cpp, Source/UI/TextTagRegistry.cpp, Source/UI/TextTags.h, Source/UI/UIBarGraph.cpp, Source/UI/UIBarGraph.h, Source/UI/UIBartermarketWnd.cpp, Source/UI/UIBartermarketWnd.h, Source/UI/UIBasicCtrl.cpp, Source/UI/UIBasicCtrl.h, Source/UI/UIBroadcastBalloon.cpp, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaPreviewWnd.cpp, Source/UI/UICaptchaPreviewWnd.h, Source/UI/UICaptchaRegisterWnd.cpp, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIChangeMaterialWnd.cpp, Source/UI/UIChangeMaterialWnd.h, Source/UI/UICheckAttendanceWnd.cpp, Source/UI/UICheckAttendanceWnd.h, Source/UI/UIGradeEnchantWnd.cpp, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIHotkeyGuideWnd.cpp, Source/UI/UIHotkeyGuideWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIItemReformWnd.cpp, Source/UI/UIItemReformWnd.h, Source/UI/UILapineBoxWnd.cpp, Source/UI/UILapineScrollBar.cpp, Source/UI/UILapineScrollBar.h, Source/UI/UILapineUpgradeBoxWnd.cpp, Source/UI/UILapineUpgradeBoxWnd.h, Source/UI/UIMacroBlackListCheckWnd.cpp, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroDetectorWnd.cpp, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIMacroReport.cpp, Source/UI/UIMacroReport.h, Source/UI/UIMacroUserInfoWnd.cpp, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.cpp, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.cpp, Source/UI/UIRefiningWnd.h, Source/UI/UIReputeWnd.cpp, Source/UI/UIReputeWnd.h, Source/UI/UIRoundBoxTooltipWnd.cpp, Source/UI/UIRoundBoxTooltipWnd.h, Source/UI/UIScrollWnd.cpp, Source/UI/UIScrollWnd.h, Source/UI/UISlotBitmap.cpp, Source/UI/UISlotBitmap.h, Source/UI/UIStaticBitmap.cpp, Source/UI/UIStaticBitmap.h, Source/UI/UIStaticItem.cpp, Source/UI/UIStaticItem.h, Source/UI/Window/FuncDrawWNDChar.cpp, Source/UI/Window/FuncDrawWNDChar.h, Source/UI/Window/MiniPartyWndAreaMgr.h, Source/UI/Window/UIAccountLimitedToolWnd.cpp, Source/UI/Window/UIAccountLimitedToolWnd.h, Source/UI/Window/UIBalloonOpenBtn.cpp, Source/UI/Window/UIBalloonOpenBtn.h, Source/UI/Window/UIBank_NewWnd.h, Source/UI/Window/UIBasicInfoWnd.cpp, Source/UI/Window/UIBasicInfoWnd.h, Source/UI/Window/UIBattleMsgOptionWnd.cpp, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChangeNameWnd.cpp, Source/UI/Window/UIChangeNameWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICntWnd.h, Source/UI/Window/UICollectionSystemWnd.cpp, Source/UI/Window/UICollectionSystemWnd.h, Source/UI/Window/UIDebuffRemoveWnd.cpp, Source/UI/Window/UIDebuffRemoveWnd.h, Source/UI/Window/UIEmblemWnd.cpp, Source/UI/Window/UIEmblemWnd.h, Source/UI/Window/UIEscOptionWnd.cpp, Source/UI/Window/UIEscOptionWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIHotKeyWnd.cpp, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UIJobListWnd.cpp, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILocaleTextWnd.cpp, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UILoginWnd.cpp, Source/UI/Window/UILoginWnd.h, Source/UI/Window/UIMakeCharWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.cpp, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UIMessageBoxAutoreturn.h, Source/UI/Window/UIMileageWnd.cpp, Source/UI/Window/UIMileageWnd.h, Source/UI/Window/UIMiniBtnWnd.cpp, Source/UI/Window/UIMiniBtnWnd.h, Source/UI/Window/UIMonsterDisplayWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationHelpWnd.cpp, Source/UI/Window/UINavigationHelpWnd.h, Source/UI/Window/UINavigationWnd.cpp, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.cpp, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UINewSelectCharWnd.cpp, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.cpp, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UINewSkillListWndHitTest.cpp, Source/UI/Window/UINormalMB.cpp, Source/UI/Window/UINormalMB.h, Source/UI/Window/UINoteWnd.cpp, Source/UI/Window/UINoteWnd.h, Source/UI/Window/UINoticeWnd.cpp, Source/UI/Window/UINoticeWnd.h, Source/UI/Window/UIOpenMailBoxWnd.cpp, Source/UI/Window/UIOpenMailBoxWnd.h, Source/UI/Window/UIOpenRoulletteWnd.cpp, Source/UI/Window/UIOpenRoulletteWnd.h, Source/UI/Window/UIPartyBookingHelpWnd.cpp, Source/UI/Window/UIPartyBookingHelpWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetEvolutionWnd.cpp, Source/UI/Window/UIPetEvolutionWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRPImageWnd.cpp, Source/UI/Window/UIRPImageWnd.h, Source/UI/Window/UIRPImageWnd2.cpp, Source/UI/Window/UIRPImageWnd2.h, Source/UI/Window/UIRebirthWnd.cpp, Source/UI/Window/UIRebirthWnd.h, Source/UI/Window/UIReplayControlWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIRoMapWnd.cpp, Source/UI/Window/UIRoMapWnd.h, Source/UI/Window/UIRodexContentsWnd.cpp, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UIRoulletteWnd.cpp, Source/UI/Window/UIRoulletteWnd.h, Source/UI/Window/UISecondCostumeWnd.cpp, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyListWnd.cpp, Source/UI/Window/UISeekPartyListWnd.h, Source/UI/Window/UISeekPartyMBWnd.cpp, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.cpp, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelCharForUServerWnd.cpp, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UISelectReplayDataWnd.h, Source/UI/Window/UISelectServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.cpp, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UIShowWarpWnd.cpp, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UITransMenuWnd.cpp, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIVideoWnd.cpp, Source/UI/Window/UIVideoWnd.h, Source/UI/Window/UIViewCameraInfoWnd.cpp, Source/UI/Window/UIViewCameraInfoWnd.h, Source/UI/Window/UIWindowCallBtnWnd.h, Source/UI/Window/UIWordDisplayWnd.cpp, Source/UI/Window/UIWordDisplayWnd.h, Source/UI/Window/UIZeroChatWnd.cpp, Source/UI/WindowBackground.cpp, Source/UI/WindowLowerBorder.cpp, Source/UI/WindowOverlay.cpp, Source/UI/WindowSprite.cpp, Source/UI/WindowTitlebar.cpp, Source/Utility/CRC32.cpp, Source/Utility/CRC32.h, Source/Utility/Compression/Zlib.h, Source/Utility/EncryptedName.h, Source/Utility/FileSignatureVerifier.cpp, Source/Utility/FileSignatureVerifier.h, Source/Utility/GGHash.cpp, Source/Utility/GGHash.h, Source/Utility/GGHashMgr.cpp, Source/Utility/GGHashMgr.h, Source/Utility/GuidParse.cpp, Source/Utility/GuidParse.h, Source/Utility/JsonCppLoader.cpp, Source/Utility/JsonCppLoader.h, Source/Utility/Md5State.cpp, Source/Utility/Md5State.h, Source/Utility/NFileLog.cpp, Source/Utility/NFileLog.h, Source/Utility/NIPAddr.cpp, Source/Utility/NIPAddr.h, Source/Utility/ProcessSecurity.cpp, Source/Utility/ProcessSecurity.h, Source/Utility/RegistryKey.cpp, Source/Utility/RegistryKey.h, Source/Utility/SHA3.cpp, Source/Utility/SHA3.h, Source/Utility/Tokenizer.cpp, Source/Utility/Tokenizer.h, Source/Utility/XxHash3.cpp, Source/Utility/XxHash3.h
3407 lines
109 KiB
C++
3407 lines
109 KiB
C++
#include "Contents/Skills/SkillId.h"
|
|
#include "Client/Mode/ModeMessage.h"
|
|
#include "Contents/Actors/ActorEnums.h"
|
|
#include "UI/Window/UIEnums.h"
|
|
#include "Contents/CombatTypes.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Client/Mode/CMode.h"
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Contents/ClientState.h"
|
|
#include "Contents/Items/ItemDescription.h"
|
|
#include "Contents/Items/WeaponType.h"
|
|
#include "Contents/Tables/MessageTable.h"
|
|
#include "Contents/Messenger/ClientMessenger.h"
|
|
#include "Contents/Skills/SkillInfo.h"
|
|
#include "Client/Session/Session.h"
|
|
#include "Contents/Actors/GameActor.h"
|
|
#include "Contents/Effects/Core/EffectLists.h"
|
|
#include "Contents/Effects/Core/EffectTypes.h"
|
|
#include "Contents/Actors/Resources/EquipmentResourceMgr.h"
|
|
#include "Contents/Skills/ClientSkills.h"
|
|
#include "Contents/Sound/SoundMgr.h"
|
|
#include "Contents/Jobs/JobInheritance.h"
|
|
#include "Contents/Jobs/JobId.h"
|
|
#include "Contents/Map/MapPropertyMgr.h"
|
|
#include "Contents/Skills/PlayerSkillBundle.h"
|
|
#include "Contents/World/World.h"
|
|
#include "File/MapName.h"
|
|
#include "Script/LuaScript.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "Utility/Text/FormatString.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "Contents/Effects/Skills/AMachineEffect.h"
|
|
#include "Contents/Effects/Core/RagEffect.h"
|
|
#include "Resource/World/TerrainResource.h"
|
|
#include "Utility/Math/AffineMatrix.h"
|
|
|
|
#include "Resource/MSGSTRINGID.h"
|
|
#include <cstring>
|
|
#include <list>
|
|
#include <new>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
// GLOBAL: gl_24496
|
|
int g_screenShakeDuration;
|
|
|
|
// GLOBAL: gl_24497
|
|
char g_screenShakeMode;
|
|
|
|
// GLOBAL: gl_24702
|
|
const char g_playerNameKeyData[] = "가나다라마바사아자차카타파하가나다라마바사아자차카타파하";
|
|
|
|
// GLOBAL: gl_24649
|
|
const char* g_playerNameKey = g_playerNameKeyData;
|
|
|
|
// OFFSET: 0x00DFBC00
|
|
// FUNCTION: fn_23585
|
|
__declspec(noinline) bool CSession::IsTreeGroupTwo(int job) const {
|
|
if (job >= JT_RUNE_KNIGHT && job <= JT_MADOGEAR_B) {
|
|
return true;
|
|
}
|
|
|
|
switch (job) {
|
|
case JT_PIG_GENETIC:
|
|
case JT_SHEEP_SURA:
|
|
case JT_SHEEP_ARCB:
|
|
case JT_FOX_SORCERER:
|
|
case JT_FOX_WARLOCK:
|
|
case JT_DOG_G_CROSS:
|
|
case JT_DOG_CHASER:
|
|
case JT_OSTRICH_MINSTREL:
|
|
case JT_OSTRICH_WANDER:
|
|
case JT_FOX_WARLOCK_B:
|
|
case JT_SHEEP_ARCB_B:
|
|
case JT_DOG_G_CROSS_B:
|
|
case JT_FOX_SORCERER_B:
|
|
case JT_OSTRICH_MINSTREL_B:
|
|
case JT_OSTRICH_WANDER_B:
|
|
case JT_SHEEP_SURA_B:
|
|
case JT_PIG_GENETIC_B:
|
|
case JT_DOG_CHASER_B:
|
|
case JT_PIG_MECHANIC:
|
|
case JT_OSTRICH_RANGER:
|
|
case JT_LION_ROYAL_GUARD:
|
|
case JT_LION_RUNE_KNIGHT:
|
|
case JT_PIG_MECHANIC_B:
|
|
case JT_OSTRICH_RANGER_B:
|
|
case JT_LION_ROYAL_GUARD_B:
|
|
case JT_LION_RUNE_KNIGHT_B:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00DFBCA0
|
|
// FUNCTION: fn_23586
|
|
__declspec(noinline) bool CSession::IsTreeGroupThree(int job) const {
|
|
const auto value = static_cast<unsigned>(job);
|
|
return value - JT_DRAGON_KNIGHT <= unsigned(JT_FOURTH_JOB_END - JT_DRAGON_KNIGHT) ||
|
|
value - JT_SKY_EMPEROR <= unsigned(JT_UPPER_EXTENDED_JOB2_END - 1 - JT_SKY_EMPEROR) || job == JT_ALITEA || job == JT_ALITEA_RIDING;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA600
|
|
// FUNCTION: fn_23576
|
|
bool CSession::IsNpcJob(int job) const {
|
|
if ((job >= JT_WARPNPC && job < JT_MON_BEGIN) || static_cast<unsigned>(job - JT_4_TOWER_14) <= unsigned(JT_NPC_END - JT_4_TOWER_14)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA630
|
|
// FUNCTION: fn_23577
|
|
bool __stdcall ValidateCharacterName(const char* name) {
|
|
const int length = static_cast<int>(std::strlen(name));
|
|
for (int index = 0; index < length; ++index) {
|
|
if (name[index] == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA670
|
|
// FUNCTION: fn_23578
|
|
bool CSession::IsNavigationAllowed() const {
|
|
const std::string name = ScriptMapName(this->m_navigationPlayerMap);
|
|
for (const auto& forbidden : this->m_navigationForbiddenMaps) {
|
|
if (std::strcmp(forbidden.c_str(), name.c_str()) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA810
|
|
// FUNCTION: fn_23579
|
|
bool IsNavigationActive() {
|
|
if (g_windowMgr.itemShopWnd != 0) {
|
|
return false;
|
|
}
|
|
if (g_windowMgr.HasNavigationBlocker() == true) {
|
|
return false;
|
|
}
|
|
if (g_windowMgr.nCashWnd != 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00DFA8D0
|
|
// FUNCTION: fn_23580
|
|
bool CSession::HasJobShieldSprite(int job, int shield) const {
|
|
if (shield > 2000) {
|
|
switch (job) {
|
|
case JT_CHICKEN:
|
|
case JT_CHICKEN2:
|
|
case JT_MARRIED:
|
|
case JT_SANTA:
|
|
case JT_SUMMER:
|
|
case JT_HANBOK:
|
|
case JT_OKTOBERFEST:
|
|
case JT_SUMMER2:
|
|
case JT_CHICKEN_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_CHICKEN_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_GANGSI:
|
|
case JT_DEATHKNIGHT:
|
|
case JT_COLLECTOR:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_DO_CART_SUMMONER:
|
|
case JT_WOLF_WINDHAWK:
|
|
case JT_MEISTER_MADOGEAR:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
switch (job) {
|
|
case JT_NOVICE:
|
|
case JT_MAGICIAN:
|
|
case JT_ARCHER:
|
|
case JT_WIZARD:
|
|
case JT_HUNTER:
|
|
case JT_SAGE:
|
|
case JT_BARD:
|
|
case JT_DANCER:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_MAGICIAN_H:
|
|
case JT_ARCHER_H:
|
|
case JT_WIZARD_H:
|
|
case JT_HUNTER_H:
|
|
case JT_SAGE_H:
|
|
case JT_BARD_H:
|
|
case JT_DANCER_H:
|
|
case JT_NOVICE_B:
|
|
case JT_MAGICIAN_B:
|
|
case JT_ARCHER_B:
|
|
case JT_WIZARD_B:
|
|
case JT_HUNTER_B:
|
|
case JT_SAGE_B:
|
|
case JT_BARD_B:
|
|
case JT_DANCER_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_WARLOCK:
|
|
case JT_RANGER:
|
|
case JT_WARLOCK_H:
|
|
case JT_RANGER_H:
|
|
case JT_SORCERER:
|
|
case JT_MINSTREL:
|
|
case JT_WANDERER:
|
|
case JT_SORCERER_H:
|
|
case JT_MINSTREL_H:
|
|
case JT_WANDERER_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_RANGER_B:
|
|
case JT_SORCERER_B:
|
|
case JT_MINSTREL_B:
|
|
case JT_WANDERER_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_WINDHAWK:
|
|
case JT_ELEMENTAL_MASTER:
|
|
case JT_TROUBADOUR:
|
|
case JT_TROUVERE:
|
|
case JT_HYPER_NOVICE:
|
|
return shield == 1;
|
|
case JT_SWORDMAN:
|
|
case JT_KNIGHT:
|
|
case JT_CRUSADER:
|
|
case JT_SWORDMAN_H:
|
|
case JT_KNIGHT_H:
|
|
case JT_CRUSADER_H:
|
|
case JT_SWORDMAN_B:
|
|
case JT_KNIGHT_B:
|
|
case JT_CRUSADER_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_ACOLYTE:
|
|
case JT_MERCHANT:
|
|
case JT_THIEF:
|
|
case JT_PRIEST:
|
|
case JT_BLACKSMITH:
|
|
case JT_ASSASSIN:
|
|
case JT_ROGUE:
|
|
case JT_ALCHEMIST:
|
|
case JT_ACOLYTE_H:
|
|
case JT_MERCHANT_H:
|
|
case JT_THIEF_H:
|
|
case JT_PRIEST_H:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ROGUE_H:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ACOLYTE_B:
|
|
case JT_MERCHANT_B:
|
|
case JT_THIEF_B:
|
|
case JT_PRIEST_B:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_ASSASSIN_B:
|
|
case JT_ROGUE_B:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_MECHANIC:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_MECHANIC_H:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GENETIC:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_GENETIC_H:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_MECHANIC_B:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_GENETIC_B:
|
|
case JT_SHADOW_CHASER_B:
|
|
case JT_MEISTER:
|
|
case JT_SHADOW_CROSS:
|
|
case JT_CARDINAL:
|
|
case JT_BIOLO:
|
|
case JT_ABYSS_CHASER:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_DO_SUMMONER:
|
|
case JT_DO_SUMMONER_B:
|
|
case JT_SPIRIT_HANDLER:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
case JT_DRUID:
|
|
case JT_DRUID_B:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_ALITEA:
|
|
switch (shield) {
|
|
case 1:
|
|
case 2:
|
|
case 4:
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFAC70
|
|
// FUNCTION: fn_23581
|
|
bool CSession::IsJobWeaponTypeAllowed(int job, std::int64_t weaponType) const {
|
|
switch (job) {
|
|
case JT_GUNSLINGER:
|
|
case JT_GUNSLINGER_B:
|
|
switch (weaponType) {
|
|
case W_REVOLVER:
|
|
case W_RIFLE:
|
|
case W_GATLING:
|
|
case W_SHOTGUN:
|
|
case W_GRENADE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_NINJA:
|
|
case JT_NINJA_B:
|
|
return weaponType == W_HUUMA;
|
|
case JT_STAR:
|
|
case JT_STAR2:
|
|
case JT_STAR_B:
|
|
case JT_STAR2_B:
|
|
case JT_STAR_EMPEROR:
|
|
case JT_STAR_EMPEROR_B:
|
|
case JT_STAR2_EMPEROR:
|
|
case JT_STAR2_EMPEROR_B:
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SKY_EMPEROR2:
|
|
return weaponType == W_BOOK;
|
|
case JT_MAGICIAN:
|
|
case JT_WIZARD:
|
|
case JT_MAGICIAN_H:
|
|
case JT_WIZARD_H:
|
|
case JT_MAGICIAN_B:
|
|
case JT_WIZARD_B:
|
|
case JT_LINKER:
|
|
case JT_WARLOCK:
|
|
case JT_WARLOCK_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_LINKER_B:
|
|
case JT_SOUL_REAPER:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_SOUL_ASCETIC:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_NOVICE:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_NOVICE_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_HYPER_NOVICE:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_SWORDMAN:
|
|
case JT_SWORDMAN_H:
|
|
case JT_SWORDMAN_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ACOLYTE:
|
|
case JT_ACOLYTE_H:
|
|
case JT_ACOLYTE_B:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_MERCHANT:
|
|
case JT_MERCHANT_H:
|
|
case JT_MERCHANT_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_THIEF:
|
|
case JT_ROGUE:
|
|
case JT_THIEF_H:
|
|
case JT_ROGUE_H:
|
|
case JT_THIEF_B:
|
|
case JT_ROGUE_B:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_SHADOW_CHASER_B:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_BOW:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_KNIGHT:
|
|
case JT_CHICKEN:
|
|
case JT_KNIGHT_H:
|
|
case JT_CHICKEN_H:
|
|
case JT_KNIGHT_B:
|
|
case JT_CHICKEN_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_PRIEST:
|
|
case JT_PRIEST_H:
|
|
case JT_PRIEST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_CARDINAL:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_BLACKSMITH:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_MECHANIC:
|
|
case JT_MECHANIC_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_MECHANIC_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_MEISTER:
|
|
case JT_MEISTER_MADOGEAR:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ARCHER:
|
|
case JT_HUNTER:
|
|
case JT_ARCHER_H:
|
|
case JT_HUNTER_H:
|
|
case JT_ARCHER_B:
|
|
case JT_HUNTER_B:
|
|
case JT_RANGER:
|
|
case JT_RANGER_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_RANGER_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_WINDHAWK:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ASSASSIN:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ASSASSIN_B:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_SHADOW_CROSS:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_KATAR:
|
|
case W_DOUBLE_DD:
|
|
case W_DOUBLE_SS:
|
|
case W_DOUBLE_AA:
|
|
case W_DOUBLE_DS:
|
|
case W_DOUBLE_DA:
|
|
case W_DOUBLE_SA:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_CRUSADER:
|
|
case JT_CHICKEN2:
|
|
case JT_CRUSADER_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_CRUSADER_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HSPEAR:
|
|
case W_2HSPEAR:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_BARD:
|
|
case JT_BARD_H:
|
|
case JT_BARD_B:
|
|
case JT_MINSTREL:
|
|
case JT_MINSTREL_H:
|
|
case JT_MINSTREL_B:
|
|
case JT_TROUBADOUR:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
case W_MUSICAL:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_ALCHEMIST:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_GENETIC:
|
|
case JT_GENETIC_H:
|
|
case JT_GENETIC_B:
|
|
case JT_BIOLO:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_MONK:
|
|
case JT_MONK_H:
|
|
case JT_MONK_B:
|
|
case JT_SURA:
|
|
case JT_SURA_H:
|
|
case JT_SURA_B:
|
|
case JT_INQUISITOR:
|
|
switch (weaponType) {
|
|
case W_MACE:
|
|
case W_STAFF:
|
|
case W_KNUCKLE:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
}
|
|
break;
|
|
case JT_SAGE:
|
|
case JT_SAGE_H:
|
|
case JT_SAGE_B:
|
|
case JT_SORCERER:
|
|
case JT_SORCERER_H:
|
|
case JT_SORCERER_B:
|
|
case JT_ELEMENTAL_MASTER:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_1HSWORD:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
return true;
|
|
case JT_DANCER:
|
|
case JT_DANCER_H:
|
|
case JT_DANCER_B:
|
|
case JT_WANDERER:
|
|
case JT_WANDERER_H:
|
|
case JT_WANDERER_B:
|
|
case JT_TROUVERE:
|
|
switch (weaponType) {
|
|
case W_DAGGER:
|
|
case W_BOW:
|
|
case W_WHIP:
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
case JT_GANGSI:
|
|
case JT_DEATHKNIGHT:
|
|
case JT_COLLECTOR:
|
|
return true;
|
|
default:
|
|
if (weaponType == W_DAGGER) {
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00DFBCE0
|
|
// FUNCTION: fn_23587
|
|
__declspec(noinline) int __stdcall IsPlayerJob(int job) {
|
|
const auto value = static_cast<unsigned>(job);
|
|
return value - JT_NOVICE_H <= unsigned(JT_MER_BEGIN - 1 - JT_NOVICE_H) || value <= unsigned(JT_SUMMER2);
|
|
}
|
|
|
|
// OFFSET: 0x00E19110
|
|
// FUNCTION: fn_23835
|
|
int CSession::InheritedJob(int job) {
|
|
job = this->m_hotkeyScript->TableInteger("JobInheritTable", 0, job);
|
|
const int replacement = this->m_hotkeyScript->TableInteger("JOB_INHERIT_LIST2", 0, job);
|
|
return replacement != -1 ? replacement : job;
|
|
}
|
|
|
|
// OFFSET: 0x00E25B70
|
|
// FUNCTION: fn_23907
|
|
void CSession::InitializeSkillTree() {
|
|
int count = 0;
|
|
if (!this->m_hotkeyScript->Call("GetInheritJob", "d>d", this->m_job, &count) || count == -1) {
|
|
return;
|
|
}
|
|
|
|
this->m_skillBundle.ClearGroups();
|
|
this->m_skillBundle.ClearExtra();
|
|
this->m_skillBundle.ClearLevelChanges();
|
|
|
|
for (int index = count; index > 0; --index) {
|
|
const int inherited = this->InheritedJob(index);
|
|
int group = 1;
|
|
if (inherited == JT_NOVICE || this->InheritedJob(index + 1) == JT_NOVICE || inherited == JT_DO_SUMMONER || inherited == JT_DO_SUMMONER_B) {
|
|
group = 0;
|
|
} else if (this->IsTreeGroupTwo(inherited) == 1 || inherited == JT_STAR_EMPEROR || inherited == JT_SOUL_REAPER || inherited == JT_STAR_EMPEROR_B ||
|
|
inherited == JT_SOUL_REAPER_B) {
|
|
group = 2;
|
|
} else if (this->IsTreeGroupThree(inherited) == true) {
|
|
group = 3;
|
|
}
|
|
|
|
switch (inherited) {
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SOUL_ASCETIC:
|
|
group = 3;
|
|
break;
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
case JT_NIGHT_WATCH:
|
|
case JT_HYPER_NOVICE:
|
|
case JT_ALITEA:
|
|
group = 2;
|
|
break;
|
|
case JT_SPIRIT_HANDLER:
|
|
group = 1;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
this->m_hotkeyScript->Call("InitSkillTreeView", "dd", inherited, group);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00DE0830
|
|
// FUNCTION: fn_23461
|
|
int __stdcall GetRealWeaponId(int weapon) {
|
|
int real = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetRealWeaponId", "d>d", weapon, &real)) {
|
|
return real;
|
|
}
|
|
return weapon;
|
|
}
|
|
|
|
// OFFSET: 0x00DFB4B0
|
|
// FUNCTION: fn_23583
|
|
bool __stdcall IsJobWeaponAllowed(int job, int slot, std::int64_t weapon) {
|
|
if (weapon >= 105) {
|
|
if (job == JT_ASSASSIN || job == JT_ASSASSIN_H || job == JT_ASSASSIN_B || job == JT_GUILLOTINE_CROSS || job == JT_GUILLOTINE_CROSS_H ||
|
|
job == JT_GUILLOTINE_CROSS_B || job == JT_SHADOW_CROSS) {
|
|
if (GetWeaponViewValue(static_cast<int>(weapon >> 32)) > 0) {
|
|
weapon = GetDualWieldWeaponType(static_cast<int>(weapon), static_cast<int>(weapon >> 32));
|
|
} else {
|
|
weapon = GetWeaponViewValue(static_cast<int>(weapon));
|
|
}
|
|
} else {
|
|
weapon = GetWeaponViewValue(static_cast<int>(weapon));
|
|
}
|
|
}
|
|
|
|
const std::int64_t view = GetRealWeaponId(static_cast<int>(weapon));
|
|
bool result = false;
|
|
|
|
switch (job) {
|
|
case JT_SWORDMAN:
|
|
case JT_KNIGHT:
|
|
case JT_CHICKEN:
|
|
case JT_CRUSADER:
|
|
case JT_CHICKEN2:
|
|
case JT_SWORDMAN_H:
|
|
case JT_KNIGHT_H:
|
|
case JT_CHICKEN_H:
|
|
case JT_CRUSADER_H:
|
|
case JT_CHICKEN2_H:
|
|
case JT_SWORDMAN_B:
|
|
case JT_KNIGHT_B:
|
|
case JT_CHICKEN_B:
|
|
case JT_CRUSADER_B:
|
|
case JT_CHICKEN2_B:
|
|
case JT_RUNE_KNIGHT:
|
|
case JT_RUNE_KNIGHT_H:
|
|
case JT_ROYAL_GUARD:
|
|
case JT_ROYAL_GUARD_H:
|
|
case JT_RUNE_CHICKEN:
|
|
case JT_RUNE_CHICKEN_H:
|
|
case JT_ROYAL_CHICKEN:
|
|
case JT_ROYAL_CHICKEN_H:
|
|
case JT_RUNE_CHICKEN2:
|
|
case JT_RUNE_CHICKEN2_H:
|
|
case JT_RUNE_CHICKEN3:
|
|
case JT_RUNE_CHICKEN3_H:
|
|
case JT_RUNE_CHICKEN4:
|
|
case JT_RUNE_CHICKEN4_H:
|
|
case JT_RUNE_CHICKEN5:
|
|
case JT_RUNE_CHICKEN5_H:
|
|
case JT_RUNE_KNIGHT_B:
|
|
case JT_ROYAL_GUARD_B:
|
|
case JT_RUNE_CHICKEN_B:
|
|
case JT_ROYAL_CHICKEN_B:
|
|
case JT_DRAGON_KNIGHT:
|
|
case JT_IMPERIAL_GUARD:
|
|
case JT_DRAGON_KNIGHT_CHICKEN:
|
|
case JT_IMPERIAL_GUARD_CHICKEN:
|
|
if (view == W_1HSPEAR || view == W_2HSPEAR) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_MAGICIAN:
|
|
case JT_MERCHANT:
|
|
case JT_MAGICIAN_H:
|
|
case JT_MERCHANT_H:
|
|
case JT_MAGICIAN_B:
|
|
case JT_MERCHANT_B:
|
|
if (view == W_DAGGER) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_ARCHER:
|
|
case JT_ARCHER_H:
|
|
case JT_ARCHER_B:
|
|
if (view != W_BOW) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_THIEF:
|
|
case JT_HUNTER:
|
|
case JT_ROGUE:
|
|
case JT_BARD:
|
|
case JT_DANCER:
|
|
case JT_THIEF_H:
|
|
case JT_HUNTER_H:
|
|
case JT_ROGUE_H:
|
|
case JT_BARD_H:
|
|
case JT_DANCER_H:
|
|
case JT_THIEF_B:
|
|
case JT_HUNTER_B:
|
|
case JT_ROGUE_B:
|
|
case JT_BARD_B:
|
|
case JT_DANCER_B:
|
|
case JT_RANGER:
|
|
case JT_RANGER_H:
|
|
case JT_MINSTREL:
|
|
case JT_WANDERER:
|
|
case JT_SHADOW_CHASER:
|
|
case JT_MINSTREL_H:
|
|
case JT_WANDERER_H:
|
|
case JT_SHADOW_CHASER_H:
|
|
case JT_WOLF_RANGER:
|
|
case JT_WOLF_RANGER_H:
|
|
case JT_RANGER_B:
|
|
case JT_MINSTREL_B:
|
|
case JT_WANDERER_B:
|
|
case JT_SHADOW_CHASER_B:
|
|
case JT_WOLF_RANGER_B:
|
|
case JT_WINDHAWK:
|
|
case JT_ABYSS_CHASER:
|
|
case JT_TROUBADOUR:
|
|
case JT_TROUVERE:
|
|
case JT_WOLF_WINDHAWK:
|
|
if (view == W_BOW) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_PRIEST:
|
|
case JT_PRIEST_H:
|
|
case JT_PRIEST_B:
|
|
case JT_ARCHBISHOP:
|
|
case JT_ARCHBISHOP_H:
|
|
case JT_ARCHBISHOP_B:
|
|
case JT_CARDINAL:
|
|
if (view == W_BOOK) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_WIZARD:
|
|
case JT_WIZARD_H:
|
|
case JT_WIZARD_B:
|
|
case JT_LINKER:
|
|
case JT_WARLOCK:
|
|
case JT_WARLOCK_H:
|
|
case JT_WARLOCK_B:
|
|
case JT_LINKER_B:
|
|
case JT_SOUL_REAPER:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_ARCH_MAGE:
|
|
case JT_SOUL_ASCETIC:
|
|
if (view == W_DAGGER) {
|
|
if (slot == 1) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
if (view == W_STAFF || view == W_2HSTAFF) {
|
|
if (slot == 0) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
break;
|
|
case JT_BLACKSMITH:
|
|
case JT_BLACKSMITH_H:
|
|
case JT_BLACKSMITH_B:
|
|
case JT_MECHANIC:
|
|
case JT_MECHANIC_H:
|
|
case JT_MADOGEAR:
|
|
case JT_MADOGEAR_H:
|
|
case JT_MECHANIC_B:
|
|
case JT_MADOGEAR_B:
|
|
case JT_MEISTER:
|
|
case JT_MEISTER_MADOGEAR:
|
|
case JT_DRUID:
|
|
case JT_DRUID_B:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_ALITEA:
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_ASSASSIN:
|
|
case JT_ASSASSIN_H:
|
|
case JT_ASSASSIN_B:
|
|
case JT_GUILLOTINE_CROSS:
|
|
case JT_GUILLOTINE_CROSS_H:
|
|
case JT_GUILLOTINE_CROSS_B:
|
|
case JT_SHADOW_CROSS:
|
|
switch (view) {
|
|
case W_KATAR:
|
|
case W_DOUBLE_DD:
|
|
case W_DOUBLE_SS:
|
|
case W_DOUBLE_AA:
|
|
case W_DOUBLE_DS:
|
|
case W_DOUBLE_DA:
|
|
case W_DOUBLE_SA:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_MONK:
|
|
case JT_MONK_H:
|
|
case JT_MONK_B:
|
|
case JT_SURA:
|
|
case JT_SURA_H:
|
|
case JT_SURA_B:
|
|
case JT_INQUISITOR:
|
|
if (view == W_FIST || view == W_KNUCKLE) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_SAGE:
|
|
case JT_SAGE_H:
|
|
case JT_SAGE_B:
|
|
case JT_SORCERER:
|
|
case JT_SORCERER_H:
|
|
case JT_SORCERER_B:
|
|
case JT_ELEMENTAL_MASTER:
|
|
switch (view) {
|
|
case W_2HSPEAR:
|
|
case W_STAFF:
|
|
case W_BOOK:
|
|
case W_2HSTAFF:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_ALCHEMIST:
|
|
case JT_ALCHEMIST_H:
|
|
case JT_ALCHEMIST_B:
|
|
case JT_GENETIC:
|
|
case JT_GENETIC_H:
|
|
case JT_GENETIC_B:
|
|
case JT_BIOLO:
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_NOVICE:
|
|
case JT_SUPERNOVICE:
|
|
case JT_NOVICE_H:
|
|
case JT_NOVICE_B:
|
|
case JT_SUPERNOVICE_B:
|
|
case JT_SUPERNOVICE2:
|
|
case JT_SUPERNOVICE2_B:
|
|
case JT_HYPER_NOVICE:
|
|
if (slot == 0) {
|
|
if (view == W_DAGGER) {
|
|
result = true;
|
|
}
|
|
break;
|
|
}
|
|
|
|
if (slot != 1) {
|
|
break;
|
|
}
|
|
|
|
switch (view) {
|
|
case W_1HSWORD:
|
|
case W_2HSWORD:
|
|
case W_1HAXE:
|
|
case W_2HAXE:
|
|
case W_MACE:
|
|
case W_2HMACE:
|
|
case W_STAFF:
|
|
case W_2HSTAFF:
|
|
result = true;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
case JT_GUNSLINGER:
|
|
case JT_REBELLION:
|
|
case JT_GUNSLINGER_B:
|
|
case JT_REBELLION_B:
|
|
case JT_NIGHT_WATCH:
|
|
if (view >= 18 && view <= 21) {
|
|
result = true;
|
|
}
|
|
break;
|
|
case JT_NINJA:
|
|
case JT_KAGEROU:
|
|
case JT_OBORO:
|
|
case JT_NINJA_B:
|
|
case JT_KAGEROU_B:
|
|
case JT_OBORO_B:
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
if (view == W_HUUMA) {
|
|
result = true;
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
|
|
// OFFSET: 0x00E0AB60
|
|
// FUNCTION: fn_23803
|
|
std::string CSession::GetWeaponName(int weapon) {
|
|
const unsigned index = GetRealWeaponId(weapon);
|
|
if (index >= static_cast<unsigned>(this->m_weaponNamesEnd - this->m_weaponNamesBegin)) {
|
|
return this->m_weaponNamesBegin[0];
|
|
}
|
|
|
|
return this->m_weaponNamesBegin[index];
|
|
}
|
|
|
|
// OFFSET: 0x00DE3800
|
|
// FUNCTION: fn_23482
|
|
const char* CSession::GetWeaponClassName(int item) {
|
|
const char* name = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("ReqWeaponNameByClassNum", "d>s", FindItemDescription(item).viewId, &name)) {
|
|
return name;
|
|
}
|
|
|
|
return "";
|
|
}
|
|
|
|
// OFFSET: 0x00BAD420
|
|
// FUNCTION: fn_19759
|
|
std::string EquipmentResourceMgr::GetWeaponResourceName(int type, int job, int sex, int weapon, int weaponItem, int costume) {
|
|
std::string result;
|
|
std::string jobName;
|
|
std::string sexName;
|
|
std::string weaponName;
|
|
|
|
const int spriteJob = g_session.GetSpriteJob(job <= 31 ? job : job + 3950, costume, true);
|
|
jobName = g_session.m_jobSpriteNames[spriteJob];
|
|
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
|
|
|
|
if (weaponItem == -1) {
|
|
weaponName = static_cast<const std::string&>(g_session.GetWeaponName(weapon));
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type]));
|
|
} else {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob + 3950)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type]));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00BACEE0
|
|
// FUNCTION: fn_19758
|
|
std::string EquipmentResourceMgr::GetWeaponEffectResourceName(int type, int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
std::string result;
|
|
std::string jobName;
|
|
std::string sexName;
|
|
std::string weaponName;
|
|
const char* const effects[] = {"_검광", "_발광"};
|
|
|
|
const int spriteJob = g_session.GetSpriteJob(job <= 31 ? job : job + 3950, costume, true);
|
|
jobName = g_session.m_jobSpriteNames[spriteJob];
|
|
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
|
|
weaponName = static_cast<const std::string&>(g_session.GetWeaponName(weapon));
|
|
|
|
const char* const suffix = effects[effect];
|
|
if (weaponItem == -1) {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type]));
|
|
} else {
|
|
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
|
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type]));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00E19370
|
|
// FUNCTION: fn_23837
|
|
std::string CSession::GetWeaponActName(int job, int sex, int weapon, int weaponItem, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponResourceName(0, job, sex, weapon, weaponItem, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00E193E0
|
|
// FUNCTION: fn_23838
|
|
std::string CSession::GetWeaponEffectActName(int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
return std::string(g_equipmentResourceMgr->GetWeaponEffectResourceName(0, job, sex, weapon, weaponItem, effect, costume));
|
|
}
|
|
|
|
// OFFSET: 0x00E19450
|
|
// FUNCTION: fn_23839
|
|
std::string CSession::GetWeaponEffectSprName(int job, int sex, int weapon, int weaponItem, int effect, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponEffectResourceName(1, job, sex, weapon, weaponItem, effect, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00E194C0
|
|
// FUNCTION: fn_23840
|
|
std::string CSession::GetWeaponSprName(int job, int sex, int weapon, int weaponItem, int costume) {
|
|
return g_equipmentResourceMgr->GetWeaponResourceName(1, job, sex, weapon, weaponItem, costume);
|
|
}
|
|
|
|
// OFFSET: 0x00DFBE10
|
|
// FUNCTION: fn_23590
|
|
bool __stdcall IsVisibleJob(int job) {
|
|
return job != JT_WARPNPC && job != JT_EFFECTLAUNCHER && job != JT_HIDDEN_NPC;
|
|
}
|
|
|
|
// OFFSET: 0x00E19230
|
|
// FUNCTION: fn_23836
|
|
std::string GetJobTitleString(int job) {
|
|
const char* title = nullptr;
|
|
|
|
if (!g_session.m_hotkeyScript->Call("GetTitleString", "d>s", job, &title)) {
|
|
return "";
|
|
}
|
|
|
|
return title ? title : "";
|
|
}
|
|
|
|
// OFFSET: 0x00E19530
|
|
// FUNCTION: fn_23841
|
|
__declspec(noinline) int __stdcall GetWeaponViewValue(int weapon) {
|
|
const int value = FindItemDescription(weapon).viewId;
|
|
|
|
if (weapon > 2100 && weapon < 2200 || static_cast<unsigned>(weapon - 28901) <= 0x61 || static_cast<unsigned>(weapon - 460000) <= 0x270F) {
|
|
return -1;
|
|
}
|
|
|
|
return value;
|
|
}
|
|
|
|
// OFFSET: 0x00E248F0
|
|
// FUNCTION: fn_23898
|
|
int __stdcall GetDualWieldWeaponType(int first, int second) {
|
|
int main = first;
|
|
int result = 0;
|
|
int sub;
|
|
|
|
if (first == 0) {
|
|
main = second;
|
|
|
|
if (second == 0) {
|
|
return result;
|
|
}
|
|
|
|
sub = 0;
|
|
} else {
|
|
sub = second;
|
|
}
|
|
|
|
if (main >= 1100 && main < 1150 || main >= 13400 && main < 13500 || static_cast<unsigned>(main - 500000) <= 0x270F) {
|
|
result = 2;
|
|
|
|
if (sub >= 1100 && sub < 1150 || sub >= 13400 && sub < 13500 || static_cast<unsigned>(sub - 500000) <= 0x270F) {
|
|
return 26;
|
|
} else if (sub >= 1200 && sub < 1250 || sub >= 13000 && sub < 13100 || sub >= 28700 && sub < 28900 ||
|
|
static_cast<unsigned>(sub - 510000) <= 0x270F) {
|
|
return 28;
|
|
} else if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 30;
|
|
}
|
|
} else if (main >= 1200 && main < 1250 || main >= 13000 && main < 13100 || main >= 28700 && main < 28900 ||
|
|
static_cast<unsigned>(main - 510000) <= 0x270F) {
|
|
result = 1;
|
|
|
|
if (sub >= 1100 && sub < 1150 || sub >= 13400 && sub < 13500 || static_cast<unsigned>(sub - 500000) <= 0x270F) {
|
|
return 28;
|
|
} else if (sub >= 1200 && sub < 1250 || sub >= 13000 && sub < 13100 || sub >= 28700 && sub < 28900 ||
|
|
static_cast<unsigned>(sub - 510000) <= 0x270F) {
|
|
return 25;
|
|
} else if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 29;
|
|
}
|
|
} else if (main >= 1300 && main < 1350 || static_cast<unsigned>(main - 520000) <= 0x270F) {
|
|
result = 6;
|
|
|
|
if (sub >= 1300 && sub < 1350 || static_cast<unsigned>(sub - 520000) <= 0x270F) {
|
|
return 27;
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00E25970
|
|
// FUNCTION: fn_23906
|
|
bool ResetHotkeySlots() {
|
|
g_session.m_hotkeyScript->Call("ResetTheHotKey", "dddd", 1, 132, 192, 18);
|
|
return g_session.m_hotkeyScript->Call("ResetTheHotKey", "dddd", 1, 135, 36, 18);
|
|
}
|
|
|
|
// OFFSET: 0x00E25E60
|
|
// FUNCTION: fn_23909
|
|
std::pair<int, int>* CSession::InsertPair(int key, int value) {
|
|
for (std::vector<std::pair<int, int>>::iterator it = this->keyValues.begin(); it != this->keyValues.end(); ++it) {
|
|
if (key == it->first) {
|
|
it->second = value;
|
|
return &*it;
|
|
}
|
|
}
|
|
|
|
return &this->keyValues.emplace_back(std::make_pair(key, value));
|
|
}
|
|
|
|
// OFFSET: 0x00E0A1F0
|
|
// FUNCTION: fn_23792
|
|
int CSession::GetPairValue() const {
|
|
int value = -1;
|
|
if (this->m_pairValues[0] != -1) {
|
|
value = this->m_pairValues[0];
|
|
}
|
|
if (this->m_pairValues[1] != -1) {
|
|
value = this->m_pairValues[1];
|
|
}
|
|
if (this->m_pairValues[2] != -1) {
|
|
value = this->m_pairValues[2];
|
|
}
|
|
return value;
|
|
}
|
|
|
|
// OFFSET: 0x00E0A220
|
|
// FUNCTION: fn_23793
|
|
int CSession::GetPetTargetAid() const {
|
|
int target = 0;
|
|
std::uint32_t aid = *reinterpret_cast<const std::uint32_t*>(&this->spAndHomunculusStats[8]);
|
|
CGameMode* mode;
|
|
CRenderObject* actor;
|
|
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
|
|
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
|
|
target = static_cast<CGameActor*>(actor)->hitTargetAid;
|
|
}
|
|
|
|
aid = *reinterpret_cast<const std::uint32_t*>(&this->companionTargetState[8]);
|
|
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
|
|
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
|
|
target = static_cast<CGameActor*>(actor)->hitTargetAid;
|
|
}
|
|
|
|
if (target > 0) {
|
|
mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
if (mode == nullptr || mode->scene->GetGameActorByAID(target) == nullptr) {
|
|
return 0;
|
|
}
|
|
}
|
|
return target;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D950
|
|
// FUNCTION: fn_23854
|
|
int CSession::GetBattleFieldMode() const {
|
|
return static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->isBattleFieldMode;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D970
|
|
// FUNCTION: fn_23855
|
|
bool CSession::IsShadowItemType(int type) const {
|
|
return type == 18;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D980
|
|
// FUNCTION: fn_23856
|
|
bool CSession::IsConsumableItemType(int type) const {
|
|
if (type == 0 || type == 1 || type == 2 || type == 18) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1D9B0
|
|
// FUNCTION: fn_23857
|
|
bool CSession::IsCostumeLocation(int location) const {
|
|
switch (location) {
|
|
case EQP_COSTUME_HEAD_TOP:
|
|
case EQP_COSTUME_HEAD_MID:
|
|
case 0xC00:
|
|
case EQP_COSTUME_HEAD_LOW:
|
|
case 0x1400:
|
|
case 0x1800:
|
|
case 0x1C00:
|
|
case EQP_COSTUME_GARMENT:
|
|
case 0x4000:
|
|
case EQP_SHADOW_ARMOR:
|
|
case EQP_SHADOW_WEAPON:
|
|
case EQP_SHADOW_SHIELD:
|
|
case EQP_SHADOW_SHOES:
|
|
case EQP_SHADOW_ACC_R:
|
|
case EQP_SHADOW_ACC_L:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E1DA40
|
|
// FUNCTION: fn_23858
|
|
int CSession::IsBerserkActive() const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == EFST_BERSERK) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DA70
|
|
// FUNCTION: fn_23859
|
|
int CSession::IsTrickDeadActive() const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == EFST_TRICKDEAD) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAA0
|
|
// FUNCTION: fn_23860
|
|
int CSession::GetMapProperty08() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 8);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAB0
|
|
// FUNCTION: fn_23861
|
|
int CSession::GetMapProperty07() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 7);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAC0
|
|
// FUNCTION: fn_23862
|
|
int CSession::GetMapProperty13() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x13);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAD0
|
|
// FUNCTION: fn_23863
|
|
int CSession::GetMapProperty11() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x11);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAE0
|
|
// FUNCTION: fn_23864
|
|
int CSession::GetMapProperty10() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x10);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DAF0
|
|
// FUNCTION: fn_23865
|
|
int CSession::GetMapProperty12() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0x12);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB00
|
|
// FUNCTION: fn_23866
|
|
int CSession::GetMapProperty09() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 9);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB10
|
|
// FUNCTION: fn_23867
|
|
int CSession::GetMapProperty0F() const {
|
|
return g_mapPropertyMgr->GetValue(this->mapPropertyId, 0xF);
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB20
|
|
// FUNCTION: fn_23868
|
|
bool CSession::IsEquipItemType(int type) const {
|
|
if (type == 4 || type == 11 || type == 12 || type == 13 || type == 14 || type == 5 || type == 8 || type == 9 || type == 15) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DB60
|
|
// FUNCTION: fn_23869
|
|
bool CSession::IsMiscItemType(int type) const {
|
|
if (type == 6 || type == 3 || type == 7 || type == 10 || type == 16 || type == 17 || type == 19) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DBA0
|
|
// FUNCTION: fn_23870
|
|
bool CSession::HasTrackedAchievements() const {
|
|
return this->trackedAchievements.size() != 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DBD0
|
|
// FUNCTION: fn_23871
|
|
int CSession::HasActiveSkillEffect(int id) const {
|
|
for (const ActiveSkillEffect& effect : g_activeSkillEffects) {
|
|
if (effect.id == id) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC00
|
|
// FUNCTION: fn_23872
|
|
int CSession::IsGuardianJob(int job) const {
|
|
return job == JT_ARCHER_GUARDIAN || job == JT_KNIGHT_GUARDIAN || job == JT_SOLDIER_GUARDIAN ? 1 : 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DF50
|
|
// FUNCTION: fn_23887
|
|
int CSession::IsPlayerJobId(int job) const {
|
|
return IsPlayerJob(job);
|
|
}
|
|
|
|
// OFFSET: 0x00E1E050
|
|
// FUNCTION: fn_23892
|
|
__declspec(noinline) bool CSession::IsSuperNoviceJob(int job) const {
|
|
if (job == JT_SUPERNOVICE || job == JT_SUPERNOVICE_B || job == JT_PORING_SNOVICE || job == JT_PORING_SNOVICE_B) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E080
|
|
// FUNCTION: fn_23893
|
|
bool CSession::IsSuperNoviceClass(int job) const {
|
|
if (job == JT_SUPERNOVICE || job == JT_SUPERNOVICE_B || job == JT_PORING_SNOVICE || job == JT_PORING_SNOVICE_B || job == JT_SUPERNOVICE2 ||
|
|
job == JT_SUPERNOVICE2_B || job == JT_PORING_SNOVICE2 || job == JT_PORING_SNOVICE2_B || job == JT_HYPER_NOVICE || job == JT_HYPER_NOVICE_RIDING) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E24550
|
|
// FUNCTION: fn_23896
|
|
bool CSession::PlaySkillTargetEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetTargetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetTargetEffectNum", "d>d", skillId, &count)) {
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
g_session.m_hotkeyScript->Call("GetTargetEffectID", "dd>d", skillId, index + 1, &effectId);
|
|
if (effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, effectId, target->render.position.x, target->render.position.y, target->render.position.z, 0, -1, 0, 0
|
|
);
|
|
} else {
|
|
target->LaunchEffect(effectId, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E248E0
|
|
// FUNCTION: fn_23897
|
|
void CSession::ApplySaveDataOptions() {
|
|
}
|
|
|
|
// OFFSET: 0x00E25EE0
|
|
// FUNCTION: fn_23910
|
|
int CSession::SetPairValue(int value, int slot) {
|
|
if (slot == 0) {
|
|
this->m_pairValues[0] = value;
|
|
return value;
|
|
}
|
|
|
|
if (slot == 1) {
|
|
this->m_pairValues[1] = value;
|
|
return value;
|
|
}
|
|
|
|
if (slot == 2) {
|
|
this->m_pairValues[2] = value;
|
|
return value;
|
|
}
|
|
|
|
return slot;
|
|
}
|
|
|
|
// OFFSET: 0x00E25F20
|
|
// FUNCTION: fn_23911
|
|
int CSession::SetHotkeyEntry(char enabled, int id, int value, int slot) {
|
|
for (int index = 0; index < 2; ++index) {
|
|
NormalItemSlot& entry = this->SkillHotkey(index);
|
|
|
|
if (id == static_cast<int>(entry.itemId) && value == entry.value && enabled == static_cast<char>(entry.enabled) ||
|
|
!CSkillInfo::UsesLevel(*g_session.m_hotkeyScript, static_cast<int>(entry.itemId)) && id == static_cast<int>(entry.itemId)) {
|
|
entry.enabled = 0;
|
|
entry.itemId = 0;
|
|
entry.value = 0;
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_SHORTCUT_KEY_CHANGE, index + 36, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
if (id == 0) {
|
|
enabled = 0;
|
|
value = 0;
|
|
}
|
|
|
|
NormalItemSlot& target = this->SkillHotkey(slot);
|
|
target.enabled = static_cast<unsigned char>(enabled);
|
|
target.itemId = static_cast<std::uint32_t>(id);
|
|
target.value = static_cast<std::int16_t>(value);
|
|
|
|
return g_modeMgr.GetGameMode()->SendMsg(MM_SHORTCUT_KEY_CHANGE, slot + 36, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x00E26030
|
|
// FUNCTION: fn_23912
|
|
int CSession::SetFlag(char value) {
|
|
const int result = value & 1;
|
|
this->cachedSex = result;
|
|
this->currentSex = result;
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00DFB490
|
|
// FUNCTION: fn_23582
|
|
bool IsScreenShakeActive() {
|
|
return g_screenShakeDuration != 0 && g_screenShakeMode == 2;
|
|
}
|
|
|
|
// OFFSET: 0x00E25DD0
|
|
// FUNCTION: fn_23908
|
|
void CSession::SetPlayerNameKey(const unsigned char* key) {
|
|
std::memcpy(this->m_playerNameKey, key, sizeof(this->m_playerNameKey));
|
|
|
|
for (unsigned int index = 0; index < sizeof(this->m_playerNameKey); ++index) {
|
|
this->m_playerNameKey[index] ^= g_playerNameKey[index];
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E1D870
|
|
// FUNCTION: fn_23853
|
|
bool CSession::IsBabyJob(int job) const {
|
|
if ((job >= JT_NOVICE_B && job <= JT_THIEF_B) || job == JT_SUPERNOVICE_B || job == JT_SUPERNOVICE2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_KNIGHT_B && job <= JT_CHICKEN2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_RUNE_KNIGHT_B && job <= JT_MADOGEAR_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_PORING_NOVICE_B && job <= JT_DOG_CHASER_B) {
|
|
return true;
|
|
}
|
|
if ((job >= JT_SHEEP_PRIEST_B && job <= JT_PIG_BLACKSMITH_B) || job == JT_PORING_SNOVICE2_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_PIG_MECHANIC_B && job <= JT_LION_CRUSADER_B) {
|
|
return true;
|
|
}
|
|
if (job == JT_DO_SUMMONER_B) {
|
|
return true;
|
|
}
|
|
if (job >= JT_NINJA_B && job <= JT_STAR2_B) {
|
|
return true;
|
|
}
|
|
if (job == JT_STAR_EMPEROR_B || job == JT_SOUL_REAPER_B || job == JT_STAR2_EMPEROR_B || job == JT_HAETAE_STAR_EMPEROR_B ||
|
|
job == JT_HAETAE_SOUL_REAPER_B || job == JT_DRUID_B || job == JT_KARNOS_B) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC50
|
|
// FUNCTION: fn_23873
|
|
int CSession::IsMercenaryJob(int job) const {
|
|
if (job >= JT_MER_LIF && job <= JT_MER_VANILMIRTH_H2) {
|
|
return 1;
|
|
}
|
|
if (job >= JT_MER_EIRA && job <= JT_MER_ELEANOR) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x00E1DC80
|
|
// FUNCTION: fn_23874
|
|
int CSession::IsNewMercenaryJob(int job) const {
|
|
return job >= JT_MER_EIRA && job <= JT_MER_ELEANOR;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E020
|
|
// FUNCTION: fn_23891
|
|
__declspec(noinline) bool CSession::IsSuperNovice2Job(int job) const {
|
|
return job == JT_SUPERNOVICE2 || job == JT_SUPERNOVICE2_B || job == JT_PORING_SNOVICE2 || job == JT_PORING_SNOVICE2_B;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E0E0
|
|
// FUNCTION: fn_23894
|
|
bool CSession::IsExpandedJob(int job) const {
|
|
switch (job) {
|
|
case JT_KAGEROU:
|
|
case JT_OBORO:
|
|
case JT_FROG_KAGEROU:
|
|
case JT_FROG_OBORO:
|
|
case JT_REBELLION:
|
|
case JT_PECO_REBELLION:
|
|
case JT_KAGEROU_B:
|
|
case JT_OBORO_B:
|
|
case JT_REBELLION_B:
|
|
case JT_FROG_KAGEROU_B:
|
|
case JT_FROG_OBORO_B:
|
|
case JT_PECO_REBELLION_B:
|
|
case JT_STAR_EMPEROR:
|
|
case JT_SOUL_REAPER:
|
|
case JT_STAR_EMPEROR_B:
|
|
case JT_SOUL_REAPER_B:
|
|
case JT_STAR2_EMPEROR:
|
|
case JT_STAR2_EMPEROR_B:
|
|
case JT_HAETAE_STAR_EMPEROR:
|
|
case JT_HAETAE_SOUL_REAPER:
|
|
case JT_HAETAE_STAR_EMPEROR_B:
|
|
case JT_HAETAE_SOUL_REAPER_B:
|
|
case JT_SKY_EMPEROR:
|
|
case JT_SOUL_ASCETIC:
|
|
case JT_SHINKIRO:
|
|
case JT_SHIRANUI:
|
|
case JT_NIGHT_WATCH:
|
|
case JT_HYPER_NOVICE:
|
|
case JT_SPIRIT_HANDLER:
|
|
case JT_SKY_EMPEROR_RIDING:
|
|
case JT_SOUL_ASCETIC_RIDING:
|
|
case JT_SHINKIRO_RIDING:
|
|
case JT_SHIRANUI_RIDING:
|
|
case JT_NIGHT_WATCH_RIDING:
|
|
case JT_HYPER_NOVICE_RIDING:
|
|
case JT_SPIRIT_HANDLER_RIDING:
|
|
case JT_SKY_EMPEROR2:
|
|
case JT_KARNOS:
|
|
case JT_KARNOS_B:
|
|
case JT_KARNOS_RIDING:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E3D350
|
|
// FUNCTION: fn_24188
|
|
bool CSession::IsCostumeJob(int job) const {
|
|
switch (job) {
|
|
case JT_MARRIED:
|
|
case JT_SANTA:
|
|
case JT_SUMMER:
|
|
case JT_HANBOK:
|
|
case JT_OKTOBERFEST:
|
|
case JT_SUMMER2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
int GetEquipLocationIndex(const int& mask);
|
|
|
|
namespace EquipmentProperties {
|
|
class CEquipmentProperties;
|
|
|
|
class CEquipment {
|
|
public:
|
|
virtual ~CEquipment();
|
|
virtual void Load(bool force) = 0;
|
|
virtual void Clear();
|
|
virtual int GetType() = 0;
|
|
virtual int GetValue(const int& key);
|
|
int& GetId();
|
|
|
|
/* 0004 */ int m_id;
|
|
/* 0008 */ void* m_info;
|
|
/* 000C */ unsigned char m_properties[0x28];
|
|
/* 0034 */ bool m_pretend;
|
|
};
|
|
|
|
class CEquipmentAttachable : public CEquipment {
|
|
public:
|
|
void Load(bool force) override;
|
|
int GetType() override;
|
|
CEquipment* GetOwner();
|
|
|
|
/* 0038 */ int m_slotIndex;
|
|
/* 003C */ CEquipment* m_owner;
|
|
};
|
|
|
|
class CEquipmentWearable : public CEquipment {
|
|
public:
|
|
void Load(bool force) override;
|
|
void Clear() override;
|
|
int GetType() override;
|
|
std::vector<CEquipmentAttachable>& GetAttachables();
|
|
bool IsActive();
|
|
|
|
/* 0038 */ bool m_active;
|
|
/* 003C */ int m_type;
|
|
/* 0040 */ int equippedItemIndex;
|
|
/* 0044 */ std::vector<CEquipmentAttachable> m_attachables;
|
|
/* 0050 */ std::list<CEquipmentProperties*> m_children;
|
|
};
|
|
|
|
class CEquipmentPropertiesMgr {
|
|
public:
|
|
virtual ~CEquipmentPropertiesMgr();
|
|
/* 0004 */ unsigned char padding_0004[0x9];
|
|
/* 000D */ bool m_dirty;
|
|
/* 000E */ unsigned char padding_000E[0x12];
|
|
/* 0020 */ UIWindow* observerWindow;
|
|
/* 0024 */ std::unordered_map<int, CEquipmentWearable*> properties1;
|
|
|
|
CEquipmentPropertiesMgr();
|
|
CEquipmentWearable* FindProperty1(const int& key);
|
|
void UnequipItem(const int& itemId, bool notify);
|
|
void RemoveWearable(const int& location);
|
|
};
|
|
|
|
void CEquipmentPropertiesMgr::RemoveWearable(const int& location) {
|
|
this->m_dirty = true;
|
|
const int key = GetEquipLocationIndex(location);
|
|
CEquipmentWearable* wearable = this->FindProperty1(key);
|
|
if (wearable != nullptr) {
|
|
for (CEquipmentAttachable& attachable : wearable->GetAttachables()) {
|
|
this->UnequipItem(attachable.GetId(), true);
|
|
}
|
|
this->UnequipItem(wearable->GetId(), true);
|
|
wearable->Clear();
|
|
delete wearable;
|
|
this->properties1.erase(key);
|
|
}
|
|
if (this->observerWindow != nullptr) {
|
|
this->observerWindow->SendMsg(nullptr, UM_REFRESH, 0, 0, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E24B30
|
|
// FUNCTION: fn_23899
|
|
bool CSession::UnequipCostumeItem(int location) {
|
|
if (location == 0x8000) {
|
|
this->SetEquippedArrowIndex(0);
|
|
} else {
|
|
const EquipSlots slots = g_session.GetEquipSlots(location);
|
|
if (slots.values[2] < 10) {
|
|
ITEM_INFO* const items = this->costumeItems;
|
|
if (slots.values[2] != -1) {
|
|
const char* message = LookupMessage(MSI_ITEM_IS_REMOVED);
|
|
ITEM_INFO& item = items[slots.values[2]];
|
|
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(FormatOwnedString("%s%s", item.DisplayName(0).c_str(), message).c_str()),
|
|
0xFF, 7, 0, 0);
|
|
item.identity[3] = 0;
|
|
this->AddInventoryItem(item, 1);
|
|
item.Reset();
|
|
}
|
|
if (slots.values[1] != -1 && slots.values[1] < 10) {
|
|
items[slots.values[1]].Reset();
|
|
}
|
|
if (slots.values[0] != -1 && slots.values[0] < 10) {
|
|
items[slots.values[0]].Reset();
|
|
}
|
|
}
|
|
RequestBasicInfoRefresh();
|
|
}
|
|
|
|
this->InvalidateWindowFrames();
|
|
if (UIWindow* window = reinterpret_cast<UIWindow*>(g_windowMgr.itemParamChangeDisplayWnd)) {
|
|
window->SendMsg(nullptr, UM_REFRESH, 0, 0, 0, 0);
|
|
}
|
|
if (g_equipmentPropertiesMgr == nullptr) {
|
|
g_equipmentPropertiesMgr = new (std::nothrow) EquipmentProperties::CEquipmentPropertiesMgr;
|
|
}
|
|
g_equipmentPropertiesMgr->RemoveWearable(location);
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E1E250
|
|
// FUNCTION: fn_45483
|
|
bool LaunchLuaSkillEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
vector3d position;
|
|
std::uint32_t sourceId;
|
|
if (source != nullptr) {
|
|
position = source->render.position;
|
|
sourceId = source->render.accountId;
|
|
} else {
|
|
position = vector3d{0.0f, 0.0f, 0.0f};
|
|
sourceId = 0;
|
|
}
|
|
const std::uint32_t targetId = target != nullptr ? target->render.accountId : 0;
|
|
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (!g_session.m_hotkeyScript->Call("GetEffectNum", "d>d", skillId, &count)) {
|
|
return false;
|
|
}
|
|
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
if (!g_session.m_hotkeyScript->Call("GetEffectID", "dd>d", skillId, index + 1, &effectId) || effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(sourceId, effectId, position.x, position.y, position.z, sourceId != targetId ? targetId : 0, -1, 0, 0);
|
|
} else if (source != nullptr) {
|
|
CRagEffect* effect = source->LaunchEffect(effectId, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect != nullptr) {
|
|
bool onTarget = false;
|
|
g_session.m_hotkeyScript->Call("IsOnTarget", "d>b", skillId, &onTarget);
|
|
if (onTarget && target != nullptr) {
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<std::intptr_t>(&target->render.position), 0, 0, 0, 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E24DE0
|
|
// FUNCTION: fn_23901
|
|
bool CSession::PlaySkillGroundEffect(int skillId, vector3d position) {
|
|
bool hasInfo = false;
|
|
if (!g_session.m_hotkeyScript->Call("HaveSkillEffectInfo", "d>b", skillId, &hasInfo) || !hasInfo) {
|
|
return false;
|
|
}
|
|
|
|
const char* waveName = nullptr;
|
|
if (g_session.m_hotkeyScript->Call("GetEffectWaveFileName", "d>s", skillId, &waveName) && std::strcmp(waveName, "") != 0) {
|
|
g_soundMgr->PlayWave(waveName, 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
|
|
int count = 0;
|
|
if (g_session.m_hotkeyScript->Call("GetGroundEffectNum", "d>d", skillId, &count)) {
|
|
for (int index = 0; index < count; ++index) {
|
|
int effectId = -1;
|
|
g_session.m_hotkeyScript->Call("GetGroundEffectID", "dd>d", skillId, index + 1, &effectId);
|
|
if (effectId == -1) {
|
|
continue;
|
|
}
|
|
|
|
if (g_effectMgr->HasAllocator(effectId)) {
|
|
g_effectMgr->Spawn(0, effectId, position.x, position.y, position.z, 0, -1, 0, 0);
|
|
} else {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())
|
|
->LaunchDummyEffect(&position, effectId, EffectLifetime(effectId) + 10, 0);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E2F9F0
|
|
// FUNCTION: fn_24162
|
|
int CSession::GetMaxBaseLevel(int job) const {
|
|
if (g_session.IsTreeGroupThree(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x74]);
|
|
}
|
|
if (g_session.IsTreeGroupTwo(job)) {
|
|
return g_session.m_maxLevel;
|
|
}
|
|
if (g_session.IsSuperNovice2Job(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0]);
|
|
}
|
|
if (g_session.IsExpandedJob(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[4]);
|
|
}
|
|
return g_session.IsDoramJob(job) == true ? *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x28])
|
|
: *reinterpret_cast<const int*>(g_session.maxBaseLevel);
|
|
}
|
|
|
|
// OFFSET: 0x00E2FA80
|
|
// FUNCTION: fn_24163
|
|
int CSession::GetMaxJobLevel(int job) const {
|
|
if (g_session.IsSuperNoviceJob(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x10]);
|
|
}
|
|
if ((job >= JT_KNIGHT_H && job < JT_NOVICE_B) || job == JT_GUNSLINGER || job == JT_NINJA || job == JT_GUNSLINGER_B || job == JT_NINJA_B ||
|
|
job == JT_DRUID || job == JT_DRUID_B) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x18]);
|
|
}
|
|
if (job == JT_NOVICE || job == JT_NOVICE_B || job == JT_NOVICE_H) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x0C]);
|
|
}
|
|
if (g_session.IsTreeGroupThree(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x78]);
|
|
}
|
|
if (g_session.IsTreeGroupTwo(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x1C]);
|
|
}
|
|
if (!g_session.IsExpandedJob(job)) {
|
|
if (g_session.IsDoramJob(job) == true) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x2C]);
|
|
}
|
|
if (!g_session.IsSuperNovice2Job(job)) {
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x14]);
|
|
}
|
|
}
|
|
return *reinterpret_cast<const int*>(&g_session.jobLevelLimits[0x24]);
|
|
}
|
|
|
|
// OFFSET: 0x00E1E690
|
|
// FUNCTION: fn_23895
|
|
void CSession::PlaySkillEffect(int skillId, int level, CGameActor* source, CGameActor* target) {
|
|
if (source == nullptr || target == nullptr) {
|
|
return;
|
|
}
|
|
|
|
if (this->PlaySkillTargetEffect(skillId, level, source, target) == true) {
|
|
return;
|
|
}
|
|
|
|
CRagEffect* effect;
|
|
|
|
switch (skillId) {
|
|
case KN_PIERCE:
|
|
effect = source->LaunchEffect(0x94, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_JUPITEL:
|
|
effect = source->LaunchEffect(0x5D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_EARTHSPIKE:
|
|
effect = target->LaunchEffect(0x4F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WZ_WATERBALL:
|
|
effect = source->LaunchEffect(0x75, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_SPEARBOOMERANG:
|
|
effect = source->LaunchEffect(0x50, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x97, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_BOWLINGBASH:
|
|
effect = source->LaunchEffect(0x95, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_BRANDISHSPEAR:
|
|
effect = target->LaunchEffect(0x46, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case KN_SPEARSTAB:
|
|
effect = source->LaunchEffect(0x96, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AS_GRIMTOOTH:
|
|
effect = source->LaunchEffect(0x7B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AS_SONICBLOW:
|
|
effect = source->LaunchEffect(0x79, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x8F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case PR_TURNUNDEAD:
|
|
effect = source->LaunchEffect(0x52, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FIREBALL:
|
|
effect = source->LaunchEffect(0x18, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FROSTDIVER:
|
|
effect = source->LaunchEffect(0x1B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AC_SHOWER: {
|
|
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
vector3d* sourcePosition = &source->render.position;
|
|
mode->SpawnArrowEffect64(sourcePosition, &target->render.position, 18.0f);
|
|
int column;
|
|
int row;
|
|
mode->WorldCell(target->render.position.x, target->render.position.z, column, row);
|
|
const int offsets[8][2] = {{1, 0}, {1, 1}, {1, -1}, {-1, 0}, {-1, 1}, {-1, -1}, {0, 1}, {0, -1}};
|
|
for (int index = 0; index < 8; ++index) {
|
|
float x;
|
|
float z;
|
|
mode->CellCenter(offsets[index][0] + column, offsets[index][1] + row, x, z);
|
|
vector3d position;
|
|
position.x = x;
|
|
position.y = mode->scene->terrain->Height(x, z);
|
|
position.z = z;
|
|
mode->SpawnArrowEffect64(sourcePosition, &position, 18.0f);
|
|
}
|
|
break;
|
|
}
|
|
case MG_COLDBOLT:
|
|
effect = target->LaunchEffect(0x1A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_FIREBOLT:
|
|
effect = target->LaunchEffect(0x1F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_LIGHTNINGBOLT:
|
|
effect = target->LaunchEffect(0x1D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MG_THUNDERSTORM:
|
|
target->LaunchEffect(0x1E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MC_CARTREVOLUTION:
|
|
source->LaunchEffect(0xAA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_RANGEATTACK:
|
|
effect = source->LaunchEffect(0x50, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CR_GRANDCROSS:
|
|
source->LaunchEffect(0xE2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_SHIELDCHARGE:
|
|
target->LaunchEffect(0xF6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_SHIELDBOOMERANG:
|
|
effect = source->LaunchEffect(0xF9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RG_BACKSTAP:
|
|
effect = source->LaunchEffect(0x113, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AM_ACIDTERROR:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x12A, source, target, -1);
|
|
}
|
|
break;
|
|
case TF_SPRINKLESAND:
|
|
target->LaunchEffect(0x136, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TF_THROWSTONE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x134, source, target, -1);
|
|
}
|
|
break;
|
|
case RG_INTIMIDATE:
|
|
effect = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(0xE3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_TRIPLEATTACK:
|
|
effect = source->LaunchEffect(0x149, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_FINGEROFFENSIVE:
|
|
effect = source->LaunchEffect(0x109, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case MO_INVESTIGATE:
|
|
effect = source->LaunchEffect(0x108, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x10B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AL_HEAL:
|
|
target->LaunchEffect(0x140, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MO_EXTREMITYFIST:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\mon_아수라 패황권.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
target->LaunchEffect(0x10A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DARKTHUNDER:
|
|
effect = source->LaunchEffect(0x5D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WS_CARTTERMINATION:
|
|
target->LaunchEffect(0x206, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_SPIRALPIERCE:
|
|
target->LaunchEffect(0x153, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_GRANDDARKNESS:
|
|
source->LaunchEffect(0x1C2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case CR_HOLYCROSS:
|
|
case NPC_DARKCROSS:
|
|
target->LaunchEffect(0xF5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case PA_SHIELDCHAIN:
|
|
target->LaunchEffect(0x208, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case ITM_TOMAHAWK:
|
|
effect = source->LaunchEffect(0x1EE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CR_ACIDDEMONSTRATION: {
|
|
vector3d position = target->render.position;
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchDummyEffect(&position, 0x219, 100, 0);
|
|
break;
|
|
}
|
|
case NJ_SYURIKEN:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x265, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_KUNAI:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x266, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_HUUMA:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x267, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_ZENYNAGE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x268, source, target, -1);
|
|
}
|
|
break;
|
|
case NJ_KOUENKA:
|
|
target->LaunchEffect(0x26A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_HYOUSENSOU:
|
|
effect = target->LaunchEffect(0x26B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NJ_HUUJIN:
|
|
effect = source->LaunchEffect(0x26D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, level, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NJ_KAMAITACHI:
|
|
effect = source->LaunchEffect(0x270, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_FLING:
|
|
target->LaunchEffect(0x224, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_KIRIKAGE:
|
|
target->LaunchEffect(0x276, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_KASUMIKIRI:
|
|
target->LaunchEffect(0x278, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NJ_ISSEN:
|
|
target->LaunchEffect(0x279, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_PIERCINGSHOT:
|
|
effect = source->LaunchEffect(0x26F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_DUST:
|
|
target->LaunchEffect(0x274, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_FULLBUSTER:
|
|
effect = source->LaunchEffect(0x248, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GS_RAPIDSHOWER:
|
|
target->LaunchEffect(0x283, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_MAGICALBULLET:
|
|
target->LaunchEffect(0x284, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_TRACKING:
|
|
target->LaunchEffect(0x287, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_TRIPLEACTION:
|
|
target->LaunchEffect(0x288, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_BULLSEYE:
|
|
target->LaunchEffect(0x289, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GS_SPREADATTACK:
|
|
effect = source->LaunchEffect(0x285, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case PA_PRESSURE:
|
|
target->LaunchEffect(0x16D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_HEADCRUSH:
|
|
source->LaunchEffect(0x18F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LK_JOINTBEAT:
|
|
source->LaunchEffect(0x190, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case PA_SACRIFICE:
|
|
source->LaunchEffect(0x16E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case ASC_BREAKER:
|
|
effect = source->LaunchEffect(0x169, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case HW_MAGICCRASHER:
|
|
target->LaunchEffect(0x17C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case HW_NAPALMVULCAN:
|
|
target->LaunchEffect(0x191, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SN_FALCONASSAULT:
|
|
target->LaunchEffect(0x183, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SN_SHARPSHOOTING:
|
|
effect = source->LaunchEffect(0x184, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case CG_ARROWVULCAN:
|
|
effect = source->LaunchEffect(0x189, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_SHIELDBRAKE:
|
|
target->LaunchEffect(0x10E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_ARMORBRAKE:
|
|
target->LaunchEffect(0x10F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_HELMBRAKE:
|
|
target->LaunchEffect(0x110, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_DOWNKICK:
|
|
target->LaunchEffect(0x19D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_TURNKICK:
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case TK_JUMPKICK:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_STIN:
|
|
effect = source->LaunchEffect(0x223, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_STUN:
|
|
effect = source->LaunchEffect(0x22B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SL_SMA:
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x229, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x22A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_CRITICALWOUND:
|
|
target->LaunchEffect(0x2A5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_SLOWCAST:
|
|
target->LaunchEffect(0x2A4, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_STONESKIN:
|
|
source->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_ANTIMAGIC:
|
|
source->LaunchEffect(0x2A3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_FIREBREATH:
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_EXPULSION:
|
|
effect = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->LaunchEffect(0xE3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_WIDESTONE:
|
|
case NPC_WIDESTONE2:
|
|
g_soundMgr->PlayWave("_stonecurse.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_WIDESLEEP:
|
|
case NPC_WIDESLEEP2:
|
|
g_soundMgr->PlayWave("effect\\widesleep.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_WIDECONFUSE:
|
|
case NPC_WIDECONFUSE2:
|
|
g_soundMgr->PlayWave("amon_ra_die01.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x29E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_WIDESIGHT:
|
|
source->LaunchEffect(0x16, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DRAGONFEAR:
|
|
source->LaunchEffect(0x29C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_WIDEBLEEDING:
|
|
case NPC_WIDEBLEEDING2:
|
|
source->LaunchEffect(0x29D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_PULSESTRIKE:
|
|
case NPC_PULSESTRIKE2:
|
|
source->LaunchEffect(0x199, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_EARTHQUAKE:
|
|
case NPC_EARTHQUAKE_K:
|
|
source->LaunchEffect(0x29A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DANCINGBLADE_ATK:
|
|
target->LaunchEffect(0x405, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NPC_DARKPIERCING: {
|
|
CRagEffect* first = target->LaunchEffect(0x406, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
CRagEffect* second = target->LaunchEffect(0x406, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (first) {
|
|
vector3d position = source->render.position;
|
|
first->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
if (second) {
|
|
vector3d position = source->render.position;
|
|
second->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_CANNONSPEAR.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case NPC_MAXPAIN:
|
|
source->LaunchEffect(0x408, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case AS_VENOMKNIFE:
|
|
if (g_modeMgr.GetGameMode() != nullptr) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->LaunchTargetEffect(0x258, source, target, -1);
|
|
}
|
|
break;
|
|
case RK_HUNDREDSPEAR:
|
|
effect = source->LaunchEffect(0x2D3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x343, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GC_PHANTOMMENACE:
|
|
source->LaunchEffect(0x300, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\mon_맹룡과강.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x305, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GC_VENOMPRESSURE:
|
|
source->LaunchEffect(0x300, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x24D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_PoisonAttack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case GC_WEAPONCRUSH:
|
|
effect = target->LaunchEffect(0x302, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case GC_CROSSRIPPERSLASHER: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId = 0;
|
|
if (angle >= 0.0f && angle < 23.0f) {
|
|
effectId = 0x527;
|
|
} else if (angle >= 23.0f && angle < 67.0f) {
|
|
effectId = 0x526;
|
|
} else if (angle >= 67.0f && angle < 112.0f) {
|
|
effectId = 0x525;
|
|
} else if (angle >= 112.0f && angle < 157.0f) {
|
|
effectId = 0x524;
|
|
} else if (angle >= 157.0f && angle < 202.0f) {
|
|
effectId = 0x523;
|
|
} else if (angle >= 202.0f && angle < 247.0f) {
|
|
effectId = 0x52A;
|
|
} else if (angle >= 247.0f && angle < 292.0f) {
|
|
effectId = 0x529;
|
|
} else if (angle >= 292.0f && angle < 337.0f) {
|
|
effectId = 0x528;
|
|
} else if (angle >= 337.0f && angle <= 360.0f) {
|
|
effectId = 0x527;
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
effectId += 0xA3;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, g_serviceOptions.Get(0xE5) ? 0x5C5 : 0x522, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x301, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
case GC_DARKILLUSION:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case GC_CROSSIMPACT:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x61E, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x620, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RA_SENSITIVEKEEN:
|
|
g_soundMgr->PlayWave("were_wolf_attack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WL_SUMMON_ATK_FIRE:
|
|
target->LaunchEffect(0x31, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_WIND:
|
|
target->LaunchEffect(0x34, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_WATER:
|
|
target->LaunchEffect(0x33, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_SUMMON_ATK_GROUND:
|
|
target->LaunchEffect(0x93, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case WL_TETRAVORTEX_FIRE:
|
|
effect = source->LaunchEffect(0x324, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case RA_WUGBITE:
|
|
g_soundMgr->PlayWave("wug_bite.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case RA_WUGSTRIKE:
|
|
g_soundMgr->PlayWave("wug_strike.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case RA_AIMEDBOLT: {
|
|
g_effectMgr->Spawn(target->render.accountId, 0x672, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x66E;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x66D;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x670;
|
|
} else {
|
|
effectId = 0x66F;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
break;
|
|
}
|
|
case NPC_ARROWSTORM:
|
|
case RA_ARROWSTORM: {
|
|
if (source == target) {
|
|
return;
|
|
}
|
|
g_soundMgr->PlayWave("arrowstorm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
const int effectId = g_serviceOptions.Get(0xE5) ? 0x5B1 : 0x50D;
|
|
g_effectMgr->Spawn(target->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
vector3d position{0.0f, 0.0f, 0.0f};
|
|
for (int delay = 600; delay < 1200; delay += 200) {
|
|
CEffect* arrow = g_effectMgr->Spawn(target->render.accountId, effectId + 1, position.x, position.y, position.z, 0, -1, 0, 0);
|
|
if (arrow) {
|
|
arrow->SetDelay(delay);
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case RA_DETONATOR:
|
|
source->LaunchEffect(0x2EE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case RK_CRUSHSTRIKE:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x24D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("_enemy_hit_wind2.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WL_CHAINLIGHTNING:
|
|
case WL_CHAINLIGHTNING_ATK:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x666, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
break;
|
|
case RK_SONICWAVE:
|
|
g_soundMgr->PlayWave("effect\\기공포.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x340, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
effect = source->LaunchEffect(0x68E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AB_DUPLELIGHT_MELEE:
|
|
case AB_DUPLELIGHT_MAGIC:
|
|
effect = source->LaunchEffect(0x109, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 3, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case AB_JUDEX:
|
|
g_soundMgr->PlayWave("effect\\AB_judex.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x65B, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x65C, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x65F, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x660, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
for (int count = 0; count < 12; ++count) {
|
|
vector3d position = target->render.position;
|
|
const float radius = static_cast<float>(std::max(std::rand() % 15, 2));
|
|
matrix rotation;
|
|
rotation.MakeYRotation(static_cast<float>(std::max(std::rand() % 36, 0)) * 10.0f);
|
|
vector3d spot;
|
|
spot.x = rotation.values[0] * radius + rotation.values[3] * 0.0f + rotation.values[6] * 0.0f + rotation.values[9] + position.x;
|
|
spot.y = rotation.values[1] * radius + rotation.values[4] * 0.0f + rotation.values[7] * 0.0f + rotation.values[10] + position.y;
|
|
spot.z = rotation.values[2] * radius + rotation.values[5] * 0.0f + rotation.values[8] * 0.0f + rotation.values[11] + position.z;
|
|
const int delay = std::max(std::rand() % 10, 0) * 50;
|
|
CEffect* spawned = g_effectMgr->Spawn(0, 0x661, spot.x, spot.y, spot.z, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(delay);
|
|
}
|
|
spawned = g_effectMgr->Spawn(0, 0x662, spot.x, spot.y, spot.z, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(delay);
|
|
}
|
|
}
|
|
break;
|
|
case AB_ADORAMUS:
|
|
g_soundMgr->PlayWave("effect\\AB_adoramus.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x594, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x595, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
} else {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4EA, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4EB, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
}
|
|
break;
|
|
case WL_CRIMSONROCK:
|
|
g_soundMgr->PlayWave(
|
|
"crimson_r.wav", target->render.position.x - source->render.position.x, 0.0f, target->render.position.z - source->render.position.z, 250, 40,
|
|
1.0f, 0
|
|
);
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x5A1, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x5A2, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
} else {
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4FA, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x4FB, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, level, 0, 0
|
|
);
|
|
}
|
|
break;
|
|
case WL_HELLINFERNO:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x60E, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x60F, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
for (int index = 0; index < 4; ++index) {
|
|
matrix rotation;
|
|
rotation.MakeYRotation((static_cast<float>(index) * 90.0f + 45.0f) / 180.0f * 3.141592f);
|
|
vector3d spot;
|
|
spot.x = rotation.values[0] * 15.0f + rotation.values[3] * 0.0f + rotation.values[6] * 0.0f + rotation.values[9] + target->render.position.x;
|
|
spot.y = rotation.values[1] * 15.0f + rotation.values[4] * 0.0f + rotation.values[7] * 0.0f + rotation.values[10] + target->render.position.y;
|
|
spot.z = rotation.values[2] * 15.0f + rotation.values[5] * 0.0f + rotation.values[8] * 0.0f + rotation.values[11] + target->render.position.z;
|
|
g_effectMgr->Spawn(0, 0x611, spot.x, spot.y, spot.z, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(0, 0x612, spot.x, spot.y, spot.z, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
case NC_BOOSTKNUCKLE:
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x326, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case WM_METALICSOUND:
|
|
effect = source->LaunchEffect(0x630, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\metalic.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
case NPC_POISON_BUSTER:
|
|
case SO_POISON_BUSTER:
|
|
g_soundMgr->PlayWave("effect\\S포이즌버스터.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
target->LaunchEffect(0x39B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_HESPERUSLIT:
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x383, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x37E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x38A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_HESPERUSLIT.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_PIETY:
|
|
target->LaunchEffect(0x5B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_MOONSLASHER:
|
|
if (!source->HasId(0x37A)) {
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_MOONSLASHER.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
source->LaunchEffect(0x3A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_RAGEBURST:
|
|
source->LaunchEffect(0x3A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x179, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_RAGEBURST.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_PINPOINTATTACK:
|
|
effect = source->LaunchEffect(0x38B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case LG_SHIELDPRESS:
|
|
source->LaunchEffect(0x38A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case LG_TRAMPLE:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
source->LaunchEffect(0x389, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_TRAMPLE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_BANISHINGPOINT: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x55E;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x55D;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x560;
|
|
} else {
|
|
effectId = 0x55F;
|
|
}
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned;
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
spawned = g_effectMgr->Spawn(source->render.accountId, effectId + 0x86, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5DF, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5E0, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
} else {
|
|
spawned = g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x559, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x55A, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
}
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5E1, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5E2, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
} else {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x55B, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x55C, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_BANISHINGPOINT.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case LG_CANNONSPEAR: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId = 0;
|
|
if (angle >= 0.0f && angle < 23.0f) {
|
|
effectId = 0x57C;
|
|
} else if (angle >= 23.0f && angle < 67.0f) {
|
|
effectId = 0x57B;
|
|
} else if (angle >= 67.0f && angle < 112.0f) {
|
|
effectId = 0x57A;
|
|
} else if (angle >= 112.0f && angle < 157.0f) {
|
|
effectId = 0x579;
|
|
} else if (angle >= 157.0f && angle < 202.0f) {
|
|
effectId = 0x578;
|
|
} else if (angle >= 202.0f && angle < 247.0f) {
|
|
effectId = 0x57F;
|
|
} else if (angle >= 247.0f && angle < 292.0f) {
|
|
effectId = 0x57E;
|
|
} else if (angle >= 292.0f && angle < 337.0f) {
|
|
effectId = 0x57D;
|
|
} else if (angle >= 337.0f && angle <= 360.0f) {
|
|
effectId = 0x57C;
|
|
}
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
if (!g_effectMgr->Find(source->render.accountId, 0x5EF)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5EF, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(source->render.accountId, effectId + 0x6F, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
}
|
|
} else {
|
|
if (!g_effectMgr->Find(source->render.accountId, 0x580)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x580, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
}
|
|
}
|
|
effect = source->LaunchEffect(0x581, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\LG_CANNONSPEAR.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
}
|
|
case SR_GATEOFHELL:
|
|
g_effectMgr->Spawn(target->render.accountId, 0x626, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
effect = source->LaunchEffect(0x627, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\SR_GATEOFHELL.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_ASSIMILATEPOWER:
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\흡기.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_KNUCKLEARROW:
|
|
source->LaunchEffect(0x1C9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x37D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1CA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_KNUCKLEARROW.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_GREAT_ECHO:
|
|
effect = source->LaunchEffect(0x35F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\LG_EARTHDRIVE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case LG_EARTHDRIVE:
|
|
g_soundMgr->PlayWave("effect\\LG_EARTHDRIVE.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_SOUND_OF_DESTRUCTION:
|
|
effect = target->LaunchEffect(0x365, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\metalic.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case WM_REVERBERATION:
|
|
target->LaunchEffect(0x621, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x63A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\REVERBERATION.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NPC_FATALMENACE:
|
|
case SC_STARTMARK: {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x574, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x575, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 150.0f);
|
|
CEffect* spawned = g_effectMgr->Spawn(target->render.accountId, 0x572, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x573, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
break;
|
|
}
|
|
case SC_TRIANGLESHOT: {
|
|
const int duration = static_cast<int>(source->render.speed * 100.0f + 100.0f);
|
|
CEffect* spawned;
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5B3, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x5B4, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
} else {
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x510, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(target->render.accountId, 0x511, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
}
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
spawned = g_effectMgr->Spawn(
|
|
0, 0x52C, source->render.position.x, source->render.position.y, source->render.position.z, target->render.accountId, -1, 0, 0
|
|
);
|
|
if (spawned) {
|
|
spawned->SetDelay(duration);
|
|
}
|
|
break;
|
|
}
|
|
case NC_ANALYZE:
|
|
target->LaunchEffect(0x312, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_MAGNETICFIELD:
|
|
source->LaunchEffect(0x30D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_INFRAREDSCAN:
|
|
source->LaunchEffect(0x30C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x31A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case NC_VULCANARM: {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x6A7, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x6A8, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
CEffect* spawned = g_effectMgr->Spawn(target->render.accountId, 0x6A9, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
if (spawned) {
|
|
spawned->SetAngle(static_cast<float>(std::max(std::rand() % 36, 0)) * 10.0f);
|
|
}
|
|
source->LaunchEffect(0x308, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
case NC_PILEBUNKER:
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case NC_AXETORNADO:
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
if (g_effectMgr->Find(source->render.accountId, 0x5D6)) {
|
|
return;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5D6, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5D7, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
} else {
|
|
if (g_effectMgr->Find(source->render.accountId, 0x553)) {
|
|
return;
|
|
}
|
|
g_effectMgr->Spawn(source->render.accountId, 0x553, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x554, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
case NC_POWERSWING: {
|
|
float angle = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->CameraDesiredYaw() + source->render.angle;
|
|
if (angle >= 360.0f) {
|
|
angle -= 360.0f;
|
|
}
|
|
int effectId;
|
|
if (angle > 0.0f && angle < 90.0f) {
|
|
effectId = 0x6A5;
|
|
} else if (angle >= 90.0f && angle < 180.0f) {
|
|
effectId = 0x6A4;
|
|
} else if (angle >= 180.0f && angle < 270.0f) {
|
|
effectId = 0x6A3;
|
|
} else {
|
|
effectId = 0x6A2;
|
|
}
|
|
g_effectMgr->Spawn(target->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x6A6, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
break;
|
|
}
|
|
case NC_AXEBOOMERANG:
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x679, source->render.position.x, source->render.position.y, source->render.position.z, target->render.accountId, -1, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(target->render.accountId, 0x67C, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
break;
|
|
case SR_GENTLETOUCH_QUIET:
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\mon_탄지신통.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_DRAGONCOMBO:
|
|
source->LaunchEffect(0x375, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_DRAGONCOMBO.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_TIGERCANNON:
|
|
g_effectMgr->Spawn(source->render.accountId, g_serviceOptions.Get(0xE5) ? 0x5FC : 0x52B, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
target->LaunchEffect(0x379, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_TIGERCANNON.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SR_SKYNETBLOW:
|
|
if (!source->HasId(0x37A)) {
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\SR_SKYNETBLOW.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
target->LaunchEffect(0x224, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x226, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SR_RAMPAGEBLASTER:
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5B5, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x5B6, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
source->LaunchEffect(0x609, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else {
|
|
g_effectMgr->Spawn(source->render.accountId, 0x51E, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(source->render.accountId, 0x51F, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
g_soundMgr->PlayWave("effect\\SR_RAMPAGEBLASTER.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case TK_COUNTER:
|
|
case SJ_FLASHKICK:
|
|
target->LaunchEffect(0x19F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = target->LaunchEffect(0x1AE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = source->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case NPC_DRAGONBREATH:
|
|
case RK_DRAGONBREATH:
|
|
case RK_DRAGONBREATH_WATER:
|
|
g_soundMgr->PlayWave("dragon_breath.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case SP_SWHOO:
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x4B6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = vector3d{0.0f, static_cast<float>(target->render.accountId), 0.0f};
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
target->LaunchEffect(0x1AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1A1, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SJ_PROMINENCEKICK:
|
|
target->LaunchEffect(0x4C8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case SU_SV_STEMSPEAR:
|
|
g_effectMgr->Spawn(0, 0x44D, source->render.position.x, source->render.position.y, source->render.position.z, 0, -1, 0, 0);
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x44C, source->render.position.x, source->render.position.y, source->render.position.z, target->render.accountId, -1, 0, 0
|
|
);
|
|
break;
|
|
case MT_A_MACHINE: {
|
|
CEffect* machine = g_effectMgr->Find(source->render.accountId, 0x72F);
|
|
if (machine) {
|
|
static_cast<CAMachineEffect*>(machine)->PlayAttack();
|
|
}
|
|
CPlayer* player = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player;
|
|
g_soundMgr->PlayWave(
|
|
"effect\\MT_A_MACHINE.wav", target->render.position.x - player->render.position.x, 0.0f, target->render.position.z - player->render.position.z,
|
|
250, 40, 1.0f, 0
|
|
);
|
|
break;
|
|
}
|
|
case SU_SVG_SPIRIT:
|
|
g_effectMgr->Spawn(
|
|
source->render.accountId, 0x468, source->render.position.x, source->render.position.y, source->render.position.z, target->render.accountId, -1, 0, 0
|
|
);
|
|
g_effectMgr->Spawn(
|
|
target->render.accountId, 0x469, target->render.position.x, target->render.position.y, target->render.position.z, target->render.accountId, -1, 0, 0
|
|
);
|
|
break;
|
|
case HFLI_MOON:
|
|
if (level == 1) {
|
|
target->LaunchEffect(0x235, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else if (level == 2) {
|
|
target->LaunchEffect(0x236, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
} else {
|
|
target->LaunchEffect(0x237, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
case MH_SONIC_CRAW:
|
|
target->LaunchEffect(0x3C5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_TINDER_BREAKER:
|
|
case MH_CBC:
|
|
case MH_EQC:
|
|
target->LaunchEffect(0x3C6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_MIDNIGHT_FRENZY:
|
|
target->LaunchEffect(0x3C7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_ERASER_CUTTER:
|
|
target->LaunchEffect(0x3C0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case HFLI_SBR44:
|
|
target->LaunchEffect(0x237, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MER_INVINCIBLEOFF2:
|
|
target->LaunchEffect(0x407, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case MH_XENO_SLASHER:
|
|
effect = source->LaunchEffect(0x43A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_CIRCLE_OF_FIRE:
|
|
target->LaunchEffect(0xFC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x150, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_STONE_RAIN:
|
|
target->LaunchEffect(0x3B0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_HURRICANE:
|
|
target->LaunchEffect(0x1D2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (!target->HasId(0x1CC)) {
|
|
target->LaunchEffect(0x1CC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
case EL_WIND_SLASH:
|
|
g_soundMgr->PlayWave("effect\\기공포.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x3AF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_TIDAL_WEAPON:
|
|
target->LaunchEffect(0x3AE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
effect = source->LaunchEffect(0x1B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_WATER_SCREW:
|
|
target->LaunchEffect(0x3AD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_ICE_NEEDLE:
|
|
effect = target->LaunchEffect(0x1A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 1, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_ARROW:
|
|
effect = target->LaunchEffect(0x1F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
effect->SendMsg(nullptr, AM_SETCOUNT, 0, 1, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_BOMB:
|
|
g_soundMgr->PlayWave("effect\\화염진.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x18, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
target->LaunchEffect(0x11, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_FIRE_WAVE:
|
|
target->LaunchEffect(0x385, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x11, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\폭염룡.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
break;
|
|
case EL_SOLID_SKIN:
|
|
source->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0xD6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WIND_STEP:
|
|
target->LaunchEffect(0x185, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WATER_SCREEN:
|
|
source->LaunchEffect(0x1B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x1B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_TYPOON_MIS:
|
|
g_soundMgr->PlayWave("effect\\맹호경파산.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
effect = source->LaunchEffect(0x3A7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
if (effect) {
|
|
vector3d position = target->render.position;
|
|
effect->SendMsg(nullptr, AM_SETPOS, 0, reinterpret_cast<int>(&position), 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
case EL_AQUAPLAY:
|
|
g_soundMgr->PlayWave("effect\\EF_FrostDiver2.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B5, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_COOLER:
|
|
g_soundMgr->PlayWave("effect\\EF_FrostDiver.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_CHILLY_AIR:
|
|
g_soundMgr->PlayWave("effect\\EF_IceArrow1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x376, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
source->LaunchEffect(0x37E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_PETROLOGY:
|
|
g_soundMgr->PlayWave("_stonecurse.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BD, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_CURSED_SOIL:
|
|
g_soundMgr->PlayWave("evil_cloud_hermit_attack.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_UPHEAVAL:
|
|
g_soundMgr->PlayWave("effect\\wizard_earthspike.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3AA, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3B6, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_GUST:
|
|
g_soundMgr->PlayWave("effect\\EF_ThunderStorm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B3, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_BLAST:
|
|
g_soundMgr->PlayWave("effect\\EF_LightBolt1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3B4, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_WILD_STORM:
|
|
g_soundMgr->PlayWave("effect\\EF_LightBolt3.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A9, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3B7, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_PYROTECHNIC:
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BC, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_HEATER:
|
|
g_soundMgr->PlayWave("effect\\ef_firehit.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
target->LaunchEffect(0x3BE, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
case EL_TROPIC:
|
|
g_soundMgr->PlayWave("effect\\EF_FireArrow1.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
source->LaunchEffect(0x3A8, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
target->LaunchEffect(0x3BB, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
break;
|
|
}
|
|
}
|