PvPteam (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
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 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==
*.{{tt|PvPteam}} {{tt|hex color code #}} {{tt|name name name}} (where name=character names you want to highlight)
*.{{tt|PvPteam}} {{tt|(color)}} {{tt|(List of Names)}}
*.{{tt|PvPteam}} {{tt|delete}} {{tt|(List of Names)}}
::example: .pvpteam #FF6347 Jim Jack Johnny
List of valid colors: red, blue, green, purple, yellow, orange


Examples:
Use the [[PvPteamdel_(script)|PvPteamdel script]] to undo these changes.
:.PvPteam red Jim Jack Johnny
:.PvPteam delete Jim Jack Johnny


==Script==
==Script==
Line 40: Line 43:
SHIFT
SHIFT
highlightloop:
highlightloop:
DELETEFROMHIGHLIGHTNAMES string=%1
ADDTOHIGHLIGHTNAMES string=%1 forecolor=%color matchpartialword=false ignorecase=true
ADDTOHIGHLIGHTNAMES string=%1 forecolor=%color matchpartialword=false ignorecase=true
SHIFT
SHIFT

Latest revision as of 22:29, 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 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 (COLOR) (LIST OF NAMES)
  • .PVPTEAM DELETE (LIST OF NAMES)

List of valid colors: red, blue, green, purple, yellow, orange

Examples:

.PvPteam red Jim Jack Johnny
.PvPteam delete Jim Jack Johnny

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:
DELETEFROMHIGHLIGHTNAMES string=%1
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