View Full Version : Mana
StrayRogue
07-07-2004, 07:30 PM
Someone mind explaining to me how to write a script that would monitor mana for a casting hunting script of mine?
As an additional aside, I'd like to be able to whisper to my second account and have them whisper back how much mana they have. Is this possible, and if so how?
Nieninque
07-07-2004, 08:24 PM
The answer to the second one is no
Trinitis
07-07-2004, 08:30 PM
Originally posted by Nieninque
The answer to the second one is no
I'm betting you could do it..but it would be a very very HUGE script..
BigWorm
07-08-2004, 01:20 AM
Nah, wouldn't be that long really. Its probably even possible to shorten it from here. Oh yeah, and this won't handle negative mana, but if you have negative mana, you are a tard.
# Saves the name of the person to whisper to
SAVE bobmuhthol
Loop:
WAITFOR whispers
FirstCheck:
COUNTER SET 0
MATCH 1Count Mana: 1
MATCH 2Count Mana: 2
MATCH 3Count Mana: 3
MATCH 4Count Mana: 4
MATCH 5Count Mana: 5
MATCH 6Count Mana: 6
MATCH 7Count Mana: 7
MATCH 8Count Mana: 8
MATCH 9Count Mana: 9
MATCH 0Count Mana: 0
PUT exp
MATCHWAIT
1Count:
COUNTER SET %c1
GOTO Check
2Count:
COUNTER SET %c2
GOTO Check
3Count:
COUNTER SET %c3
GOTO Check
4Count:
COUNTER SET %c4
GOTO Check
5Count:
COUNTER SET %c5
GOTO Check
6Count:
COUNTER SET %c6
GOTO Check
7Count:
COUNTER SET %c7
GOTO Check
8Count:
COUNTER SET %c8
GOTO Check
9Count:
COUNTER SET %c9
GOTO Check
0Count:
COUNTER SET %c0
GOTO Check
Check:
WAIT
MATCH 1Count Mana: %c1
MATCH 2Count Mana: %c2
MATCH 3Count Mana: %c3
MATCH 4Count Mana: %c4
MATCH 5Count Mana: %c5
MATCH 6Count Mana: %c6
MATCH 7Count Mana: %c7
MATCH 8Count Mana: %c8
MATCH 9Count Mana: %c9
MATCH 0Count Mana: %c0
MATCH Count Mana: %c
PUT exp
MATCHWAIT
Count:
PUT whisper %s I have %c mana
GOTO Loop
Jonty
07-08-2004, 01:35 AM
An easy way to check if you have enough mana to cast is to put send (# of mana) sdjkfsjdgkfl. The different messaging lets you know if you can cast the spell or not.
StrayRogue
07-08-2004, 06:05 AM
Great, thanks for the help guys.
I want one to check stamina so I can unleash a fury of cman qs without muscle blowin. Help with that?
Artha
07-08-2004, 06:30 AM
Do a check for the minimum amount of stamina/mana you need to cast. If it's at or below that, set it to wrack or not do it.
I was wondering if it would work with the check for "blah blah you're beginning to feel rather tired."
pain in the ass to write though...:whistle:
longshot
07-08-2004, 06:55 AM
Multi accounting is for pussies.
StrayRogue
07-08-2004, 07:02 AM
Posting on a board about a game you don't even play is sad.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.