PDA

View Full Version : Color Coding via Wizard Script



Danical
08-12-2008, 05:05 PM
So, I've got this script for my color coding scheme in SF.


Goto %1

LOOK:
matchre PALADIN /(Paladin|Holy Crusader|Dark Crusader|Temple Guard|Purifier|Exemplar|Vindicator|Challenger|Repe ntant|Blasphemer|Penitent|Zealot|Holy Warrior|Arbiter|Reaver|Quester|Avenger|Templar|Def ender|Faithbringer|Wrathbringer|Justicar|Redeemer| Vanquisher|Dreadnaught|Preceptor|Paragon)/
matchre BARD /(Bard|Songsmith|Busker|Thespian|PoetPoetess|Skald| Piper|Storyteller|Harper|Gleeman|Gleewoman|Battlec hanter|Jongleur|Spellsinger|Rhymester|Jester|Lores inger|Muse|Balladeer|Bladesinger|Composer|MasterPo et|Minstrel|Songmaster|Songmistress|Troubadour|Mas terStoryteller|Loremaster|Loremistress|BardLaureat e)/
matchre SORC /(Sorcerer|Transmuter|Beguiler|Hexer|Ritualist|Disr uptor|Cabalist|Dissembler|Harrower|Incanter|Incant ress|Tormenter|Sacrificer|Deceiver|Re-Animator|Plaguebringer|Maledictor|Enervator|Soulsl ayer|Necromancer|Doomsayer|Torturer|Summoner|Apost ate|Corruptor|Cursebringer|Demonmaster|Demonmistre ss|Warlock|Witch)/
matchre CLERIC /(Cleric|Initiate|Pilgrim|Proselyte|Crusader|Acolyt e|Renouncer|Sacristan|Missionary|Brother|Sister|De acon|Shaman|Celebrant|Intercessor|Curate|Preacher| Confessor|Priest|Priestess|Inquisitor|Prior|Priore ss|Heretic|Theurgist|Churchwarden|Abbot|Abbess|Sou l Keeper|Prelate|Patriarch|Matriarch)/
matchre ROGUE /(Rogue|Cutpurse|Prowler|Pickpocket|Hoodlum|Footpad |Bandit|Smuggler|Brigand|Thief|Locksmith|Grifter|H ighwayman|Filcher|Stalker|Sapper|Thug|Fingersmith| Knave|Blackguard|Bounty Hunter|Purloiner|Cutthroat|Waylayer|Scoundrel|Mast erLocksmith|MasterRogue)/
matchre EMPATH /(Empath|Mender|Pacifist|Woundtender|Consoler|Heale r|Sustainer|Botanist|Caretaker|Herbalist|Nurse|Phl ebotomist|Bloodletter|Herbmaster|Herbmistress|Pall iator|Curer|Butcher|Meliorator|Apothecary|Rejuvena tor|Physician|Chirurgeon|Scourge|Solacebringer|Wou ndmaster|Woundmistress|Martyr|MasterHealer)/
matchre MAGE /(Wizard|Conjurer|Prestidigitator|Boltwielder|Spell weaver|Spellbinder|Evoker|Rainmaker|Firestormer|He dgewizard|Magician|Invoker|BattleMage|Elementalist |Stormcaller|ZephyrMage|Icebringer|Enchanter|Encha ntress|Thaumaturge|Pyromancer|Geomancer|Mage|WarMa ge|Mystic|Adept|Archwizard|Archmage)/
matchre RANGER /(Ranger|Scout|Forager|Explorer|Forester|Tracker|Se archer|Survivalist|Rover|Woodsman|Woodswoman|Plain sman|Plainswoman|Frontiersman|Pioneer|Pathfinder|T railsman|Trailswoman|Wayfarer|Mountaineer|Guide|Ga mekeeper|Voyager|Watcher|Trailblazer|Forestwalker| Woodsmaster|Woodsmistress|Beastmaster|Beastmistres s|Huntmaster|Huntmistress|ForestWarden)/
matchre WARRIOR /(Warrior|Fighter|Cadet|Barbarian|Squire|Swordsman| Swordswoman|Raider|Militiaman|Soldier|Mercenary|Gl adiator|Myrmidon|Fencer|Hiresword|Man-at-Arms|Amazon|Armiger|Battlerager|Blademaster|Bladem istress|Marauder|Berserker|Protector|Weaponmaster| Weaponmistress|Cavalier|Destroyer|Guardian|Warlord |Champion)/
matchre EXIT /(She|He) appears/
put look %2
matchwait



