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
➜ General
➜ Fishing Delema
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| HealingFlame
USA (11 posts) Bio
|
| Date
| Sat 25 Mar 2006 06:07 PM (UTC) Amended on Sat 25 Mar 2006 06:19 PM (UTC) by HealingFlame
|
| Message
| Ok, iam on a mud, and there is a fishing ability with nets and poles and such.
And scripting is allowed but, noone wants to give up their script for it and it kinda sucks.
What I have been trying to use are triggers, and of course triggers arent working unless it hits the right one and using mild wildcards like * and %1 and such arent doing the job.
What I would like help with or if somone can make for me, i know this is going to be hard well for me that is. Is to make one for me by anychance.
Here is the basic things that I have gotten.
When on the Shore I can use:
net scan
When that pops up I see:
[->-------]
Now the > can range from in between the [] all around
the '-'
Usually I have it set to type 'net throw' which then the net sinks and it randomly time intervals to sink when it sinks i see this:
[#--------]
Which also goes across the --'s, when I get to the '>' above after i type net scan, i have to type 'net pull', which is fine for the trigger but I can only make 1 trigger and hopefully I will get 2 in a row which I dont ever do.
After I type 'net pull I get this:
net pull
You pull up your net:
And find 23 minnows 1 lobster and 15 crawfish inside of it!
Than after that goes through it types: 'net scan' from the trigger of:
And find * * inside of it!
Which thankfully I didnt need to lable every kinda sea food on there.
Can anyone help me, What iam thinking is that it seend a variable to temporly either put something into memory form the [->-------] so when the [#--------] gets to [-#-------] it will type 'net pull', I didnt think scripts can look at what was previous or keep in memory of what was used last like that. BUt I think it can be done from other posts I have seen from other type of things, which I tried to adapt to mine which dont work aorrectly. Since It isnt seeing what was the real one before hand to pull when it hits that.
I heep you can help guys.
Please and Thank you
-HF
*EDIT*
Oh BTW if I fail, if i lag or anything, and I type the 'pull net' either to early or to soon or what ever I get this:
You pull up your net:
But have nothing to show in it.
Then I type after that:
net scan
or
Your net lands on the bottom, you pull it back up with nothing in the darn thing.
Then it shoudl start all over again hopefully. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 25 Mar 2006 07:39 PM (UTC) |
| Message
| The trigger that would match the square brackets with the hyphens etc in it would be:
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="^\[[>\-#]{9}\]"
regexp="y"
sequence="100"
>
</trigger>
</triggers>
Quote:
I didnt think scripts can look at what was previous or keep in memory of what was used last like that.
Scripts can store things in memory for the life of the script. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| HealingFlame
USA (11 posts) Bio
|
| Date
| Reply #2 on Sat 25 Mar 2006 11:12 PM (UTC) |
| Message
| Ok I tried it, but dor some reason it doesnt work.
ALl it does is reads on the first:
[#--------]
I thought it was supposed to read when I type:
net scan
and get
[-------->]
then script will watch the cycle:
[#--------]
[-#-------]
[--#------]
[---#-----] etc...
till it hits:
[--------#]
then types:
net pull
when it hits:
[-------->]
Or any varitaion of:
[--->-----]
Then the script will watch till it hits:
[---#-----]
Then types:
net pull
Can this be done? I didnt think it can be done though it is to complicated, and prob memory intensive.
Thank you Nick for the Help, I think i was to stupid to fully explain what exactly what was going on I do apologize.
Thank you, hopefully you are still willing to help.
-HF | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sun 26 Mar 2006 04:27 AM (UTC) |
| Message
| You explained it OK, but is goes beyond the scope of the assistance I can offer to actually write everyone's scripts for them.
I gave a sample of what trigger would match, and assured you that you could save variables for future use.
It can be done, and it would be fast, and not use too much memory. Perhaps someone can help you, or you could just start slowly and gradually develop it yourself. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| HealingFlame
USA (11 posts) Bio
|
| Date
| Reply #4 on Sun 26 Mar 2006 09:49 AM (UTC) |
| Message
| Ok thank you very much. I really do appreciate the help, hopefully i can figure it out, since iam not that bright when it comes to things like this.
Thank you again, hopefully someone can help too.
-HF | | 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.
16,417 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top