|
Nurodma Beginner
Joined: 10 Oct 2005 Posts: 24
|
Posted: Fri May 25, 2007 2:36 am
Channel Capture Triggers |
alright, this trigger was written for ZMud 7.21. I want to start using it for CMUD 1.33, but it seems to have a bit of a problem with it. I am completely new to CMUD, so can someone help me fix it?
Code: |
#CLASS {private}
#VAR name {Nurodma}
#TRIGGER {(%w) (%w) '*'} {#IF (%2=say)OR(%2=says)OR(%2=exclaim)OR(%2=exclaims)OR(%2=wonder)OR(%2=wonders)OR(%2=yell)OR(%2=yells)OR(%2=quest)OR(%2=quests)OR(%2=newbiechat)OR(%2=newbiechats) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 11)%remove( %left( %trigger, @youpos), %trigger)
};
#IF (%2=racetalk)OR(%2=racetalks) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 2)%remove( %left( %trigger, @youpos), %trigger)
};
#IF (%2=ordertalk)OR(%2=ordertalks)OR(%2=clantalk)OR(%2=clantalks) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 10)%remove( %left( %trigger, @youpos), %trigger);
#CW 10
};
#IF (%2=guildtalk)OR(%2=guildtalks) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 13)%remove( %left( %trigger, @youpos), %trigger);
#CW 13
};
#IF (%2=counciltalk)OR(%2=counciltalks)OR(%2=war)OR(%2=wars) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 12)%remove( %left( %trigger, @youpos), %trigger);
#CW 12
};
#IF (%2=tribetalk)OR(%2=tribetalks) {
#MATH youpos %pos( %1, %trigger)-1;
#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 3)%remove( %left( %trigger, @youpos), %trigger);
#CW 3
}}
#TRIGGER {(%w) {tell|tells} %w '*'} {#MATH youpos %pos( %1, %trigger)-1;#WIN private %ansi( 7)~[@name~] %time( hh:mm) %ansi( 15)%remove( %left( %trigger, @youpos), %trigger)}
#TRIGGER {(%w) tells the group '*'} {#MATH youpos %pos( %1, %trigger)-1;#WIN private %ansi( 7)~[@name~] %time( hh:mm) %ansi( 9)%remove( %left( %trigger, @youpos), %trigger)}
#TRIGGER {(%w) {say|says|exclaim|exclaims|ask|asks} to %w, '*'} {#MATH youpos %pos( %1, %trigger)-1;#WIN private %ansi( grey)~[@name~] %time( hh:mm) %ansi( 11)%remove( %left( %trigger, @youpos), %trigger)}
#CLASS 0
|
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri May 25, 2007 2:53 am |
What's it doing that it shouldn't be, or not doing that it should be? While your #if syntax is unorthodox, it seems to compile okay.
|
|
|
|
Nurodma Beginner
Joined: 10 Oct 2005 Posts: 24
|
Posted: Fri May 25, 2007 2:59 am |
It's very slow, MUCH slower than ZMud when capturing the text, and it almost crashes the program when I try to view the trigger.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri May 25, 2007 3:04 am |
Sounds like your computer isn't up to spec if it's suffering that much just from viewing the setting in the package editor. What are the specs of your system?
One possible optimisation would be to remove the reference to @youpos - you can just put the %pos function right into the #win command in place of the variable. |
|
|
|
Nurodma Beginner
Joined: 10 Oct 2005 Posts: 24
|
Posted: Fri May 25, 2007 3:13 am |
2.4 gHz pentium 4 with 760 mb of ram.
I'm not that great at writing triggers, this one occured to me one day a few months ago and I still don't understand how the hell I wrote it. =S |
|
|
|
Nurodma Beginner
Joined: 10 Oct 2005 Posts: 24
|
Posted: Fri May 25, 2007 3:41 am |
I found the problem, it didn't import correctly from zmud and it's fixed now....
Thanks for helping though. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|