PDA

View Full Version : starchart.ash



Grotfang
09-07-2011, 11:44 PM
This script requires javascript to be allowed.

I hate star charts and always have to look up the numbers. I thought I would share my javascript adding, HTML tweaking scriptlet with you folks. If anything is broken for you, let me know.

EDIT: Some screenshots:

5288
The dropdown list

5289
Value changes on selection

To pre-empt a possible question, I have no intention of filtering out any items on the list. It is complete and in an order I like :)

Bale
09-08-2011, 03:38 AM
Interesting script. I'm going to have to look that over and try to learn from it. To solve the problem I've been using this alias:


alias hits => ashq (retrieve_item(1, $item[Richard's star key]) && retrieve_item(1, $item[star hat])); string [int] hits1;string [int] hits2;hits1[665]="8s 7l";hits1[661]="5s 3l";hits2[657]="7s 4l";hits2[658]="5s 6l";hits2[659]="6s 5l";if(!have_familiar($familiar[star starfish]))print("Starfish: 6s 4l");foreach i in hits1 if(item_amount(to_item(i))<1)print(to_item(i)+": "+hits1[i]);boolean sw;foreach i in hits2 if(item_amount(to_item(i))>0)sw=true;if(!sw) foreach i in hits2 print(to_item(i)+": "+hits2[i]);print("Currently: "+item_amount($item[star])+"s "+item_amount($item[line])+"l","blue");