RANGER:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#008000 highlightEntireLine=false matchPartialWord=False
exit

WARRIOR:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#7B3900 highlightEntireLine=false matchPartialWord=False
exit

PALLY:
PALADIN:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#E2CB6D highlightEntireLine=false matchPartialWord=False
exit

BARD:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FFD2A1 highlightEntireLine=false matchPartialWord=False
exit

SORC:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#8080C0 highlightEntireLine=false matchPartialWord=False
exit

CLERIC:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#00FFFF highlightEntireLine=false matchPartialWord=False
exit

ROGUE:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FF9000 highlightEntireLine=false matchPartialWord=False
exit

EMPATH:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FF00FF highlightEntireLine=false matchPartialWord=False
exit

MAGE:
WIZARD:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FFFF00 highlightEntireLine=false matchPartialWord=False
exit

GNOME:
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FF6B73 highlightEntireLine=false matchPartialWord=False
exit

MATE:
put befriend %2 warm
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#33F390 highlightEntireLine=false matchPartialWord=False
exit

HATE:
put befriend %2 cold
ADDTOHIGHLIGHTNAMES STRING=%2 foreColor=#FF0000 highlightEntireLine=false matchPartialWord=False
exit

EXIT:
exit


I'd like to convert this to a lich script, if possible, so I can take an array of everyone in the room, look at them, then assign the appropriate color labels.

Possible?

----------------
Now playing: John Digweed - Kiss 100 FM (April 03, 2005) - John Digweed (http://www.foxytunes.com/artist/john+digweed/track/kiss+100+fm+(april+03%2c+2005)+-+john+digweed)
via FoxyTunes (http://www.foxytunes.com/signatunes/)

Renian
08-12-2008, 05:09 PM
Couldn't you just run one as a ;w script in Lich, and do:



checkpcs.each do |pc|
fput "look " + pc
end

BigWorm
08-12-2008, 05:43 PM
I don't know if what you want to do is going to be possible. You can only add highlights by running the script through SF, not through lich. Is there any way to tell lich to start a script in SF itself and not in the lich?

Audriana
08-12-2008, 05:54 PM
Well in lich you could make one that adds more xml lines to a highlight file then import it manually...

Would be nice if I had a script that would copy the fame lists occasionally (could do it once a week or month or whatever).
Then do a Who Full and get everybody that's on the game ATM.
Then do a compare between everybody that hasn't already been highlighted on who full and the fame lists.

Then everybody that still hasn't been highlighted, could do a who prof wizard, cleric, bard, etc... and anybody it STILL can't figure out would let me set manually or semi-manually by sending the script like ;send highname Knack Wizard.

THEN every few days I'd just re-import the growing XML highlight names file.

Myx
09-10-2008, 10:47 PM
there's a few scripts already in the repository for doing at least a part of this.

The getnames.lic script was written by somebody months ago based off of the SF script I modified to add highlights for each profession to my colorscheme.

You run the 'getnames.lic' script which will run who prof warrior and so on for each profession and then output an XML file which you can then import to SF with all the new highlights. I find this to be pretty effective for the most part because who prof works of of anyone who has their profession shown.

also - the fame lists aren't always a great way to pull what profession someone is because they aren't 100% accurate I don't think. Since I've been using this script I've noticed a few people highlighted as paladins on the warrior and cleric lists.