Question about Aardwolfs spellup plugin

Posted by Rodriguez on Sat 01 Aug 2009 02:59 PM — 7 posts, 28,244 views.

#0
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?
#1
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
#2
What do you mean with "tags"? Is that something that doesn't appear on the screen but is used in some underlying protocol?
Australia Forum Administrator #3
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.
#4
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...)
Australia Forum Administrator #5
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)

#6
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...