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
➜ Getting variables from ATCP info?
|
Getting variables from ATCP info?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #15 on Tue 23 Nov 2010 02:58 AM (UTC) |
| Message
| | What I posted is my code. That's my whole script file, not including anything from plugins. |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #16 on Tue 23 Nov 2010 03:10 AM (UTC) |
| Message
| | You've lost me a bit there, because the OnPluginBroadcast only works inside a plugin. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #17 on Tue 23 Nov 2010 03:13 AM (UTC) |
| Message
| | Well then that must be my problem. You see, I thought that meant when the ATCP plugin broadcasts to other pluginsit captures information. Hence the ID which I figured must point to the ATCP plugin |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #18 on Tue 23 Nov 2010 03:15 AM (UTC) |
| Message
| Yes it does. But the receiver must also be a plugin. So this code must be in a plugin:
function OnPluginBroadcast (msg, id, name, text)
if id == "85f72d0e263d75df7bde6f00" then
if msg == 1 then
got_vitals (text)
end -- if
end -- if ATCP message
end
And since that would only fire inside a plugin, I'm not sure why got_vitals is being called at all, unless you are calling it yourself. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Faedara
(106 posts) Bio
|
| Date
| Reply #19 on Tue 23 Nov 2010 03:19 AM (UTC) |
| Message
| Well in better news:
I've made a semi-stable functioning AutoSipperAlpha
It's basically what I'm trying to do here but without ATCP integration or advanced scripting.
I'm working out a lot of bugs though, and I don't know what's going to happen when I'm out of health vials, so I'm working on getting to that point. |
The eternally clueless <3
Currently looking for a mentor/tutor to help me learn everything about Lua from the ground up. I can't understand 28*41 until I learn what causes 2+2. | | 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.
80,033 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top