[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Examples of what you can do with miniwindows
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Examples of what you can do with miniwindows
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  3  

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Sat 22 May 2010 01:04 AM (UTC)  quote  ]
Message
Nick Gammon said:


When first used it tries to get spell information. I got an error when doing that, but after closing and re-opening the world it seemed to go away, so not sure about that.



The problem there turns out to be that the spell information is too long and the server truncates it, or disconnects you.

As a workaround, if you close the world and re-open at least some of the spell stuff is saved, and it works more or less.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Sat 22 May 2010 12:37 AM (UTC)  quote  ]
Message

Example of the inventory summary (mouse-over the middle of the top line):


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Sat 22 May 2010 12:35 AM (UTC)  quote  ]
Message
I have added the "movewindow" code to the above plugin.

http://github.com/nickgammon/plugins/blob/master/aardwolf/Aardwolf_Inventory_v3.xml

In particular, in this commit:

http://github.com/nickgammon/plugins/commit/268a89ca386


You can now drag the inventory around by clicking on the top line of the inventory, however not on the part saying "- Inventory -" because if you mouse-over that particular spot a summary of your inventory appears. However to the left or right of the center should work.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Fri 21 May 2010 10:19 PM (UTC)  quote  ]
Message

If you hit the "combine" link, then multiple items of the same type are combined, to save space and where you don't care for the mouse-over detail about each one:


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Fri 21 May 2010 10:16 PM (UTC)  quote  ]
Message

Hidden away in the plugin is an idea I was working on - a "rating" for weapons. See below, the rating is circled. This is calculated based on the "standard" damage a weapon of a certain level does, and indicates if this weapon does more or less than the standard damage. It is intended to see if the weapon is "better" than another one, for its level.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Fri 21 May 2010 10:07 PM (UTC)  quote  ]
Message

This is a screenshot of the data I showed above:


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Fri 21 May 2010 10:00 PM (UTC)  quote  ]

Amended on Fri 21 May 2010 10:08 PM (UTC) by Nick Gammon

Message
OK, after some minor changes this appears to work as far as it goes. :)

http://github.com/nickgammon/plugins/blob/master/aardwolf/Aardwolf_Inventory_v3.xml

This code is released "as is", it has design flaws, in particular the way it is written it will be hard to make another window for shops or equipped items. It needs major work to make things like the tabbed window be able to be instanced more than once.

When first used it tries to get spell information. I got an error when doing that, but after closing and re-opening the world it seemed to go away, so not sure about that.

The basic way it works is, when getting an inventory, it turns on tags to get this sort of stuff:


{invdata}
62567556,,a short stabbing sword,44,5,0,-1,-1
62567535,HKG,a long sleeved @RAard @YZoo@w tshirt,21,7,1,-1,-1
62567534,,@G(>@rBlood@WStone @rGauntlets@G<)@w,41,7,1,-1,-1
62567533,HI,@r:@W:@y:@WSmooth Moves@y:@W:@r:@w,41,7,1,-1,-1
62567532,,@G(>@YW@yh@Yi@ys@Yp@ye@Yr@ys @Wof the @YE@ya@Yr@yt@Yh@G<)@w,41,7,1,-1,-1
62567531,,@G(>@YW@yh@Yi@ys@Yp@ye@Yr@ys @Wof the @YE@ya@Yr@yt@Yh@G<)@w,41,7,1,-1,-1
62567530,,@W(>@cAs@Cura@W's Az@Buri@Wte P@Cea@crl@W<)@w,41,7,1,-1,-1
62567529,HKG,a hero's leggings,21,7,1,-1,-1
62567528,,@WCan@ytera Ado@Wquin @GBo@Wdy Ar@Gmor@w,41,7,1,-1,-1
62567527,HKG,@B-@Y)@BM@bask @Bo@bf @BP@brediction@Y(@B-@w,41,6,1,-1,-1
62567526,G,a bright ball of light,0,1,1,-1,-1
62567525,G,a bright ball of light,0,1,1,-1,-1
62567524,,@yhenchman's leather vest@w,54,7,0,-1,-1
62567523,,a six shot rifle,54,5,0,-1,-1
62567522,,@yhenchman's leather vest@w,54,7,0,-1,-1
62567521,,a six shot rifle,54,5,0,-1,-1
62567520,,@yhenchman's leather vest@w,56,7,0,-1,-1
62567519,,a six shot rifle,54,5,0,-1,-1
62567518,,@yhenchman's leather vest@w,54,7,0,-1,-1
62567517,,a six shot rifle,54,5,0,-1,-1
62567515,G,blood shot eye,18,3,0,-1,-1
62567514,,scale of the enforcer,34,7,0,-1,-1
62567513,,scale of the enforcer,32,7,0,-1,-1
62567511,G,a bright ball of light,0,1,1,-1,-1
62567510,,@yhenchman's leather vest@w,52,7,0,-1,-1
62567509,,a six shot rifle,54,5,0,-1,-1
62567508,,the quivering palm style,48,5,0,-1,-1
62567507,,the dragon style,38,5,0,-1,-1
62567506,,the scorpion style,39,5,0,-1,-1
62567505,,the centipede style,41,5,0,-1,-1
62567504,K,the iron head style,44,5,0,-1,-1
62567503,K,chin kang palm,35,5,0,-1,-1
62567502,,@WS@we@Wa@wr@Wi@wn@Wg @wB@Wl@wa@Wz@we,20,5,1,-1,-1
62567501,,@WG@wa@Wv@we@Wl @wof @WJ@wu@Ws@wt@Wi@wc@We@w,50,5,1,-1,-1
62567500,K,a @gsmall bag@w,0,11,0,-1,-1
62567492,K,a @gsmall bag@w,0,11,0,-1,-1
62567486,K,Hretan's Battlegear,35,7,0,-1,-1
62567485,G,a heavy slab of granite,36,7,0,-1,-1
62567484,HK,Vladia's Shopping List,1,10,0,-1,-1
62567483,K,a hemp bracelet,20,7,0,-1,-1
{/invdata}


Then as you mouse-over your inventory it tries to get more details about an item, eg. by sending "invdetails 62567534" it gets:


{invdetails}
{invheader}62567534|41|Armor|5600|5|hands|unique, magic, burn-proof, v3||House of Touchstone||2|||60
{statmod}Damage roll|4
{statmod}Dexterity|2
{statmod}Strength|2
{/invdetails}


(see next page for screenshot of what this looks like)

This is used to display the mouse-over floating window. The details are then cached so it doesn't need to get details for 62567534 again in that session.

<advertisement>
The details are cached to save time and make the plugin much more responsive than it would have been without the caching.
</advertisement>

If you make improvements to the plugin I am happy to pull your changes back into my copy for general release.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Chicomecoatl   USA  (25 posts)  [Biography] bio
Date Fri 21 May 2010 08:01 PM (UTC)  quote  ]
Message
I'd be willing to help beta test/debug, Nick. The window and screen shots on page one look utterly fantastic.

