Jump to content

Photo

FallenSwordQuickMsg v1.02


  • Please log in to reply
12 replies to this topic

#1 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 04 February 2014 - 07:13

Hey all.

 

I've made a new Userscript to go along with Tampermonkey/Greasemonkey. It has been approved by Hoofmaster, as it is not any form of automation and simply places a few convenient links and some data in your hand. Take a look below:

 

7de8812bbc73337ee80764fa68d285e4.pngb53686436df41e0bca38255b99aa668d.png

 

I've uploaded it to Google Code here so that you can also suggest improvements and/or point out bugs there as well as on the forum.

 

Usage:

 

Hovering over any player's name which shows a link (ie. is underlined) will display a tooltip. Initially the tooltip will show the player's name (which can be clicked on to bring you to the player's profile) and a few useful links:

 

[M] - Message the player in the standard JS popup.

[B] - Buff the player from a new window.

[AH] - View the player's auction house.

[ST] - Send the player a secure trade.

[T] - Send items to the player.

 

After a brief period, you will also see the following data:

 

Last Seen: Activity, in the form of #d(ays) #h(ours) #m(inutes) #s(econds)

Level: Current Level / Virtual Level

Joined: Join date

Attack: Attack, with bonuses in parenthesis

Defense: Defense, with bonuses in parenthesis

Armor: Armor, with bonuses in parenthesis

Damage: Damage, with bonuses in parenthesis

HP: HP, with bonuses in parenthesis

Gold: Gold on hand

Bank: Banked gold

Stamina: Current Stamina / Total Stamina, with bonuses in parenthesis

 

The tooltip will disappear when clicked or when you move your mouse away from the player name. In addition the tooltip will disappear when you click on any of the links inside.

Note: Data retrieved in a tooltip will be stored while on that webpage. This means that if you hover over another link pointing to the same player, the tooltip will display all of the info instantly, however the information will be the same as what was retrieved the first time. If you would like to fetch new data, simply refresh the page, or click on the link pointing to the player's page.

 

 

 

Edit: Source Code Below

 

Spoiler


Edited by aa0007, 04 February 2014 - 07:23.


#2 BraveKath

BraveKath

    Veteran

  • Members
  • PipPipPip
  • 642 posts
  • United States of America

Posted 04 February 2014 - 07:21

Very cool!  As there are so many not very nice people and perhaps I'm cautious, would love to see a screen shot of HCS/Hoof approving this script.  Would that be possible?

Well or Hoof or Grim posting in this thread that they've approved it - that'll work too :)


Edited by BraveKath, 04 February 2014 - 07:22.


#3 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 04 February 2014 - 07:24

Very cool!  As there are so many not very nice people and perhaps I'm cautious, would love to see a screen shot of HCS/Hoof approving this script.  Would that be possible?

Well or Hoof or Grim posting in this thread that they've approved it - that'll work too :)

 

I've sent Hoof a link to this thread, hopefully he'll see it soon and post in this thread saying it's alright :).



#4 evilbry

evilbry

    Veteran

  • Members
  • PipPipPip
  • 3,172 posts
  • New Zealand

Posted 04 February 2014 - 17:24

Personally (just my opinion) I think this is a bit of a 'can of worms', where HCS starts allowing independent scripts here and there. If it was a feature which would add value to people, I would much rather it be added as an optional feature within FSH. That way it would remain the only third party script.



#5 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 04 February 2014 - 18:18

I have no problem with this being added to the fshelper, but yuuzhan seems to be busy and there is too much code in fshelper for me to try and figure it out. Alternatively, this could get added to the game code and severely reduce server calls

#6 cyrus7

cyrus7

    Veteran

  • Members
  • PipPipPip
  • 4,562 posts
  • Badge
  • United States of America

Posted 04 February 2014 - 22:40

Personally (just my opinion) I think this is a bit of a 'can of worms', where HCS starts allowing independent scripts here and there. If it was a feature which would add value to people, I would much rather it be added as an optional feature within FSH. That way it would remain the only third party script.

 

That can of worms was already opened when they allowed FSH. Unless they're reviewing it every time it gets updated it, they don't know what's in it. I would much rather have useful features be added to the game itself, rather than 3rd party scripts.



#7 Hoofmaster

Hoofmaster

    Company Director

  • Administrators
  • PipPipPip
  • 8,357 posts
  • Badge
  • United Kingdom

Posted 04 February 2014 - 23:42

aa0007 asked me if it was ok to make this script and I didn't see any harm in it as it just adds more information / useful links to the tooltips.

 

If people find it useful we can look at updating the game to have similar functionality :)



#8 cyrus7

cyrus7

    Veteran

  • Members
  • PipPipPip
  • 4,562 posts
  • Badge
  • United States of America

Posted 05 February 2014 - 01:19

If people find it useful we can look at updating the game to have similar functionality

Personally, I think it's a bit too much info for the tooltips. If you do add it, can it be a preference on whether or not to have basic/expanded tooltips for player mouseovers?



#9 Davros81

Davros81

    Veteran

  • Members
  • PipPipPip
  • 949 posts
  • United Kingdom

Posted 05 February 2014 - 09:57

I personally am unsure of the value in adding this tooltip, it does not seem to actually add anything and is just another thing to slow the game down. 



#10 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 07 February 2014 - 19:36

Bump

#11 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 07 February 2014 - 19:45

Also, Davros, this doesn't actually slow the game down significantly. Tooltips are lazy loaded which means the requests are made when you actually hover to fetch player data. The other links are made client side, and they are also generated when you hover. So, it shouldn't be much delay with a moderately fast computer.

#12 aa0007

aa0007

    Veteran

  • New Members
  • PipPipPip
  • 4,379 posts
  • United States of America

Posted 11 February 2014 - 05:19

I'd like to point out that I've pushed an update which will fix cross-site origin errors. What this means is that there won't be places where the tooltips just randomly break because you're on www.fallensword.com instead of fallensword.com or vice versa.



#13 Shadow19231

Shadow19231

    Member

  • Members
  • PipPip
  • 163 posts

Posted 13 February 2014 - 04:41

I think this is a good addition. I haven't used it much, but when i remember it's there, I can really optimize how I play. Especially with my crappy internet, I don't have to load a full page for someone's stats or other simple info.. It's nice. As for the "can of worms", meh, I'm sure for years people have been using signed (allowed) and unsigned additions to fallen sword for various reasons, good, and bad, but I do not think this harms anything. I think it was good they contacted HCS. I would hate to be questioned on a false-positive report.

 

Anyway, thank you for this.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Font:
Arial | Calibri | Lucida Console | Verdana
 
Font Size:
9px | 10px | 11px | 12px | 10pt | 12pt
 
Color: