Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ EXP trigger.
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Scarn
(47 posts) Bio
|
Date
| Thu 02 Oct 2008 09:38 AM (UTC) |
Message
| Hi, im having trouble creating a trigger I want to use to capture how much EXP I have gained since I last checked it (handy if I want to work out how much EXP I gain for killing certain things).
Here is how my EXP is displayed to me:
score
Falgor Ar-Gimilzor the numenorean returns from the depths of the Belegaer (immortal)
Your stomach is almost full, barely room for another bite.
HP: 230/230 END: 227/230 Exp: 2112706 Avg. Stats: 100
Strength: 100 Agility: 100 Charisma: 100
Constitution: 100 Coordination: 100 Intelligence: 100
Level 20 necromancer, 4d 13h 56m 2s old.
In short I need a trigger that grabs the EXP from the score line (I already have this), saves it in a different location, when I type score again it must grab the EXP again and subtract it from the old exp. I can then put that figure into a variable and use it in an output or colourtell.
Any help would be appreciated, thank you.
-Falgor | Top |
|
Posted by
| Libori
Germany (3 posts) Bio
|
Date
| Reply #1 on Sun 05 Oct 2008 12:43 PM (UTC) |
Message
| "In short I need a trigger that grabs the EXP from the score line (I already have this),..."
If your trigger grabs the EXP as 'EXP_New', try to add this:
_____________________________________________
EXP_Old = (world.GetVariable("EXP_Old") - 0)
EXP_Diff = EXP_New - EXP_Old
world.setvariable "EXP_Old", EXP_New
world.note "EXP gained: " & EXP_Diff
_____________________________________________
Libori | Top |
|
Posted by
| Scarn
(47 posts) Bio
|
Date
| Reply #2 on Mon 06 Oct 2008 09:23 PM (UTC) |
Message
| I ended up doing it in my script file, works fine. Thanks for the help, if anyone wants it then just ask. Its really useful for leveling/exp hunting/documenting NPCs.
-Falgor. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,276 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top