Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Question about Aardwolfs spellup plugin

Question about Aardwolfs spellup plugin

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Rodriguez   (22 posts)  Bio
Date Sat 01 Aug 2009 02:59 PM (UTC)
Message
I had my own spellup script back in the days when I used Wintin that did pretty much the same as the spellup plugin for Aardwolf (except graphical output in a different window).
I wonder now: would it be easier to rewrite the existing plugin from bastmush so it works for a different mud (Carrionfields in my case) or should I better start from scratch if I can do without the graphical part?
Top

Posted by Bast   (78 posts)  Bio
Date Reply #1 on Sat 01 Aug 2009 06:23 PM (UTC)
Message
The Aardwolf one is based on tags that are unique to Aardwolf. The only thing you may want to use from it is the coroutine stuff. I think it would be better if you started from scratch.

Bast

Bast

Scripts: http://github.com/endavis
Top

Posted by Rodriguez   (22 posts)  Bio
Date Reply #2 on Sun 02 Aug 2009 09:34 AM (UTC)
Message
What do you mean with "tags"? Is that something that doesn't appear on the screen but is used in some underlying protocol?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 02 Aug 2009 09:35 PM (UTC)
Message
You can see the tags, for example, send:


slist learned noprompt


Receive:


{spellheaders learned noprompt}
201,axe,0,0,75,-1,2
210,bash,0,0,76,-1,2
202,dagger,0,0,75,-1,2
212,dirt kicking,0,0,75,-1,2
214,dodge,0,0,75,-1,2
215,enhanced damage,0,0,77,-1,2
419,exotic,0,0,75,-1,2
203,flail,0,0,75,-1,2
217,hand to hand,0,0,75,-1,2
218,kick,1,0,76,-1,2
204,mace,0,0,75,-1,2
219,parry,0,0,76,-1,2
205,polearm,0,0,75,-1,2
316,recall,0,0,75,-1,2
220,rescue,0,0,75,-1,2
222,second attack,0,0,76,-1,2
206,shield block,0,0,75,-1,2
207,spear,0,0,75,-1,2
2,sword,0,0,98,-1,2
269,treat wounds,0,0,75,-1,2
208,whip,0,0,75,-1,2
{/spellheaders}


The spellups plugin omits those lines and uses them to update your spellups status.

You are probably better off starting from scratch, however the Aardwolf plugin might give you ideas about how using a coroutine could be helpful.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rodriguez   (22 posts)  Bio
Date Reply #4 on Tue 04 Aug 2009 04:03 PM (UTC)
Message
Hmm so its just a list of the spells and their remaining time?
There is something similar in CF:

You are affected by:
Skill: 'sneak' for 51 hours.
Song: 'chant of resilience' modifies save vs mental by -15 for 32 hours.
Song: 'chant of resilience' modifies armor class by -20 for 32 hours.
Song: 'anthem of resistance' for 19 hours.
Song: 'requiem' for 18 hours.
Skill: 'legendary awareness' for 3 hours.


It sure is an interesting idea to just call it and omitting the lines. (though its probably not good calling it to often...)
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Tue 04 Aug 2009 10:01 PM (UTC)
Message
Quite right. And to avoid calling it too often we devised a system of notification tags, eg.


{affon}     --> you have gained an affect (eg. you are blind)

{affoff}    --> you have lost an affect (eg. you are not blind)

{recon}     --> you have triggered a recovery (cooldown)

{recoff}    --> cooldown over (so you can cast again)

{skillgain} --> you have learnt a new skill (so you can cast more spells)

{sfail}     --> attempting to cast a spell failed (eg. so you try again)


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Rodriguez   (22 posts)  Bio
Date Reply #6 on Wed 05 Aug 2009 05:16 PM (UTC)

Amended on Wed 05 Aug 2009 05:22 PM (UTC) by Rodriguez

Message
Ah! Ok these things exist in CF too. (Not for all affects and not for skillsgains though)

Guess I have to look trough the source a bit and see how I will continue...
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.


21,211 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.