PvPteam (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
Line 6: Line 6:


==Usage==
==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 {{tt|Options}} tab in the top right corner of the StormFront window, select {{tt|Settings}}, click {{tt|Export}}, check {{tt|Name Highlights}} and click {{tt|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)|PvPteamdel script]] to undo your PvPteam highlights and {{tt|Import}} your {{tt|Name Highlights}} to reset any highlight strings you may have for the character highlights you changed for your PvP session.
This script allows you to highlight a list of names to a certain color for a PvP session or delete the highlights for a list of names. Any names you highlight with this will have their existing highlight replaced, so before running this script it is highly recommended that you click the {{tt|Options}} tab in the top right corner of the StormFront window, select {{tt|Settings}}, click {{tt|Export}}, check {{tt|Name Highlights}} and click {{tt|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, {{tt|Import}} your {{tt|Name Highlights}} to reset any highlight strings you may have for the character highlights you changed for your PvP session.


==Syntax==
==Syntax==

Revision as of 17:21, 18 October 2019

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


Usage

This script allows you to highlight a list of names to a certain color for a PvP session or delete the highlights for a list of names. Any names you highlight with this will have their existing highlight replaced, so 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, 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