View Full Version : Trying to learn scripting..
Lookkin
07-13-2005, 12:56 PM
I'm in the learning process of writing scripts for my wizard and reviewing how others had written them. One of the segments I dont understand is this one for checking mana. The last line "put send 30 asdf" totally confuses me. Is this for someone using PSInet? I dont use PSI - how would I convert it?
manacheck:
match doh1 You don't have
match killdir I could not find
put send 30 asdf
matchwait
Thanks!
Latrinsorm
07-13-2005, 01:01 PM
SEND is a command used to channel mana from one person to another. SEND also gives two different failure messages: one if you don't have enough mana, and one if you have enough mana but the person is not in the room. The mana check is before the target check. This allows a scripter to determine if they have enough mana for a particular task by doing a SEND to a character that does not exist.
StrayRogue
07-13-2005, 01:04 PM
manacheck:
match doh1 You don't have
match killdir I could not find
put send 30 asdf
matchwait
Basically if you have enough mana to send (in this case 30), the messaging will be different. It will be something like I could not find the target. If you didn't it would say You don't have enough mana. This is how it distinguishes between whether or not you have enough mana to cast a spell or not. You can change the asdf to your name and the messaging will say something like Channeling to yourself?!
Lookkin
07-13-2005, 01:16 PM
Ahh..now I get it!
thanks people!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.