Custom Item SpellBar - now with XML, auto open, and gump positioner Ver 2.1 [ Final ]

SpellBar - a hot bar for spells

  1. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

  2. Johnny

    Johnny Super Contributor

    Do I need to replace the Bushido and Ninjitsu spell scripts with yours?
     
  3. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    yes, back up your old files and replace them with the ones i included
    * it's not required to do this but will make it refresh as intended
     
  4. Tukaram

    Tukaram Super Contributor

    That is awesome. I was using the spell bar scrolls, but this is nicer. I love the options for direction, locking it, and auto opening on login. Also the spell bar scrolls do not have any mouse over text, and this does.

    An item tool bar would be awesome! Like the hotbar in the Enhanced Client. Put your lockpicks, dagger, and other items handy for use.
     
    Last edited: Jan 2, 2015
  5. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    glad that you like it :)
     
  6. Forest Condon

    Forest Condon Illustrious Member

    This is simply amazing. Works wonderful too. My only quesiton is, I am not quite sure what the bushido and ninjitsu file edits are that come with it. What are those for? If I want to be able to add those spells the spellbar or something else?
     
  7. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    what they do is when certain spells in Bushido and Ninjitsu are active, the spell icon in the spellbar will show it by making the icon "see through", then once the move is completed it will refresh the gump and make the icon normal again.

    helps to prevent player confusion
     
    • Like Like x 1
  8. Forest Condon

    Forest Condon Illustrious Member

    Thanks for the info. :)
     
    • Like Like x 1
  9. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    np, let me know if you have any problems or suggestions with/for it
     
    • Like Like x 1
  10. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    Had a thought about something that i tried and failed to get working back when i first scripted this, tried it again and it seems to be working

    find the file: \Scripts\Spells\Base\SpecialMove.cs

    add
    at the top

    then find the method public static void ClearCurrentMove(Mobile m) and add this to the end of it

    so it should look like this

    Code:
    public static void ClearCurrentMove(Mobile m)
            {
                SpecialMove move = null;
                m_Table.TryGetValue(m, out move);
    
                if (move != null)
                {
                    move.OnClearMove(m);
    
                    int moveID = SpellRegistry.GetRegistryNumber(move);
    
                    if (moveID > 0)
                        m.Send(new ToggleSpecialAbility(moveID + 1, false));
                }
    
                m_Table.Remove(m);
               
                SpellBarScroll scroll = (SpellBarScroll)XmlAttach.FindAttachment(m, typeof(SpellBarScroll));
               
                if ( m.HasGump(typeof (SpellBarGump.SpellBar_BarGump)) ) {
                    m.CloseGump( typeof( SpellBarGump.SpellBar_BarGump ) );
                       
                    int dbx = 0; int dbxa = 0; int dby = 0; int dbya = 0; int xselect_var = 0;
                   
                    m.SendGump(new SpellBarGump.SpellBar_BarGump(m, scroll, scroll.Xo, scroll.Yo ));
                }
            }
    one script to edit, yay!
     
    • Like Like x 2
  11. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    this also seems to be working with weapon abilities too. since activating one should cancel out the pending "spells" the edits were intended for
     
    • Like Like x 2
  12. Forest Condon

    Forest Condon Illustrious Member

    What does this edit to? I'll add it as soon as I get home.
     
  13. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    basically it refreshes the spellbar gump when you execute certain spells like HonorableExecution.

    Those spells the icon stays "red" until the spell/ability it executed or until you change to another ability.

    Without the edit, the spellbar gump won't auto refresh and it won't show the Spell Icon changing indicating to the player that the ability/spell is active and waiting.

    maybe this would make more sense if i just making a video to show it

    edit, also realized i could change it to active icons are just a red image instead of using alpha regions like it currently does.
     
    • Like Like x 1
  14. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    screen looks kind of small but it's clear enough to see what it does

     
    • Like Like x 2
  15. Forest Condon

    Forest Condon Illustrious Member

    Freaking beautiful. You have accomplished something that I have said for 10 years should be in UO by default. Thanks for the updates.
     
  16. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    ty :)

    i'm working on updating and making the code a bit...smaller, more simplified...by removing repeat code.

    you'll see a lot of this in there
    that's me trying to get this system to work and not knowing a better way to code the spell icon placement.
    still working on it.
     
    • Like Like x 1
    • Winner Winner x 1
  17. Forest Condon

    Forest Condon Illustrious Member

    Works perfect :) Hey quick question.. I am about to make those Ninjitsu and bushido edits and noticed it's a lot of files. Are those all current JustUO distro files? Meaning can I just over-ride the ones in the current JustUO release? Or should I WinMerge them all?
     
  18. zerodowned

    zerodowned Administrator Moderator JustUO Developer Gold Star Member Et Cetera, Et Cetera

    you don't need to do all of them, just this one: http://www.playuo.org/emu/index.php...open-and-gump-positioner.330/page-2#post-8270
     
    Last edited: May 31, 2015
  19. Forest Condon

    Forest Condon Illustrious Member

    Oh snap, so glad I asked. That 1 file edit is way better than all those other edits. :)
     
    • Like Like x 1
  20. Walter Gress

    Walter Gress Renowned Member

    Hmmm...I don't know how to use this? What command do I call?
     

Share This Page