PDA

View Full Version : random thought about ;go2 and ;alias



Anebriated
05-10-2010, 07:56 PM
It probably shouldnt be at the top of any priority lists but im wondering if there is any support behind a thought I had about saving an alias or go2 target...

Why not have ;go2 save .... and ;alias add .... be uniform? Both are scripts that come with the regular download of Lich, why not have both be add or both save? Its not major but I find myself having to try both a lot to figure out which im supposed to use. Im sure this isnt a problem for many but as a returning player I am often confused.

Beguiler
05-11-2010, 11:21 AM
Great idea. Actually, to add onto this, I am slowly migrating myself hopefully to 100% Lich, eventually. One of my hangups is I have an extensive list of PsiNet Aliases, a lot of which were offered up by some lovely user (whose name I forgot, I'm sorry). I get confused on just how to save an ;alias in lich, and how to use aliases with ;go2. Anything that would make it easier for my poor brain cells would be wonderful. Also if anyone has a list of ;go2 /;alias targets that could be saved by a script would be spiffy, as well.

Yeah, I'm somewhat lazy, but also somewhat visually impaired, and gladly take any help I can get.. not seeing my own typos = fail.

Anebriated
05-11-2010, 11:33 AM
;go2 has a lot of built in targets. IE if you type in ;go2 gemshop/bank/pawnshop/etc in any town it will take you to the closest one. Also common points in town can be found with ;go2 targets.

if you type ;go2 or ;alias by themselves it will give you the syntax for saving one. As for converting them I think itll end up just being a time consuming pita..

Ryvicke
05-11-2010, 11:53 AM
;alias add global gem=;go2 gemshop

Repeat for all common targets

BigWorm
05-11-2010, 04:26 PM
;alias add global gem=;go2 gemshop

Repeat for all common targets

Yeah, this how you would do what the OP is talking about.

Personally, I added a bunch of aliases like g2b (=;go2 bank), g2g (=;go2 guard), etc.

Deathravin
05-11-2010, 05:06 PM
I added a big ass hash with all my targets to a global variable that gets defined in a startup script I run that defines a lot of common functions and variables for my scripts.

$gd_go2_targets = {
"Wehnimer's" => {
#common places
'alch' => 6256, 'wlalch' => 6256,
'bank' => 400, 'wlbank' => 400,
'furrier' => 405, 'wlfurrier' => 405,
'gemshop' => 1776, 'wlgemshop' => 1776,
'pawn' => 408, 'wlpawn' => 408,
'armor' => 401, 'wlarmor' => 401,
'fletcher' => 8719, 'wlfletcher' => 8719,
'general' => 8664, 'wlgeneral' => 8664,
'herb' => 325, 'wlherb' => 325,
'weapon' => 402, 'wlweapon' => 402,
'jail' => 8686, 'wljail' => 8686,
'forge' => 8618, 'wlforge' => 8618,
'locksmith' => 5612, 'wllocksmith' => 5612,
'lockrepair' => 8619, 'wllockrepair' => 8619,
'shop' => 337, 'wlshop' => 337,
'locker' => 389, 'wllocker' => 389,'locker1'=>389,'locker2'=>390,'locker3'=>391,'locker4'=>393,'locker5'=>394,
#town locations
'graveyard' => 4142, 'wlgraveyard' => 4142,
#guilds & societies
'advguard' => 420, 'wladvguard' => 420,
'advguild' => 3785, 'wladvguild' => 3785,
'advpickup' => 223, 'wladvpickup' => 223,
'sunfist' =>13072, 'wlsunfist' =>13072,
'voln' => 3600, 'wlvoln' => 3600,
#nodes
'town' => 288, 'wl' => 288,
'node0' => 3807, 'etower' => 3807,
'node1' => 288, 'park' => 288,
'node2' => 318, 'niche' => 318,
'node3' => 228, 'tsc' => 228,
'node4' => 1263, 'frith' => 1263,
'node5' => 8859, 'helga' => 8859,
'node6' => 477, 'hsporch' => 477,
'node7' =>13500, 'hs' =>13500,
'node8' =>14627, 'wayside' =>14627,
'node9' => 9400, 'thrak' => 9400,
},
"TerasIsle" => {
#common places
'alch' =>13062, 'tealch' =>13062,
'bank' => 1838, 'tebank' => 1838,
'furrier' => 1886, 'tefurrier' => 1886,
'gemshop' => 1890, 'tegemshop' => 1890,
'pawn' => 1885, 'tepawn' => 1885,
'armor' => 1888, 'tearmor' => 1888,
'fletcher' => 1856, 'tefletcher' => 1856,
'general' =>12980, 'tegeneral' =>12980,
'herb' => 1851, 'teherb' => 1851,
'weapon' => 1889, 'teweapon' => 1889,
'jail' => 1959, 'tejail' => 1959,
'forge' => 1954, 'teforge' => 1954,
'locksmith' => 1881, 'telocksmith' => 1881,
'shop' => 1973, 'teshop' => 1973,
'locker' =>13059, 'telocker' =>13059,'locker1'=>13059,'locker2'=>13060,'locker3'=>13059,'locker4'=>13060,'locker5'=>13059,
#town locations
#guilds & societies
'advguard' => 1957, 'teadvguard' => 1957,
'advguild' =>12511, 'teadvguild' =>12511,
'sunfist' =>14711, 'tesunfist' =>14711,
#nodes
'town' => 1932, 'te' => 1932,
'node0' => 1844, 'tetower' => 1844,
'node1' =>12537, 'advrest' =>12537,
},
"Solhaven" => {
#common places
'alch' => 9397, 'shalch' => 9397,
'bank' => 5710, 'shbank' => 5710,
'furrier' =>13054, 'shfurrier' =>13054,
'gemshop' => 5719, 'shgemshop' => 5719,
'pawn' => 5711, 'shpawn' => 5711,
'armor' =>12813, 'sharmor' =>12813,
'fletcher' =>12818, 'shfletcher' =>12818,
'general' =>13238, 'shgeneral' =>13238,
'herb' => 5722, 'shherb' => 5722,
'weapon' =>12815, 'shweapon' =>12815,
'jail' =>13515, 'shjail' =>13515,
'forge' => 5039, 'shforge' => 5039,
'locksmith' => 5724, 'shlocksmith' => 5724,
'shop' => 9008, 'shshop' => 9008,
'locker' =>14118, 'shlocker' =>14118,'locker1'=>14118,'locker2'=>14119,'locker3'=>14118,'locker4'=>14119,'locker5'=>14118,
#town locations
'brokentower' => 5054, 'shtower' => 5054,
'shan' => 5331,
#guilds & societies
'advguard' => 5576, 'shadvguard' => 5576,
'advguild' =>12805, 'shadvguild' =>12805,
'advpickup' => 1472, 'shadvpickup' => 1472,
'sunfist' =>13127, 'shsunfist' =>13127,
#nodes
'town' => 1438, 'sh' => 1438,
'node0' => 1481, 'liabo' => 1481,
'node1' => 1572, 'southmarket' => 1572,
'node2' =>33333, 'marshtown' =>33333,
'node3' =>14352, 'beacon' =>14352,
},
"IcemuleTrace" => {
#common places
'alch' =>13055, 'imalch' =>13055,
'bank' => 3370, 'imbank' => 3370,
'furrier' => 2466, 'imfurrier' => 2466,
'gemshop' => 2422, 'imgemshop' => 2422,
'pawn' => 2464, 'impawn' => 2464,
'armor' => 3455, 'imarmor' => 3455,
'fletcher' => 3451, 'imfletcher' => 3451,
'general' => 2424, 'imgeneral' => 2424,
'herb' => 3363, 'imherb' => 3363,
'weapon' => 3453, 'imweapon' => 3453,
'jail' => 2458, 'imjail' => 2458,
'forge' => 9007, 'imforge' => 9007,
'locksmith' => 2425, 'imlocksmith' => 2425,
'shop' => 3439, 'imshop' => 3439,
'locker' => 2440, 'imlocker' => 2440,'locker1'=>2440,'locker2'=>2441,'locker3'=>2448,'locker4'=>2444,'locker5'=>2446,
#town locations
#guilds & societies
'advguard' => 3307, 'imadvguard' => 3307,
'advguild' => 3778, 'imadvguild' => 3778,
'advpickup' => 2412, 'imadvpickup' => 2412,
'sunfist' =>13096, 'imsunfist' =>13096,
'voln' => 3365, 'imvoln' => 3365,
#nodes
'town' => 2300, 'im' => 2300,
'node0' => 2467, 'giantman' => 2467,
'node1' => 2400, 'well' => 2400,
'node2' => 3449, 'honeybeer' => 3449,
'node3' => 3428, 'penguin' => 3428,
'node4' => 2429, 'clovertooth' => 2429,
},
"River'sRest" => {
#common places
'alch' =>11003, 'rralch' =>11003,
'bank' =>10911, 'rrbank' =>10911,
'furrier' =>10934, 'rrfurrier' =>10934,
'gemshop' =>10935, 'rrgemshop' =>10935,
'pawn' =>10949, 'rrpawn' =>10949,
'armor' =>10937, 'rrarmor' =>10937,
'fletcher' =>10990, 'rrfletcher' =>10990,
'general' =>10916, 'rrgeneral' =>10916,
'herb' =>10863, 'rrherb' =>10863,
'weapon' =>10937, 'rrweapon' =>10937,
'jail' =>10887, 'rrjail' =>10887,
'forge' =>11015, 'rrforge' =>11015,
'locksmith' =>10943, 'rrlocksmith' =>10943,
'shop' =>10873, 'rrshop' =>10873,
'locker' =>16130, 'rrlocker' =>16130,'locker1'=>16130,'locker2'=>16134,'locker3'=>16135,'locker4'=>16287,'locker5'=>16130,
#town locations
#guilds & societies
'advguild' =>10992, 'rradvguild' =>10992,
'sunfist' =>16162, 'rrsunfist' =>16162,
'voln' =>11043, 'rrvoln' =>11043,
#nodes
'town' =>10861, 'rr' =>10861,
'node0' =>10855, 'sanctuary' =>10855,
},
"ZulLogoth" => {
#common places
'alch' => 9564, 'zlalch' => 9564,
'bank' => 9472, 'zlbank' => 9472,
'furrier' => 9471, 'zlfurrier' => 9471,
'gemshop' => 9475, 'zlgemshop' => 9475,
'pawn' => 9477, 'zlpawn' => 9477,
'armor' => 9474, 'zlarmor' => 9474,
'general' => 9493, 'zlgeneral' => 9493,
'herb' => 9505, 'zlherb' => 9505,
'weapon' => 9480, 'zlweapon' => 9480,
'jail' => 9503, 'zljail' => 9503,
'forge' => 9422, 'zlforge' => 9422,
'locksmith' => 9491, 'zllocksmith' => 9491,
'shop' => 9423, 'zlshop' => 9423,
'locker' => 9495, 'zllocker' => 9495,'locker1'=>9495,'locker2'=>9496,'locker3'=>9495,'locker4'=>9496,'locker5'=>9495,
#town locations
#guilds & societies
'advguild' => 9445, 'zladvguild' => 9445,
'advpickup' => 1005, 'zladvpickup' => 1005,
'advguard' => 9411, 'zladvguard' => 9411,
'sunfist' =>13161, 'zlsunfist' =>13161,
#nodes
'town' => 1005, 'zl' => 1005,
},
"Ta'Illistim" => {
#common places
'alch' =>13052, 'ilalch' =>13052,
'bank' => 11, 'ilbank' => 11,
'furrier' => 4019, 'ilfurrier' => 4019,
'gemshop' => 1439, 'ilgemshop' => 1439,
'pawn' => 644, 'ilpawn' => 644,
'armor' => 4012, 'ilarmor' => 4012,
'general' => 4009, 'ilgeneral' => 4009,
'herb' => 640, 'ilherb' => 640,
'weapon' => 602, 'ilweapon' => 602,
'jail' => 1780, 'iljail' => 1780,
'forge' =>13270, 'ilforge' =>13270,
'locksmith' => 4024, 'illocksmith' => 4024,
'shop' => 641, 'ilshop' => 641,
'locker' => 4029, 'illocker' => 4029,'locker1'=>4029,'locker2'=>4030,'locker3'=>4029,'locker4'=>4030,'locker5'=>4029,
#town locations
'vortaz' => 4794,
'trali' => 4824,
'faeroth' => 4908,
#guilds & societies
'advguard' => 37, 'iladvguard' => 37,
'advguild' =>13048, 'iladvguild' =>13048,
'advpickup' => 34, 'iladvpickup' => 34,
#nodes
'town' => 188, 'il' => 188,
'node0' => 156, 'nwbriarstone' => 156,
'node1' => 638, 'wbriarstone' => 638,
'node2' => 157, 'swbriarstone' => 157,
'node3' => 601, 'fountain' => 601,
'node4' =>13362, 'moonglae' =>13362,
'node5' =>13424, 'glowbark' =>13424,
},
"Ta'Vaalor" => {
#common places
'alch' =>10365, 'tvalch' =>10365,
'bank' =>10325, 'tvbank' =>10325,
'furrier' =>10329, 'tvfurrier' =>10329,
'gemshop' =>10327, 'tvgemshop' =>10327,
'pawn' =>10379, 'tvpawn' =>10379,
'armor' =>12350, 'tvarmor' =>12350,
'fletcher' =>10362, 'tvfletcher' =>10362,
'general' =>12348, 'tvgeneral' =>12348,
'herb' =>10396, 'tvherb' =>10396,
'weapon' =>10367, 'tvweapon' =>10367,
'jail' => 3746, 'tvjail' => 3746,
'forge' =>10394, 'tvforge' =>10394,
'locksmith' =>10434, 'tvlocksmith' =>10434,
'shop' =>10441, 'tvshop' =>10441,
'locker' =>10318, 'tvlocker' =>10318,'locker1'=>10318,'locker2'=>10323,'locker3'=>10318,'locker4'=>10323,'locker5'=>10318,
#town locations
#guilds & societies
'advguard' => 5827, 'tvadvguard' => 5827,
'advguild' =>10332, 'tvadvguild' =>10332,
'advpickup' => 3483, 'tvadvpickup' => 3483,
'sunfist' =>13135, 'tvsunfist' =>13135,
#nodes
'town' => 3519, 'tv' => 3519,
'node0' => 3542, 'kaistatue' => 3542,
'node1' =>10374, 'garden' =>10374,
'node2' => 3493, 'amaranth' => 3493,
'node3' => 3486, 'obelisk' => 3486,
'node4' =>13920, 'wyvern' =>13920,
},
"Sylvarraend" => {
#common places
'bank' =>10070, 'svbank' =>10070,
'furrier' =>10081, 'svfurrier' =>10081,
'gemshop' => 686, 'svgemshop' => 686,
'pawn' =>10066, 'svpawn' =>10066,
'fletcher' =>10074, 'svfletcher' =>10074,
'general' =>10072, 'svgeneral' =>10072,
'herb' =>13137, 'svherb' =>13137,
#town locations
#guilds & societies
'sunfist' =>13140, 'svsunfist' =>13140,
#nodes
'svtown' =>10068, 'sv' =>10068,
},
"Caravansary" => {
#common places
'alch' => 9279, 'caalch' => 9279,
'bank' => 9266, 'cabank' => 9266,
'furrier' => 9271, 'cafurrier' => 9271,
'gemshop' => 9268, 'cagemshop' => 9268,
'pawn' => 9272, 'capawn' => 9272,
'armor' => 9274, 'caarmor' => 9274,
'weapon' => 9275, 'caweapon' => 9275,
#town locations
#guilds & societies
#nodes
'catown' => 9256, 'ca' => 9256,
},
"Pinefar" => {
#common places
'bank' => 2787, 'pfbank' => 2787,
'furrier' => 2781, 'pffurrier' => 2781,
'general' => 2779, 'pfgeneral' => 2779,
'herb' => 2782, 'pfherb' => 2782,
#nodes
'town' => 2777, 'pf' => 2777,
},
"Cysaegir" => {
#common places
'alch' =>33333, 'cyalch' =>33333,
'bank' => 4686, 'cybank' => 4686,
'furrier' => 9687, 'cyfurrier' => 9687,
'gemshop' => 4655, 'cygemshop' => 4655,
'pawn' => 4683, 'cypawn' => 4683,
'armor' => 9684, 'cyarmor' => 9684,
'general' => 4649, 'cygeneral' => 4649,
'herb' => 4647, 'cyherb' => 4647,
'weapon' => 4668, 'cyweapon' => 4668,
'locksmith' => 4663, 'cylocksmith' => 4663,
#town locations
#guilds & societies
#nodes
'town' => 4653, 'cy' => 4653,
},
"Four Winds" => {
#common places
'alch' =>16470,
'bank' => 3672,
'furrier' =>16301,
'gemshop' =>16344,
'pawn' =>16351,
'locksmith' =>16320,
'locker' =>16308,'locker1'=>16308,'locker2'=>16310,'locker3'=>16311,'locker4'=>16312,'locker5'=>16313,
#town locations
#guilds & societies
#nodes
'town' => 3668,
'firefly' =>16430,
},
}

Then I made a copy of go2 and called it go2use. So when a new version of go2 comes out I can modify it before it goes live on my system.

Then I modified go2use... Instead of hardcoded_targets = { not-quite as big ass hash }
hardcoded_targets = $gd_go2_targets

Then I added a alias
g = ;go2use

Now I and my scripts can easily go places...
g bank
g alch
g gemshop
g pawn
g wlbank
g shbank
g tvgemshop


That way I have 1 alias.

Anebriated
05-11-2010, 07:09 PM
Yeah, this how you would do what the OP is talking about.

Personally, I added a bunch of aliases like g2b (=;go2 bank), g2g (=;go2 guard), etc.

this in no way shape or form does what I was talking about in the OP. My goal was to be able to get us to use ;alias save xxx and ;go2 save xxx or ;alias add xxx and ;go2 add xxx. What has been posted does not help solve the fact that the two scripts use different verbs to do the same thing.

Deathravin
05-11-2010, 07:14 PM
Standards are never a bad idea.

Anebriated
05-11-2010, 07:16 PM
thats basically what it comes down to. I have no problem going through the motions and correcting myself when I am wrong but considering both programs are released with the download of lich it just makes sense for the two to use the same standard... again its not a huge deal but its something to keep in mind as Lich progresses.

Loagan
05-12-2010, 01:48 AM
;alias add global gem=;go2 gemshop

Repeat for all common targets

You can do like this, or even personalize it to your needs.

i.e. ;alias add global {you alias shortname}=;go2 {room#}



I didn't enjoy having to do this at first, but Lich is so much more flexible than - and I am speaking from only three days worth of experience after switching over - psinet, that I am willing to get my hands a little dirty in order to enjoy this game more.

Have fun, I know I will.

BigWorm
05-12-2010, 01:53 AM
this in no way shape or form does what I was talking about in the OP. My goal was to be able to get us to use ;alias save xxx and ;go2 save xxx or ;alias add xxx and ;go2 add xxx. What has been posted does not help solve the fact that the two scripts use different verbs to do the same thing.

how would lich know if you wanted it to be an alias or a go2 target?

SanGreal
05-12-2010, 02:44 AM
how would lich know if you wanted it to be an alias or a go2 target?

because you'd still be typing ;go2 and ;alias

Right now the commands are:
;go2 save <name>=<room#/current>
;alias add <name>=<alias>

All this thread is about is changing the word save/add in one of them to be consistent since the functionality is the same

Izzy
05-12-2010, 08:52 AM
how would lich know if you wanted it to be an alias or a go2 target?

Holy not getting the point, batman.

Cyprion
05-12-2010, 09:01 AM
I appologize if this is a stupid question, but is there a way to find out the room number of the room you are currently in?

SpiffyJr
05-12-2010, 09:17 AM
;repo download whereami
;e echo Room.current.id

Deathravin
05-12-2010, 09:35 AM
;repo download uberbar
;trust uberbar
;uberbar

it's there.

BigWorm
05-12-2010, 11:58 AM
because you'd still be typing ;go2 and ;alias

Right now the commands are:
;go2 save <name>=<room#/current>
;alias add <name>=<alias>

All this thread is about is changing the word save/add in one of them to be consistent since the functionality is the same

I got it now. I think the best solution is for either command to accept both formats.

Anebriated
05-12-2010, 12:07 PM
I agree. It just needs to be approved and programmed in.