Description: **Update:** Added additional logic to improve flow — the script now waits 5 seconds if a Peacemaking attempt fails (based on system message) and defaults to a 10-second wait if no failure message is detected.
This script automates Peacemaking skill training using a lute (`0x0EB3`) directly from the player’s main backpack. It loops until the Peacemaking skill reaches 100, repeatedly using the skill, targeting the player, and issuing the “guards” command to help keep the character active. If the system prompts with “What instrument shall you play?”, the script automatically retries using the lute. It only searches the top-level backpack and does not look inside containers. You can swap out the instrument ID if needed, though standard lutes are recommended for simplicity.
while skill 'Peacemaking' < 100
if not findtype '0x0EB3' 'backpack'
// No lute found in backpack
overhead 'No lutes in backpack!' 89
pause 1000
continue
endif
// Use lute and attempt Peacemaking
dclicktype '0x0EB3' 'backpack'
useskill 'Peacemaking'
waitfortarget 5000
target 'self'
wait 500 // Small buffer before checking for result
// Check for failure message to determine wait duration
if insysmsg 'You attempt to calm everyone, but fail.'
wait 5000
else
wait 10000
endif
// Say guards to refresh journal or prevent idle, while guarding against pks and thieves.
say 'guards'
pause 500
// Handle instrument prompt (when instrument fails to auto-select)
if insysmsg 'What instrument shall you play?'
overhead 'Instrument prompt detected — retrying' 89
wait 250
if findtype '0x0EB3' 'backpack'
// Try again with new lute
dclicktype '0x0EB3' 'backpack'
useskill 'Peacemaking'
waitfortarget 5000
target 'self'
wait 500
if insysmsg 'You attempt to calm everyone, but fail.'
wait 5000
else
wait 10000
endif
say 'guards'
pause 500
else
// No more instruments found
overhead 'Out of instruments!' 89
pause 1000
continue
endif
endif
pause 500
endwhile
Version History
Version 1 - 8/4/2025, 4:33:09 PM - 3 days ago
Peacemaking 50-100
Original Version Saved - 8/4/2025, 12:50:21 AM - 4 days ago