PvPteam (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
Line 15: Line 15:


==Script==
==Script==

<pre>#red #FF6347
<pre>GOTO %1
#blue #ADD8E6

setVariable color %1
red:
setVariable color #FF0000
goto highlightstart
blue:
setVariable color #0000FF
goto highlightstart
green:
setVariable color #00FF00
goto highlightstart
purple:
setVariable color #6600FF
goto highlightstart
yellow:
setVariable color #FFFF00
goto highlightstart
orange:
setVariable color #FF6600
goto highlightstart

highlightstart:
SHIFT
SHIFT
highlightloop:
start:
ADDTOHIGHLIGHTNAMES string=%1 forecolor=%color matchpartialword=false ignorecase=true
IF_1 goto highlight
SHIFT
IF_1 goto highlightloop
EXIT
EXIT

highlight:
delete:
SHIFT
deleteloop:
DELETEFROMHIGHLIGHTNAMES string=%1
DELETEFROMHIGHLIGHTNAMES string=%1
ADDTOHIGHLIGHTNAMES string=%1 forecolor=%color matchpartialword=false ignorecase=true
SHIFT
SHIFT
IF_1 goto deleteloop
GOTO start
EXIT

labelError:
help:
ECHO PvPteam - https://elanthipedia.play.net/PvPteam_(script)
ECHO This script allows you to highlight a list of names a certain color or to delete the highlights for a list of names.
ECHO Usage:
ECHO .PvPteam (color) (List of Names)
ECHO .PvPteam delete (List of Names)
ECHO Example: .PvPteam red Jim Jack Johnny
ECHO Example: .PvPteam delete Jim Jack Johnny
ECHO List of valid colors: red, blue, green, purple, yellow, orange
EXIT

Revision as of 17:15, 18 October 2019

PvPteam (script)
Category Combat,Utility
Front-end StormFront
Author User:Mothra


Usage

This script deletes any existing highlight settings for character names you list within the script. Before running this script it is highly recommended that you click the OPTIONS tab in the top right corner of the StormFront window, select SETTINGS, click EXPORT, check NAME HIGHLIGHTS and click EXPORT. Make a note of the filename you've exported to if it's anything but the default C:\StormFront.xml file. After you're finished, use the PvPteamdel script to undo your PvPteam highlights and IMPORT your NAME HIGHLIGHTS to reset any highlight strings you may have for the character highlights you changed for your PvP session.

Syntax

  • .PVPTEAM HEX COLOR CODE # NAME NAME NAME (where name=character names you want to highlight)
example: .pvpteam #FF6347 Jim Jack Johnny

Use the PvPteamdel script to undo these changes.

Script

GOTO %1

red:
setVariable color #FF0000
goto highlightstart
blue:
setVariable color #0000FF
goto highlightstart
green:
setVariable color #00FF00
goto highlightstart
purple:
setVariable color #6600FF
goto highlightstart
yellow:
setVariable color #FFFF00
goto highlightstart
orange:
setVariable color #FF6600
goto highlightstart

highlightstart:
SHIFT
highlightloop:
ADDTOHIGHLIGHTNAMES string=%1 forecolor=%color matchpartialword=false ignorecase=true
SHIFT
IF_1 goto highlightloop
EXIT

delete:
SHIFT
deleteloop:
DELETEFROMHIGHLIGHTNAMES string=%1
SHIFT
IF_1 goto deleteloop
EXIT

labelError:
help:
ECHO PvPteam - https://elanthipedia.play.net/PvPteam_(script)
ECHO This script allows you to highlight a list of names a certain color or to delete the highlights for a list of names.
ECHO Usage:
ECHO .PvPteam (color) (List of Names)
ECHO .PvPteam delete (List of Names)
ECHO Example: .PvPteam red Jim Jack Johnny
ECHO Example: .PvPteam delete Jim Jack Johnny
ECHO List of valid colors: red, blue, green, purple, yellow, orange
EXIT