Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Saucy/OutOnALimb/LimbManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ private void InteractWithClosestLimb()
EzThrottler.Throttle("InteractPause", 1000, true);
}
if (!EzThrottler.Check("InteractPause")) return;

//2005423 Out on a Limb 0 Out on a Limb machines 0 1 1 0 0
var machineNameGS = Svc.Data.GetExcelSheet<EObjName>().GetRow(2005423).Singular.GetText().RemoveSpaces();
//30425 Out on a Limb machine 0 Out on a Limb machines 0 1 1 0 0 Experience the heart-exploding excitement of the Gold Saucer in your own home with this authentic Out on a Limb machine. Out on a Limb Machine ui/icon/052000/052680.tex 1 1 14 Out on a Limb Machine Furnishing EquipSlotCategory#0 125 18740 1 False True False False 2 0 False False False ItemAction#0 2 0 adventurer ItemRepairResource#0 0 False False 0 1 0 0 None 0 0, 0, 0, 0 0, 0, 0, 0 adventurer 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 False False 0 False
var machineNameHousing = Svc.Data.GetExcelSheet<Item>().GetRow(30425).Singular.GetText().RemoveSpaces();

var found = false;
foreach (var x in Svc.Objects)
{
//2005423 Out on a Limb 0 Out on a Limb machines 0 1 1 0 0
//30425 Out on a Limb machine 0 Out on a Limb machines 0 1 1 0 0 Experience the heart-exploding excitement of the Gold Saucer in your own home with this authentic Out on a Limb machine. Out on a Limb Machine ui/icon/052000/052680.tex 1 1 14 Out on a Limb Machine Furnishing EquipSlotCategory#0 125 18740 1 False True False False 2 0 False False False ItemAction#0 2 0 adventurer ItemRepairResource#0 0 False False 0 1 0 0 None 0 0, 0, 0, 0 0, 0, 0, 0 adventurer 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 False False 0 False

if (x.Name.GetText().EqualsIgnoreCaseAny(Svc.Data.GetExcelSheet<EObjName>().GetRow(2005423).Singular.GetText(), Svc.Data.GetExcelSheet<Item>().GetRow(30425).Singular.GetText()) && x.ObjectKind.EqualsAny(ObjectKind.EventObj, ObjectKind.Housing) && Vector3.Distance(Player.Object.Position, x.Position) < 4)
if (x.ObjectKind.EqualsAny(ObjectKind.EventObj, ObjectKind.Housing) && x.Name.GetText().RemoveSpaces().EqualsIgnoreCaseAny(machineNameGS, machineNameHousing) && Vector3.Distance(Player.Object.Position, x.Position) < 4)
{
found = true;
if (EzThrottler.Throttle("TargetAndInteract"))
Expand Down