ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => 12TimesOvers' Script Library => Topic started by: 12TimesOver on June 02, 2009, 12:20:18 PM

Title: XIIxOveR's Perpetual Peacer
Post by: 12TimesOver on June 02, 2009, 12:20:18 PM
Code: [Select]
;==========================================
; Script Name: XIIxOver's Perpetual Peacer  
; Author: XIIxOveR                          
; Version: 1.0 Public                      
; Shard OSI/FS: OSI                        
; Revision Date: 03-Sept-2008              
; Purpose: Peace Stuff                      
;==========================================
; Thanks to TM for Gump and Wait Subs
;==========================================

Note - The Pen Trick has been fixed on production shards; this script uses the Pen Trick however this functionality will no longer work on EA servers.

Current Public Version: 1.0

Description
Threw this together to fill a request so thought I would post it up.

This script uses the pen trick and repeatedly attempts to direct peace a target to keep it peaced while another char kills it. This also works when targeting yourself in order to area peace.

Instructions
1) Make sure there is a pen in your peacer's pack
2) Make sure there are instruments in your peacer's pack
3) Make sure you are within 8 tiles of your target
4) Press play
5) Select target
6) Kill target with another account

Notes
1) You may need to use the pen and try creating something (to load the "Make Last" option)
2) You must select the target directly, not use the life bar of the target
3) The script defaults to needing to be within 8 tiles of the target however this can be modified by changing the line "FindItem %peacetarget G_8" to a number other than 8 (or simply remove the "_8" alltogether)
Title: Re: XIIxOveR's Perpetual Peacer
Post by: Cerveza on June 02, 2009, 12:32:49 PM
How about automating the targetting process?

set %target XX_YY_ZZ ; target types here

then later

Code: [Select]
findItem %target G_8
if #findCnt > 0
{
set #ltargetID #findID
set #ltargetKind 1
...
...


Then go into your code for peacing.
Title: Re: XIIxOveR's Perpetual Peacer
Post by: 12TimesOver on June 02, 2009, 12:44:01 PM
Would that not then randomly direct peace targets that match any value in the %target variable rather than ignoring all other targets while peacing only the one you care about?
Title: Re: XIIxOveR's Perpetual Peacer
Post by: Cerveza on June 02, 2009, 01:43:58 PM
Yes, it definitely would.

It would be nice for spots where there is only one target. Have a second account follow you around and target the single spawn.

I know a few spots that would just rock with that....

Miasma, Dragons, Balrons... some very high level monsters that are single spawned  ;)