Posts: 17
Threads: 6
Joined: Apr 2020
Reputation:
0
Is there any option to do not attack other players monsters? I know there is an option 'must attack me' but it just does not solve the problem.
Thanks for any help~!
Posts: 5
Threads: 1
Joined: Jun 2019
Reputation:
0
local Creatures = { 'swamp troll', 'cave rat', 'poison spider','bug','spider' }
if paround() == 0 then
for _, creature in ipairs(Creatures) do
setsettings('Targeting/' .. creature .. '/Setting1/Must attack me', false)
end
else
for _, creature in ipairs(Creatures) do
setsettings('Targeting/' .. creature .. '/Setting1/Must attack me', true)
end
end
You have to put name of monster on the top
Posts: 17
Threads: 6
Joined: Apr 2020
Reputation:
0
Uhm... Might be a noob question, but where to put that code?
Posts: 2,948
Threads: 492
Joined: Jul 2018
Reputation:
84
Hello.
Persistents.
You need to add the creatuer's on list, go to Persistents tab, add new persistent, select the new persistent and click on Edit then paste it there and close window, then finally, enable it.