 |
Tsen Newbie
Joined: 27 Jul 2001 Posts: 5
|
Posted: Tue Jan 22, 2002 12:45 am
Spell botting help |
Ok Basically i want to cast a spell that cost 300 mana over and over to raise the ability of it. However i have 1100 mana. This appears not a problem. But every tic only regens 300 mana. so i can only cast 1 then regen cast another. Is there a way i can cast it 3 times the sleep till fully regened and cast it 3 times again? each tic takes about 30-50 secs varying any ideas? btw sorry if this is simple im very new to all this stuff thanks
Tsen
Tsen needs ur help!! |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Tue Jan 22, 2002 1:04 am |
First set up a trigger for your prompt to detect how much mana you have. That trigger will have the following in it:
#IF (@sleeping=0) {#IF (@curmana>=@spellmana) {cast '@spellname';#ADD curmana -@spellmana} {sleeping=1;sleep}} {#IF (@curmana=@maxmana) {stand;sleeping=0}
You set spellmana, and spellname manually, your trigger will set curmana, and maxmana for you, but you will have to read around this forum a little to figure out how. |
|
|
 |
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Tue Jan 22, 2002 1:09 am |
What I would do is setup a trigger like this:
If yer prompt is: 1200/1200hp 1100/1100mana 500/500mv
then you setup a trigger like this:
(%d)/(%d)mana
#IF (%1 < 300) {sleep;#WAIT 60000 wake;*spell_that_takes_300_mana*;*spell_that_takes_300_mana*}
This way if yer mana fell below 300.. you would sleep, it will wait 60 seconds and wake and cast the spell twice or whatever.. Im here at school currently and dont have any more resources to test this,etc. Lemme know if this helps you any.
For tomarrow is another day, and other days come but 6 times a week. |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Jan 22, 2002 3:01 am |
Using #WAIT in a trigger is not a good idea because it pauses MUD output until the #WAIT is finished.
Kjata |
|
|
 |
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Tue Jan 22, 2002 6:23 am |
Thats true.. what is wait good for? and what would i use for a 30 second delay and be able to enter other commands in as well?
For tomarrow is another day, and other days come but 6 times a week. |
|
|
 |
Reddytedy Apprentice
Joined: 13 Oct 2000 Posts: 114 Location: USA
|
Posted: Tue Jan 22, 2002 7:02 am |
Use alarm instead of wait
#ALARM +30 {Do stuff here}
instead of wait 30000 will create a onetime alarm of 30 seconds than fire the command while allowing you too keep going..also you can have multiple alarms going at one time.
Alan |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Jan 22, 2002 4:38 pm |
The use of #WAIT is more or less deprecated, and I would not be surprised if it is taken out in the future.
You can however use it in an alias, for example. When inside an alias, #WAIT does not pause MUD output.
Kjata |
|
|
 |
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Thu Jan 24, 2002 3:28 am |
Oic.. good to know.. fixes my rescue trigger problem .. Learn sumthin new everyday :)
For tomarrow is another day, and other days come but 6 times a week. |
|
|
 |
|
|