|
Post by ForeverGG on Jul 29, 2020 3:26:50 GMT
Just need some flutes in your inventory and you're good to go!
If you need to target multiple animals just clone this to another tab and change the animal name in the FindMobile tab and run both/all tabs at the same time.
function ExtractFirstId(ids) local first_id = nil for id in string.gmatch(ids, "([^,]+)") do first_id = id break end return first_id end
while true do
FindItem("flute", BACKPACKID) fluteId = ExtractFirstId(FINDITEMID) SayCustom(".x use " .. fluteId .. " Peacemaking") FindMobile("rabbit") local AnimalID = ExtractFirstId(FINDMOBILEID) TargetDynamic(AnimalID)
end
|
|
|
Post by ForeverGG on Jul 31, 2020 20:40:13 GMT
Can't edit because I posted as guest. This was created on VERSION 1.0.0.23
|
|
|
Post by polymerase on Sept 2, 2020 15:17:06 GMT
Suggested changes:
while true do FindItem("flute", BACKPACKID) local fluteId = FINDITEM[1].ID
--SayCustom(".x use " .. fluteId .. " Peacemaking") ContextMenu(fluteId, "Peacemaking")
FindMobile("rabbit") local AnimalID = FINDMOBILE[1].ID TargetDynamic(AnimalID) end
Not tested.
|
|