| View previous topic :: View next topic |
| Author |
Message |
Digero

Joined: 15 May 2003 Posts: 426
|
Posted: Thu Jan 12, 2006 10:54 pm Post subject: |
|
|
How about an event when the player clicks on green text in the chat window (the text that normally starts a tell), with the option of not actually adding the /tell <name>, text to the chat box. That'd allow a plugin to put clickable messages in the text box. For example, GoArrow could make a link for any coords that it sees in the chat area, and make them clickable to set as the arrow's destination. _________________ http://decal.acasylum.com/ |
|
| Back to top |
|
 |
Virindi-Inquisitor
Joined: 07 Dec 2005 Posts: 99
|
Posted: Fri Jan 13, 2006 8:39 pm Post subject: |
|
|
| Digero wrote: | | How about an event when the player clicks on green text in the chat window (the text that normally starts a tell), with the option of not actually adding the /tell <name>, text to the chat box. That'd allow a plugin to put clickable messages in the text box. For example, GoArrow could make a link for any coords that it sees in the chat area, and make them clickable to set as the arrow's destination. |
Excellent. I was kinda hoping for this myself. _________________ Virindi Inquisitor - Thistledown
http://www.virindi.net/plugins |
|
| Back to top |
|
 |
Hazridi Teh Decal L33T!


Joined: 19 Apr 2002 Posts: 1204
|
Posted: Sun Jan 15, 2006 10:29 am Post subject: |
|
|
That one was more effort than usual.. it actually took me about 40 minutes to find it, and I haven't even written the Decal code for it... you guys suck! _________________ This is chemical burn. |
|
| Back to top |
|
 |
Digero

Joined: 15 May 2003 Posts: 426
|
Posted: Sun Jan 15, 2006 10:36 am Post subject: |
|
|
Wouldn't want you getting bored or anything  _________________ http://decal.acasylum.com/ |
|
| Back to top |
|
 |
Pip
Joined: 03 Sep 2003 Posts: 268
|
Posted: Sun Jan 15, 2006 10:41 am Post subject: |
|
|
lol
Ty Haz for all the work  |
|
| Back to top |
|
 |
Virindi-Inquisitor
Joined: 07 Dec 2005 Posts: 99
|
Posted: Mon Jan 16, 2006 1:50 am Post subject: |
|
|
| Hazridi wrote: | | That one was more effort than usual.. it actually took me about 40 minutes to find it, and I haven't even written the Decal code for it... you guys suck! |
Wow. Hrm. _________________ Virindi Inquisitor - Thistledown
http://www.virindi.net/plugins |
|
| Back to top |
|
 |
Hazridi Teh Decal L33T!


Joined: 19 Apr 2002 Posts: 1204
|
Posted: Mon Jan 16, 2006 4:00 am Post subject: |
|
|
Hadn't really touched that part of AC before.  _________________ This is chemical burn. |
|
| Back to top |
|
 |
ElgarL

Joined: 11 May 2002 Posts: 509 Location: England
|
Posted: Mon Jan 16, 2006 2:28 pm Post subject: |
|
|
Heres one...
Currently you can set AutoRun = True/False.
Can we get a Hook so we can see if we are still, or are already running? |
|
| Back to top |
|
 |
GKusnick Teh Decal L33T!


Joined: 28 Apr 2002 Posts: 1348 Location: Seattle
|
Posted: Mon Jan 16, 2006 2:50 pm Post subject: |
|
|
Elgar, that one exists already if you know where to look:
| Code: | ' DWORD offsets of interesting fields within Hooks.CommandInterpreter:
Private Const idwMove As Long = 3 ' Forward/backward motion.
Private Const idwTurn As Long = 6 ' Left/right turn in place.
Private Const idwStrafe As Long = 9 ' Sideways motion.
Private Const idwShift As Long = 15 ' True if Shift key is down.
Private Const idwAutorun As Long = 18 ' True if Autorun is on.
Private Function AutorunOn() As Boolean
Dim dwAutorun As Long
Call CopyMemFromPv(dwAutorun, _
Hooks.CommandInterpreter + idwAutorun * Len(dwAutorun), _
Len(dwAutorun))
AutorunOn = (dwAutorun <> 0)
End Sub |
Your other option of course is to monitor the Autorun ON/OFF messages in Hooks.StatusTextIntercept. _________________ -- Greg |
|
| Back to top |
|
 |
Hazridi Teh Decal L33T!


Joined: 19 Apr 2002 Posts: 1204
|
Posted: Mon Jan 16, 2006 2:51 pm Post subject: |
|
|
I can get autorun status, but the animation queue is a bitch. _________________ This is chemical burn. |
|
| Back to top |
|
 |
ElgarL

Joined: 11 May 2002 Posts: 509 Location: England
|
Posted: Mon Jan 16, 2006 3:20 pm Post subject: |
|
|
What is CopyMemFromPv?
I know what CopyMemory is, but I cant find a reference to yours anywhere.
Would it be an encapsulation of ReadProcessMemory?
| Code: | | Call ReadProcessMemory(lACProcess, PluginSite.Hooks.CommandInterpreter + idwAutorun * Len(dwAutorun), dwAutorun, Len(dwAutorun)) |
|
|
| Back to top |
|
 |
GKusnick Teh Decal L33T!


Joined: 28 Apr 2002 Posts: 1348 Location: Seattle
|
Posted: Mon Jan 16, 2006 3:36 pm Post subject: |
|
|
No, it's just a variation of CopyMemory that takes a pointer (i.e. a VB6 Long) as its second argument. The standard definition of CopyMemory takes two Anys and a byte count, but that's not useful if you want to copy from a calculated memory address. So:
| Code: | Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(Destination As Any, Source As Any, ByVal cb As Long)
Declare Sub CopyMemFromPv Lib "kernel32" Alias "RtlMoveMemory" _
(Destination As Any, ByVal pvSource As Long, ByVal cb As Long) |
Sorry, I guess that part wasn't as self-explanatory as I thought.
(If it's your own memory you're reading from, ReadProcessMemory is overkill.) _________________ -- Greg |
|
| Back to top |
|
 |
ElgarL

Joined: 11 May 2002 Posts: 509 Location: England
|
Posted: Tue Jan 17, 2006 7:42 pm Post subject: |
|
|
GK, is there an offset for when approaching an object?
Ie, stand away from a vendor or a portal, and use it. You'll walk/run towards the item. None of the offsets you listed show any movement for that.
I need to know if the client thinks I'm moving. It doesn't matter what the server thinks. |
|
| Back to top |
|
 |
GKusnick Teh Decal L33T!


Joined: 28 Apr 2002 Posts: 1348 Location: Seattle
|
Posted: Tue Jan 17, 2006 10:58 pm Post subject: |
|
|
CommandInterpreter doesn't have that info. CommandInterpreter is pretty much what it sounds like: the client's notion of what motion commands are in effect.
If you just want to know whether you're moving at all, never mind why, one possibility might be to track the outgoing F7B1/F753 message, which is the client's way of telling the server where it thinks you are. Or poll Hooks.LocationX and .LocationY to see if they're changing. _________________ -- Greg |
|
| Back to top |
|
 |
ElgarL

Joined: 11 May 2002 Posts: 509 Location: England
|
Posted: Tue Jan 17, 2006 11:11 pm Post subject: |
|
|
| Yep I was hoping to steer clear of timing and delay counters. |
|
| Back to top |
|
 |
|