|
Mindman Beginner
Joined: 26 Feb 2003 Posts: 14
|
Posted: Mon May 26, 2003 7:14 am
need some help |
I would like to start writing a script that monitoring my mana potions that is inside the bag. The capture of the screen is the following.
( 3) (Magical) (Humming) Stendarr's Quad Espresso
Anyone have any idea how can i start the coding? |
|
|
|
Mindman Beginner
Joined: 26 Feb 2003 Posts: 14
|
Posted: Mon May 26, 2003 11:23 am |
#CLASS {Manaport Triggers} {enable}
#TRIGGER {You buy (%a) * Stendarr's Gift} {#add @manapots %1}
#TRIGGER {(%d) (Humming) Stendarr's Quad Espresso (with a shot of raspberry)} {#add @manapots %1} "" {notrig}
#TRIGGER {^You buy (%d) * Stendarr's Quad Espresso (with a shot of raspberry) for} {#add @manapots %1}
#CLASS 0
i also got a button that shows the number of available potions but the whole script is not working .. anyone got an idea? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon May 26, 2003 1:24 pm |
First, commands like #ADD or #VAR do not require the @ in front of the variable name. Using it, in fact, tells the command to change the variable that has the name stored in the variable that appears in the command.
Next, I'm guessing that the second trigger needs to set the amount of potions you have and not add to it. Finally, I don't see why you need %a in the first trigger since it is supposed to mactha number. The script would then be:
#CLASS {Manaport Triggers} {enable}
#TRIGGER {You buy (%d) * Stendarr's Gift} {#ADD manapots %1}
#TRIGGER {~( (%d)~) ~(Humming~) Stendarr's Quad Espresso ~(with a shot of raspberry~)} {#ADD manapots %1}
#TRIGGER {^You buy (%d) * Stendarr's Quad Espresso ~(with a shot of raspberry~) for} {#ADD manapots %1}
#CLASS 0
Kjata |
|
|
|
Mindman Beginner
Joined: 26 Feb 2003 Posts: 14
|
Posted: Mon May 26, 2003 2:01 pm |
at the end of the script i use
#TRIGGER {You recite Stendarr's Quad Espresso} {%remove( 1, manapots)}
this is the right command to abstract a number? |
|
|
|
Bremen Novice
Joined: 26 Dec 2002 Posts: 33 Location: USA
|
Posted: Tue May 27, 2003 6:08 am |
#AD manapots -1
quote:
at the end of the script i use
#TRIGGER {You recite Stendarr's Quad Espresso} {%remove( 1, manapots)}
this is the right command to abstract a number?
--Bremen, zMUD 6.16 on WinME. |
|
|
|
Mindman Beginner
Joined: 26 Feb 2003 Posts: 14
|
Posted: Tue May 27, 2003 6:36 am |
ahh yes .. is working perfectly ..thank you soo much :)
|
|
|
|
|
|