Page 1 of 1

Reading NPC chats

Posted: Sun Sep 30, 2012 12:43 pm
by radulfizz
Hi all,

some NPC's do some chat that doesnt appear in the chatlog
(like during quest 'video' sequences or some of the festival events),
it's just the bubbles over their heads.
Any idea if this appears in some sort of event or is somehow readable?
I couldnt find anything.

Thx for any input :)

Re: Reading NPC chats

Posted: Sun Sep 30, 2012 1:00 pm
by rock5
I thought bubbles only appear for 'says' and might not appear in chat if the bubble is visible on the screen. I could be wrong though.

Re: Reading NPC chats

Posted: Sun Sep 30, 2012 1:08 pm
by radulfizz
These bubbles i'm referring to, are like the NPC's 'saying' things, just that nothing shows up in chatlog.
Like at theatre event during fairytale event. Or some of the bartending events now.
No logs, even if I look the other way ;)

Re: Reading NPC chats

Posted: Sun Sep 30, 2012 1:25 pm
by rock5
Yeah, I know. I've noticed it too because sometimes I'm trying to read something funny my pet is saying but I can't make it out because if all the rubbish on the screen. So I looked to chat in the hopes of seeing it there but it never is. It's a bit annoying.

I don't do much chatting so I'm not sure if peoples comments appear in bubbles or not but if they do I'm pretty sure it will only be for 'say' messages.

Re: Reading NPC chats

Posted: Sun Sep 30, 2012 5:27 pm
by dx876234
I've been trying to figure it out, I can't find any events fired due to these chats. Lookes like SAY but nothing in chat logs nor events.

Found strings located in 0x3A5E9FF8 though, should be able to read them out there, it's a \0 terminated string. I'll have a search for pointers.

To read it I use something like:

Code: Select all

			-- Handle event
			arg1 = nil
			repeat
				arg1 = memoryReadString( getProc(), 0x3A5E9FF8)
				if arg1 and arg1 ~= oarg1 then
But ofc this is an issue for the server event where multiple npcs are talking and we need to target the right one :(

-dx

Re: Reading NPC chats

Posted: Mon Oct 01, 2012 4:34 am
by dx876234
Hmm turnes out I picked the string out from the sprint char buffer..

-dx

Re: Reading NPC chats

Posted: Mon Oct 01, 2012 5:04 am
by rock5
My guess is you can't get those messages from memory. I remember trying to get chat messages from memory but couldn't do it. I suspect those would be just as difficult.

Re: Reading NPC chats

Posted: Mon Oct 01, 2012 10:57 am
by dx876234
Ye, I made a wp for one event, got it working but needed to re-find the address everytime I restarted the client...


-dx

Re: Reading NPC chats

Posted: Mon Oct 01, 2012 11:15 am
by dx876234
If any1 has any ideas, here is the waypoint...it's for bartender for a day in central plaza

-dx

Re: Reading NPC chats

Posted: Mon Oct 01, 2012 11:36 am
by rock5
That address is no good. The game memory starts around 500,000 hex. Everything below that is... well I'm not sure... system memory maybe. But you definitely can't find a pointer for it. Static pointers start around 900000. You probably wont find anything below that that you can use.