I would love to be able to implement this, and i spend alot of time debugging/fixing scripts people throw my way, so it's no problem to work on this one.

I'm sure other would also be willing to help, if you post it.
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Fri 26 Jun 2009 09:02 PM (UTC)  quote  ]
Message
*Takes watch off and shakes it - looks doubtfully at watch.*

My code isn't complete, I saw some major design issues at the time, and then got a bit bogged down fixing them.

One major issue is that the tabbed window look was implemented in such a way (basically, with global variables) that I couldn't have two or more of them.

After seeing how fantastic the inventory looked, I wanted to have a similar window elsewhere for a shopkeeper, and a third for what you have equipped, and drag and drop between them. Now the drag and drop code went in, but my mind boggled a bit trying to re-implemented the tabbed look in a more general way.

I already released part of it, the code for doing the mouse-over information windows, which is practically identical to what I used:

http://www.gammon.com.au/forum/?id=8947

If you are keen, I can post the code for the inventory window bearing in mind it isn't perfect, and someone who is particularly enthusiastic can rip it apart and make it work better.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Fri 26 Jun 2009 09:09 AM (UTC)  quote  ]
Message
So yeah, it's been like *checks watch* months. Is this script available for use? The screen shots look fantastic, and if it works, I would love to have that to help sort out the hundreds of items in my inventory at nearly all times.

That, and well, I want to steal various bits of code.

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Thu 19 Feb 2009 03:55 AM (UTC)  quote  ]
Message
It's not in the menus - scripting only.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Jennkei   (7 posts)  [Biography] bio
Date Thu 19 Feb 2009 03:31 AM (UTC)  quote  ]
Message
Ah, I'll look forward to that, then! :)

SQLite database.. ._. Hrm will go and look around, didn't think I'd seen it in the menus but it might be hidden.
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Thu 19 Feb 2009 03:04 AM (UTC)  quote  ]
Message
Quote:

say I have a lucky resonated item, it'd still have the same id number as the normal item


No, I think every instance of an item gets its own ID.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (15,754 posts)  [Biography] bio
Date Thu 19 Feb 2009 03:04 AM (UTC)  quote  ]
Message
MUSHclient now has SQLite database support, so you could eventually put everything in that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Jennkei   (7 posts)  [Biography] bio
Date Thu 19 Feb 2009 02:59 AM (UTC)  quote  ]
Message
Interesting. So it requests from the server...so say I have a lucky resonated item, it'd still have the same id number as the normal item? Hrm that makes it a bit more difficult...especially with those stat-randomly-generated items.

Ah well. My eq db is created from identifying my own eq...it's a bit of a pain switching to zmud to do it, but I don't play as much any more so I guess it doesn't really matter. XD Come to think of it, I could probably write to a text file then import that to Excel from mush..ah well never mind.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,164 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]