The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spellbar
Author Message
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #1
Spellbar
Some may use it... works for basic 8x8 spells from sb. For custom spells you would have to store gump_id and spell_id. I think its too much information in a tag.:-/

I'll love you for reporting some bugs :-)

Use .spellbar or later .spellbar_setup to set it up.

[Image: lrvx.png]


Attached File(s)
.scp  spellbar.scp (Size: 4.43 KB / Downloads: 136)
(This post was last modified: 12-26-2013 09:00 AM by Alaric.)
12-24-2013 10:05 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 6 users Like Alaric's post
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #2
RE: Spellbar
You know that there is save desktop Big Grin options in client. This script seems awesome but think about many players if they start using this. It might become massy to server and affets the save time indeed. In theory let say, this is really cool however in practice , i would say this is not good Sad
(This post was last modified: 12-24-2013 08:27 PM by Avatar.)
12-24-2013 08:26 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #3
RE: Spellbar
Family shards might use it... I didn't want to set direct size of spells because some players have smaller icons (I do Tongue.. 20x20), using flags/bitmask combination for storing spellid's would save space too but again, players couldn't choose order of the spells.

How did you think the "save desktop"? The dumb system, that all icons are moveable and hardly organized? Tongue

Btw. an idea came to mind..in spelldefinion would be good semething like icon="gump id". That would be useful for custom spells/spellbooks.

E: I'll think of a better optimization - but I'm not sure whether it is possible.
(This post was last modified: 12-25-2013 01:36 AM by Alaric.)
12-25-2013 01:35 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #4
RE: Spellbar
I don't think this would impact the server performance in any way
Take the time that Sphere would use to write a 1kb string to the disk then multiply it by 1000 players, maybe 0.1 or 0.2 second increase in the save time? RunUO does not have anything similar like tags, so each item type has its own "binary save format" and every custom item may also be saved in its "own format" and there is no performance issue that can be related to the save diversity
Gumps also does not impact on the network performance, Vorspire from RUO developed a system called Super Gumps that updates itself about 10 to 20 times itself on the client screen with no performance issues (A gump progress bar that is updated really fast to show the spell cast time can be used as example)
I don't know how sphere deal with gumps, but since this spell bar does not need a fast update, there would be no performance issues related to it
Optimization is always welcome, but you will be fighting for performance against memory/disk usage

I would not fear using this system in a live server, unless I had a very limited hardware; I would just test it before it goes live, like anything else

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 12-25-2013 07:03 AM by Feeh.)
12-25-2013 07:02 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 3 users Like Feeh's post
Tymaron
Apprentice
*

Posts: 1
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #5
RE: Spellbar
Can you fix image's link please?
12-31-2015 05:26 AM
Find all posts by this user Like Post Quote this message in a reply
membaco
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2016
Reputation: 0



Post: #6
RE: Spellbar
Thank You
04-22-2016 06:27 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #7
RE: Spellbar
fix image pls
12-22-2016 03:16 AM
Find all posts by this user Like Post Quote this message in a reply
lokman
Apprentice
*

Posts: 1
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #8
RE: Spellbar
thank you bro
10-08-2017 06:19 PM
Find all posts by this user Like Post Quote this message in a reply
lewless53
Apprentice
*

Posts: 12
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2020
Reputation: 0



Post: #9
RE: Spellbar
Thank you brom
04-01-2020 01:57 AM
Find all posts by this user Like Post Quote this message in a reply
madda
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Sep 2020
Reputation: 0



Post: #10
RE: Spellbar
thank you bro
09-26-2020 12:24 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)