mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-08-04 23:33:52 +09:00
Merge branch 'master' into helpers
This commit is contained in:
98
src/Menu.cpp
98
src/Menu.cpp
@ -206,7 +206,7 @@ namespace DX11_Base {
|
||||
//Creadit Mokobake
|
||||
//ImGui::Checkbox("MuteKiGodmode", &Config.IsMuteki);
|
||||
|
||||
if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->CanShoot())
|
||||
{
|
||||
@ -221,7 +221,7 @@ namespace DX11_Base {
|
||||
ImGui::SliderInt("AttackModifilers", &Config.DamageUp, 0, 200000);
|
||||
ImGui::SliderInt("defenseModifilers", &Config.DefuseUp, 0, 200000);
|
||||
|
||||
if (ImGui::Button("PrintPlayerAddr", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("PrintPlayerAddr", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
@ -241,7 +241,7 @@ namespace DX11_Base {
|
||||
ImGui::InputInt("EXP:", &Config.EXP);
|
||||
ImGui::InputText("Item Name", Config.ItemName,sizeof(Config.ItemName));
|
||||
ImGui::InputInt("Item Num", &Config.Item);
|
||||
if (ImGui::Button("Give item", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("Give item", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
@ -265,69 +265,15 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::Button("Give x2 first item", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
ImGui::InputInt("Slot to modify (start 0):", &Config.AddItemSlot);
|
||||
ImGui::InputInt("Multiple of how much:", &Config.AddItemCount);
|
||||
|
||||
// this does not work lol
|
||||
// std::stringstream AddItemsString;
|
||||
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;
|
||||
if (ImGui::Button("Unlock All Effigies", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
|
||||
{
|
||||
SDK::UPalPlayerInventoryData* InventoryData = Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->GetInventoryData();
|
||||
if (InventoryData != NULL) {
|
||||
SDK::UPalItemContainerMultiHelper* InventoryMultiHelper = InventoryData->InventoryMultiHelper;
|
||||
if (InventoryMultiHelper != NULL) {
|
||||
SDK::TArray<class SDK::UPalItemContainer*> Containers = InventoryMultiHelper->Containers;
|
||||
if (Containers.Count() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
SDK::UPalItemSlot* FirstSlot = Containers[0]->Get(0);
|
||||
|
||||
if (FirstSlot != NULL)
|
||||
{
|
||||
SDK::FPalItemId FirstItemId = FirstSlot->GetItemId();
|
||||
int32 StackCount = FirstSlot->GetStackCount();
|
||||
InventoryData->RequestAddItem(FirstItemId.StaticId, StackCount * 2, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::Button("All Effigies", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* pPalCharacter = Config.GetPalPlayerCharacter();
|
||||
if (!pPalCharacter)
|
||||
return;
|
||||
|
||||
SDK::UWorld* world = Config.GetUWorld();
|
||||
if (!world)
|
||||
return;
|
||||
|
||||
SDK::TUObjectArray* objects = world->GObjects;
|
||||
|
||||
for (int i = 0; i < objects->NumElements; ++i) {
|
||||
SDK::UObject* object = objects->GetByIndex(i);
|
||||
|
||||
if (!object) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!object->IsA(SDK::APalLevelObjectRelic::StaticClass())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
SDK::APalLevelObjectObtainable* relic = (SDK::APalLevelObjectObtainable*)object;
|
||||
if (!relic) {
|
||||
continue;
|
||||
}
|
||||
|
||||
((SDK::APalPlayerState*)pPalCharacter->PlayerState)->RequestObtainLevelObject_ToServer(relic);
|
||||
}
|
||||
UnlockAllEffigies();
|
||||
}
|
||||
|
||||
////ImGui::InputText("Pal Name", Config.PalName, sizeof(Config.PalName));
|
||||
@ -351,7 +297,7 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
@ -387,7 +333,7 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
||||
{
|
||||
Config.IsToggledFly = !Config.IsToggledFly;
|
||||
ExploitFly(Config.IsToggledFly);
|
||||
@ -406,7 +352,7 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
@ -424,7 +370,7 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
//Creadit WoodgamerHD
|
||||
if(ImGui::Button("Give exp", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if(ImGui::Button("Give exp", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||
{
|
||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||
if (p_appc != NULL)
|
||||
@ -441,7 +387,7 @@ namespace DX11_Base {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
|
||||
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
||||
{
|
||||
Config.isEq = !Config.isEq;
|
||||
ToggleEqui(Config.isEq);
|
||||
@ -456,7 +402,7 @@ namespace DX11_Base {
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
ImGui::Spacing();
|
||||
if (ImGui::Button("UNHOOK DLL", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("UNHOOK DLL", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
#if DEBUG
|
||||
g_Console->printdbg("\n\n[+] UNHOOK INITIALIZED [+]\n\n", g_Console->color.red);
|
||||
|
||||
@ -486,19 +432,19 @@ namespace DX11_Base {
|
||||
}
|
||||
void TABQuick()//Creadit:asashi
|
||||
{
|
||||
if (ImGui::Button("Basic Items stack", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("Basic Items stack", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
Spawn_Multiple(config::QuickItemSet::basic_items_stackable);
|
||||
}
|
||||
if (ImGui::Button("Basic Items single", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("Basic Items single", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
Spawn_Multiple(config::QuickItemSet::basic_items_single);
|
||||
}
|
||||
if (ImGui::Button("Unlock Pal skills", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("Unlock Pal skills", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
Spawn_Multiple(config::QuickItemSet::pal_unlock_skills);
|
||||
}
|
||||
if (ImGui::Button("Spheres", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("Spheres", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
Spawn_Multiple(config::QuickItemSet::spheres);
|
||||
}
|
||||
if (ImGui::Button("Tools", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
|
||||
if (ImGui::Button("Tools", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) {
|
||||
Spawn_Multiple(config::QuickItemSet::tools);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user