mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
Fix compiler error
This commit is contained in:
parent
b38db454f1
commit
f65714b24f
39
feature.cpp
39
feature.cpp
@ -88,45 +88,6 @@ void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps,ImColor color)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void AddToInventoryContainer(__int32 mCount, __int32 mIndex)
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (!p_appc != NULL)
|
||||
return;
|
||||
|
||||
SDK::APalPlayerController* p_apc = static_cast<SDK::APalPlayerController*>(p_appc->Controller);
|
||||
if (!p_apc)
|
||||
return;
|
||||
|
||||
SDK::APalPlayerState* p_apps = static_cast<SDK::APalPlayerState*>(p_apc->PlayerState);
|
||||
if (!p_apps)
|
||||
return;
|
||||
|
||||
SDK::UPalPlayerInventoryData* InventoryData = p_apps->GetInventoryData();
|
||||
if (!InventoryData)
|
||||
return;
|
||||
|
||||
SDK::UPalItemContainerMultiHelper* InventoryMultiHelper = InventoryData->InventoryMultiHelper;
|
||||
if (!InventoryMultiHelper)
|
||||
return;
|
||||
|
||||
SDK::TArray<class SDK::UPalItemContainer*> Containers = InventoryMultiHelper->Containers;
|
||||
if (Containers.Num() <= 0)
|
||||
return;
|
||||
|
||||
SDK::UPalItemSlot* pSelectedSlot = Containers[0]->Get(mIndex);
|
||||
|
||||
if (!pSelectedSlot != NULL)
|
||||
return;
|
||||
|
||||
SDK::FPalItemId FirstItemId = pSelectedSlot->GetItemId();
|
||||
int32 StackCount = pSelectedSlot->GetStackCount();
|
||||
__int32 mNewCount = StackCount += mCount;
|
||||
InventoryData->RequestAddItem(FirstItemId.StaticId, mNewCount, true);
|
||||
}
|
||||
|
||||
|
||||
void UnlockAllEffigies() {
|
||||
SDK::APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
||||
if (!pPalCharacter)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
void ESP();
|
||||
|
||||
void ESP_DEBUG(double mDist, SDK::UClass* mEntType = SDK::AActor::StaticClass());
|
||||
void ESP_DEBUG(float mDist, ImVec4 color, SDK::UClass* mEntType = SDK::AActor::StaticClass());
|
||||
|
||||
void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps, ImColor color);
|
||||
|
||||
@ -25,6 +25,4 @@ void AddAncientTechPoints(__int32 mPoints);
|
||||
|
||||
void RemoveTechPoints(__int32 mPoints);
|
||||
|
||||
void RemoveAncientTechPoint(__int32 mPoints);
|
||||
|
||||
void AddToInventoryContainer(__int32 mCount, __int32 mIndex = 0);
|
||||
void RemoveAncientTechPoint(__int32 mPoints);
|
@ -466,7 +466,7 @@ namespace DX11_Base {
|
||||
ImGui::ShowDemoWindow();
|
||||
|
||||
if (Config.isDebugESP)
|
||||
ESP_DEBUG(Config.mDebugESPDistance);
|
||||
ESP_DEBUG(Config.mDebugESPDistance, ImVec4(0,1,0,1));
|
||||
}
|
||||
|
||||
void Menu::MainMenu()
|
||||
|
Loading…
x
Reference in New Issue
Block a user