mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
Merge pull request #31 from geocine/fix/compiler-error
Fix compiler error
This commit is contained in:
commit
e2daebf22a
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() {
|
void UnlockAllEffigies() {
|
||||||
SDK::APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
SDK::APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
||||||
if (!pPalCharacter)
|
if (!pPalCharacter)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
void ESP();
|
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);
|
void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps, ImColor color);
|
||||||
|
|
||||||
@ -26,5 +26,3 @@ void AddAncientTechPoints(__int32 mPoints);
|
|||||||
void RemoveTechPoints(__int32 mPoints);
|
void RemoveTechPoints(__int32 mPoints);
|
||||||
|
|
||||||
void RemoveAncientTechPoint(__int32 mPoints);
|
void RemoveAncientTechPoint(__int32 mPoints);
|
||||||
|
|
||||||
void AddToInventoryContainer(__int32 mCount, __int32 mIndex = 0);
|
|
12
src/Menu.cpp
12
src/Menu.cpp
@ -271,7 +271,7 @@ namespace DX11_Base {
|
|||||||
// this does not work lol
|
// this does not work lol
|
||||||
// std::stringstream AddItemsString;
|
// std::stringstream AddItemsString;
|
||||||
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;
|
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;
|
||||||
if (ImGui::Button("Unlock All Effigies", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("Unlock All Effigies", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
UnlockAllEffigies();
|
UnlockAllEffigies();
|
||||||
}
|
}
|
||||||
@ -297,7 +297,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||||
if (p_appc != NULL)
|
if (p_appc != NULL)
|
||||||
@ -333,7 +333,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
Config.IsToggledFly = !Config.IsToggledFly;
|
Config.IsToggledFly = !Config.IsToggledFly;
|
||||||
ExploitFly(Config.IsToggledFly);
|
ExploitFly(Config.IsToggledFly);
|
||||||
@ -352,7 +352,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||||
if (p_appc != NULL)
|
if (p_appc != NULL)
|
||||||
@ -387,7 +387,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
Config.isEq = !Config.isEq;
|
Config.isEq = !Config.isEq;
|
||||||
ToggleEqui(Config.isEq);
|
ToggleEqui(Config.isEq);
|
||||||
@ -466,7 +466,7 @@ namespace DX11_Base {
|
|||||||
ImGui::ShowDemoWindow();
|
ImGui::ShowDemoWindow();
|
||||||
|
|
||||||
if (Config.isDebugESP)
|
if (Config.isDebugESP)
|
||||||
ESP_DEBUG(Config.mDebugESPDistance);
|
ESP_DEBUG(Config.mDebugESPDistance, ImVec4(0,1,0,1));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::MainMenu()
|
void Menu::MainMenu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user