|
ToyBear Beginner
Joined: 04 Sep 2003 Posts: 25 Location: Singapore
|
Posted: Fri Sep 19, 2003 11:18 am
2 Questions: Fine Tuning |
I'm using the below to remove characters, it looks awfully long.
Can i fine tune it?
-----------------------------
questmob=%1
questmob=%replace(@questmob,"a ","")
questmob=%replace(@questmob,"A ","")
questmob=%replace(@questmob,"an ","")
questmob=%replace(@questmob,"An ","")
questmob=%replace(@questmob,"the ","")
questmob=%replace(@questmob,"The ","")
-----------------------------------------
Below is a trigger that is suppose to tell my my quest time remain every 1 minute. However i noticed once the loop is started, I don't know how to get it stopped. I tried turning it's class folder off, however it still continues to #loop for %1 times.
#loop %1 {#Wait 60000;#add questtime -1;#SHOW %ansi(white)Quest Time remaining: @questtime |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Sep 19, 2003 4:59 pm |
questmob=%1
questmob=%replace(%lower( @questmob),"a ","")
questmob=%replace(%lower( @questmob),"an ","")
questmob=%replace(%lower( @questmob),"the ","")
Don't use #WAIT in triggers. Zugg has an article in the Support Library section explaining why. I'd recommend using a permanent alarm which can be enabled/disabled with #T+/#T-.
#ALARM questtimer -60 {#ADD questtime -1;#SHOW %ansi(white)Quest Time remaining: @questtime;#IF (@questtime <= 0) {#T- questtimer}} {} {disable}
And change the trigger to something like:
#VAR questtime %1;#T+ questtimer |
|
|
|
|
|
|
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
|
|