Decal Development Forums Forum Index Decal Development Forums
www.decaldev.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hooks requests
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Decal Development Forums Forum Index -> Decal Development
View previous topic :: View next topic  
Author Message
Digero



Joined: 15 May 2003
Posts: 426

PostPosted: Thu Jan 12, 2006 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Virindi-Inquisitor



Joined: 07 Dec 2005
Posts: 99

PostPosted: Fri Jan 13, 2006 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hazridi
Teh Decal L33T!
Teh Decal L33T!


Joined: 19 Apr 2002
Posts: 1204

PostPosted: Sun Jan 15, 2006 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Digero



Joined: 15 May 2003
Posts: 426

PostPosted: Sun Jan 15, 2006 10:36 am    Post subject: Reply with quote

Wouldn't want you getting bored or anything Very Happy
_________________
http://decal.acasylum.com/
Back to top
View user's profile Send private message Visit poster's website
Pip



Joined: 03 Sep 2003
Posts: 268

PostPosted: Sun Jan 15, 2006 10:41 am    Post subject: Reply with quote

lol

Ty Haz for all the work Smile
Back to top
View user's profile Send private message
Virindi-Inquisitor



Joined: 07 Dec 2005
Posts: 99

PostPosted: Mon Jan 16, 2006 1:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Hazridi
Teh Decal L33T!
Teh Decal L33T!


Joined: 19 Apr 2002
Posts: 1204

PostPosted: Mon Jan 16, 2006 4:00 am    Post subject: Reply with quote

Hadn't really touched that part of AC before. Smile
_________________
This is chemical burn.
Back to top
View user's profile Send private message Send e-mail
ElgarL



Joined: 11 May 2002
Posts: 509
Location: England

PostPosted: Mon Jan 16, 2006 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
GKusnick
Teh Decal L33T!
Teh Decal L33T!


Joined: 28 Apr 2002
Posts: 1348
Location: Seattle

PostPosted: Mon Jan 16, 2006 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Hazridi
Teh Decal L33T!
Teh Decal L33T!


Joined: 19 Apr 2002
Posts: 1204

PostPosted: Mon Jan 16, 2006 2:51 pm    Post subject: Reply with quote

I can get autorun status, but the animation queue is a bitch.
_________________
This is chemical burn.
Back to top
View user's profile Send private message Send e-mail
ElgarL



Joined: 11 May 2002
Posts: 509
Location: England

PostPosted: Mon Jan 16, 2006 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
GKusnick
Teh Decal L33T!
Teh Decal L33T!


Joined: 28 Apr 2002
Posts: 1348
Location: Seattle

PostPosted: Mon Jan 16, 2006 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ElgarL



Joined: 11 May 2002
Posts: 509
Location: England

PostPosted: Tue Jan 17, 2006 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
GKusnick
Teh Decal L33T!
Teh Decal L33T!


Joined: 28 Apr 2002
Posts: 1348
Location: Seattle

PostPosted: Tue Jan 17, 2006 10:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ElgarL



Joined: 11 May 2002
Posts: 509
Location: England

PostPosted: Tue Jan 17, 2006 11:11 pm    Post subject: Reply with quote

Yep I was hoping to steer clear of timing and delay counters.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Decal Development Forums Forum Index -> Decal Development All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group