Script for sorting jewelry

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
User avatar
Calvin
Posts: 2402

Re: Script for sorting jewelry

Post#16 » April 15th, 2018, 1:30 am

it's tricky to me this, because on the one hand, you cant get new players if you're forcing people to compete with automated players.. but on the other hand, when i started here i did play it like that, and it was the main attraction.

just hard to see how it'll effect the player base
AoS Paladin 4eva

i'm not better than you, but you are free to be worse than me.

User avatar
Calvin
Posts: 2402

Re: Script for sorting jewelry

Post#17 » April 15th, 2018, 1:36 am

i think we should stop targeting ex-OSI players that wanna hardcore a free server, because there's not enough of them.

and instead.. try to build some community and more of a social virtual world - the target audience is too niche

take it as a compliment, the population has become too good at the game, but as a side effect, it has become kinda elitist
Last edited by Calvin on April 15th, 2018, 1:40 am, edited 1 time in total.
AoS Paladin 4eva

i'm not better than you, but you are free to be worse than me.

User avatar
Tanya
Posts: 1782

Re: Script for sorting jewelry

Post#18 » April 15th, 2018, 1:39 am

function makeItReadable(){
var dirs = directorylist(expandpath('./all_jewelry'));
var counter = 1;
for (dir in dirs){
var myFile = expandPath( dir );
var fileObjRead = FileOpen( myFile, "read");
while(not FileisEOF(fileObjRead)){
var line = FileReadLine(fileObjRead);
if(findnocase('---',line)){
writeoutput('-----------------</br>');
writeoutput('[color=##FFFF00]'&replace(line,'---','') &'[/color]' & '</br>');
continue;
}
var tmp_line = trim(line);
tmp_line = replace(tmp_line, 'Turquoise Ring', counter &' - Turquoise Ring');
if(!findnocase('Turquoise',tmp_line)){
tmp_line = replace(tmp_line, 'Ring', counter &' - Ring');
}
tmp_line = replace(tmp_line, 'Bracelet', counter &' - Bracelet');
tmp_line = replace(tmp_line, '$Crafted By Lady Veronika$Exceptional', ', Crafted By Lady Veronika, Exceptional');
tmp_line = replace(tmp_line, '$Defense Chance Increase', ', DCI');
tmp_line = replace(tmp_line, '$Enhance Potions', ', EP');
tmp_line = replace(tmp_line, '$Faster Casting', ', FC');
tmp_line = replace(tmp_line, '$Lower Mana Cost', ', LMC');
tmp_line = replace(tmp_line, '$Fire Resist', ', Fire Resist ');
tmp_line = replace(tmp_line, '$Hit Chance Increase', ', HCI');
tmp_line = replace(tmp_line, '+', '','all');
tmp_line = replace(tmp_line, '$Faster Cast Recovery', ', FCR');
tmp_line = replace(tmp_line, '$Lower Reagent Cost', ', LRC');
tmp_line = replace(tmp_line, '$Intelligence Bonus', ', Int bonus');
tmp_line = replace(tmp_line, '$Magery', ', Magery');
tmp_line = replace(tmp_line, '$Physical Resist', ', Physical Resist');
tmp_line = replace(tmp_line, '$Energy Resist', ', Energy Resist');
tmp_line = replace(tmp_line, '$Poison Resist', ', Poison Resist');
tmp_line = replace(tmp_line, '$Spirit Speak', ', Spirit Speak');
tmp_line = replace(tmp_line, '$Bushido', ', Bushido');
tmp_line = replace(tmp_line, '$Dexterity Bonus', ', Dex bonus');
tmp_line = replace(tmp_line, '$Chivalry', ', Chivalry');
tmp_line = replace(tmp_line, '$Spell Damage Increase', ', SDI');
tmp_line = replace(tmp_line, '$Damage Increase', ', DI');
tmp_line = replace(tmp_line, '$Parrying', ', Parrying');
tmp_line = replace(tmp_line, '$Luck', ', Luck');
tmp_line = replace(tmp_line, '$Resisting Spells', ', Resisting Spells');
tmp_line = replace(tmp_line, '$Cold Resist', ', Cold Resist');
tmp_line = replace(tmp_line, '$Necromancy', ', Necromancy');
tmp_line = replace(tmp_line, '$Mace Fighting', ', Mace Fighting');
tmp_line = replace(tmp_line, '$Evaluate Intelligence', ', Eval Int');
tmp_line = replace(tmp_line, '$Discordance', ', Discordance');
tmp_line = replace(tmp_line, '$Strength Bonus', ', Strength Bonus');
tmp_line = replace(tmp_line, '$Stealing', ', Stealing');
tmp_line = replace(tmp_line, '$Musicianship', ', Music');
tmp_line = replace(tmp_line, '$Anatomy', ', Anatomy');
tmp_line = replace(tmp_line, '$Night Sight', ', Night Sight');
tmp_line = replace(tmp_line, '$Focus', ', Focus');
tmp_line = replace(tmp_line, '$Peacemaking', ', Peace');
tmp_line = replace(tmp_line, '$Animal Taming', ', Animal Taming');
tmp_line = replace(tmp_line, '$Fencing', ', Fencing');
tmp_line = replace(tmp_line, '$Healing', ', Healing');
tmp_line = replace(tmp_line, '$Tactics', ', Tactics');
tmp_line = replace(tmp_line, '$Ninjitsu', ', Ninjitsu');
tmp_line = replace(tmp_line, '$Meditation', ', Meditation');
tmp_line = replace(tmp_line, '$Swordsmanship', ', Swords');
tmp_line = replace(tmp_line, '$Archery', ', Archery');
tmp_line = replace(tmp_line, '$Animal Lore', ', Animal Lore');
tmp_line = replace(tmp_line, '$Swing Speed Increase', ', SSI');
tmp_line = replace(tmp_line, '$Wrestling', ', Wrestling');
tmp_line = replace(tmp_line, '$Veterinary', ', Veterinary');
tmp_line = replace(tmp_line, '$Provocation', ', Provocation');
tmp_line = replace(tmp_line, '$Stealth', ', Stealth');
tmp_line = replace(tmp_line, '%', '','all');
writeOutput(tmp_line & '</br>');
cfflush();
counter++;
}
FileClose( fileObjRead );
}
writeOutput('all done!');
abort;
}
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131

User avatar
Calvin
Posts: 2402

Re: Script for sorting jewelry

Post#19 » April 15th, 2018, 1:41 am

arrgh it's work!

Image

get it away! ;)
AoS Paladin 4eva

i'm not better than you, but you are free to be worse than me.
Xionu likes this.
Top

Return to “Cartographer and Scribe”

Who is online

Users browsing this forum: No registered users and 5 guests