Description: This script automates Peacemaking skill training using a lute (0x0EB3) directly from the player's backpack. It repeatedly activates the skill, targets the player, and issues the “guards” command to keep the character flagged as peaceful. If the game prompts for an instrument ("What instrument shall you play?"), the script automatically retries the action. The loop continues until Peacemaking reaches 100 skill. This script only checks the main backpack and does not search inside containers. You can adjust the instrument ID if using a different type of instrument, though standard lutes are recommended.
while skill 'Peacemaking' < 100
if not findtype '0x0EB3' 'backpack'
overhead 'No lutes in backpack!' 89
pause 1000
continue
endif
dclicktype '0x0EB3' 'backpack'
useskill 'Peacemaking'
waitfortarget 5000
target 'self'
wait 10000
say 'guards'
pause 500
if insysmsg 'What instrument shall you play?'
overhead 'Instrument prompt detected — retrying' 89
wait 250
if findtype '0x0EB3' 'backpack'
dclicktype '0x0EB3' 'backpack'
useskill 'Peacemaking'
waitfortarget 5000
target 'self'
wait 10000
say 'guards'
pause 500
else
overhead 'Out of instruments!' 89
pause 1000
continue
endif
endif
pause 500
endwhile
Original Version Saved - 8/4/2025, 12:50:21 AM - about 6 hours ago
Peacemaking 50-100
No changes to display