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
➜ Jscript
➜ BS & Malediction Reporter For Medievia
|
BS & Malediction Reporter For Medievia
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Caebryn
(2 posts) Bio
|
| Date
| Mon 20 Sep 2004 03:35 AM (UTC) Amended on Mon 20 Sep 2004 05:03 PM (UTC) by Caebryn
|
| Message
| A friend asked me to port my zmud backstab reporter to mush client. Seems to work nicely so Id thought I post it here
This is my first mushclient script so if anything can be done better lemme know :)
Just a few notes theres only one command cbshow
this switches reporting to only you to all your active
chat connections.
Second BS Reporters work off your prompt and unfortunately everyones Prompt is different so you will need to tweak 2 parts of this script to get it to work for you this version is set up for my prompt which looks like :
(sfmpv)(LPK 0)<584/584hp 235/235m 490/490mv 100br>
this is the line in my script section you must first change
var promptreg = new RegExp("^.*\\(([a-zA-Z]+) \\d+\\)\\<(\\d+)/\\d+hp (\\d+)/\\d+m.*\\>");
that regexp pattern is set for my prompt it needs to be set for yours.
It needs to "capture" 3 things from your prompt , your current HPS, MANA and PK LOCATION, (PK LOCATION isnt required) inside the function OnPluginPartialLine you must change the code so the proper variables are set with your matches
Heres Mine:
var matches = promptreg.exec(sText);
if(matches == null)
return;
UserPkLoc = matches[1];
UserHpsOld = UserHpsNew;
UserHpsNew = matches[2];
UserMana = matches[3];
var Report = null;
So you set UserPkLoc to the Pk Loc Capture etc..
Note UserHpsOld must be set to UserHpsNew before UserHpsNew is set to the match from the prompt , i probably confuse things i know :)
Thats about it one other thing is the scripts color are themed, the Theme array is commented so you can easily change the color set ups if you want.
Enjoy.
Ok Too Big too paste so you can download it here
http://home.nc.rr.com/bushhog/Caebryn/scripts/calbackstab.xml
edit: Fixed Twist Bug, and 2 bad triggers.
| | Top |
|
| Posted by
| Anssett
USA (9 posts) Bio
|
| Date
| Reply #1 on Mon 03 Jan 2005 10:25 PM (UTC) |
| Message
| | anybody have a copy of this? I've talked to caeb and he doesn't have it anymore... |
---
a world without cheese would be a sad world indeed | | 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.
13,072 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top