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
➜ Lua
➜ changing triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| FishOnSpeed
USA (31 posts) Bio
|
| Date
| Mon 26 Nov 2007 07:57 PM (UTC) |
| Message
| ok ... is this possible.
i need to be able to have triggers check what is being aucioned and tell me what the stats are on it.
but the output from the mud is always a little different
how could i do this.
|
~FishOnSpeed | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 27 Nov 2007 01:22 AM (UTC) |
| Message
| | It would help to post examples of the output. So far your question is extremely general. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| FishOnSpeed
USA (31 posts) Bio
|
| Date
| Reply #2 on Tue 27 Nov 2007 05:00 PM (UTC) Amended on Tue 27 Nov 2007 07:54 PM (UTC) by Nick Gammon
|
| Message
|
| Desc : A Two-Handed Bastard Sword |
| Type : Weapon Level : 25 |
| Worth : 250 Weight : 8 |
| Wearable : take wield |
| Flags : auctioned v3 |
| Weapon Type: sword Damage : 8d4 |
| Inflicts : chop Average: 20 |
| Specials : two-handed |
| Desc : the Crest of Wood |
| Type : Armor Level : 1 |
| Worth : 6 Weight : 1 |
| Wearable : take shield |
| Flags : magic auctioned v3 |
| Armor : Pierce : 0 Bash : 2 |
| Slash : 3 Magic : 0 |
| Stat Mods : Constitution : +1 |
| Desc : a hallowed light |
| Type : Light Level : 1 |
| Worth : 0 Weight : 3 |
| Wearable : take |
| Flags : glow magic bless auctioned v3 |
| Stat Mods : Hit roll : +3 |
| Desc : Mithril Bastard Sword |
| Type : Weapon Level : 20 |
| Worth : 300 Weight : 6 |
| Wearable : take wield |
| Flags : magic auctioned v3 |
| Weapon Type: sword Damage : 4d7 |
| Inflicts : slash Average: 16 |
| Specials : sharp |
| Desc : Wild Flower Pollen |
| Type : Potion Level : 10 |
| Worth : 0 Weight : 1 |
| Wearable : take |
| Flags : glow hum magic auctioned v3 |
| Spells : |
| Level 10 spell of 'cure light' |
| Level 10 spell of 'cure light' |
| Level 10 spell of 'cure light' |
and there are many more possibilities
|
~FishOnSpeed | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #3 on Tue 27 Nov 2007 06:09 PM (UTC) |
| Message
| | What exactly are you trying to extract there? It looks like the information is fairly compact already. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| FishOnSpeed
USA (31 posts) Bio
|
| Date
| Reply #4 on Tue 27 Nov 2007 06:24 PM (UTC) |
| Message
| what im wanting to do is pick up the stats and such of the items and then compare them to variables that i have preset. then tell me wether or not i need to bother bidding on it ... or looking at it.
so say im a level 10 with a body equip that has +2 str
and someone auctions a level 9 body with +3 str
i want it to tell me that there is a better item than what i have being auction ... and any other items to just not show up at all
|
~FishOnSpeed | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Tue 27 Nov 2007 08:03 PM (UTC) |
| Message
| It can be done, it will be a bit fiddly because the output is fiddly.
From your example output I would make a trigger that matches on the first line (Desc : <something> ) which turns on further triggers which match the other lines. You then need to collect the stats as they roll by (storing them in variables). Once the item is finished (by the look of it, by a blank line) then you could look at the variables and start comparing things. Then disable the middle lines, and wait for a new item to appear. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| FishOnSpeed
USA (31 posts) Bio
|
| Date
| Reply #6 on Tue 27 Nov 2007 09:30 PM (UTC) |
| Message
| ahh that sounds messy .. guess if its the only way then thats how im going to have to do it .. thanks
|
~FishOnSpeed | | 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.
19,818 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top