#convo api

1 messages · Page 1 of 1 (latest)

tidal sable
#

lets talk here

prisma fog
#

Message prompts never wait for input, but I believe you can make it wait somehow

#

Would need to check the docs

prisma fog
#

You might want to design a light api around conversations I guess that make it work more like how you want, such as automatically setting up an event to wait for a shift press to move on to the next prompt and whatnot.

tidal sable
#

Well setting up something so it only sends after a shift I know how to do

#

I’m wondering how to make the old part go away

#

I’m thinking a map of UUIDs and arrays

#

The array holds all the messages the player has seen

#

Then you can send your first message, then clear the chat, send the chat history and send your new message

#

Is there some more efficient method you can think of

#

Also I’m not sure how to get what chat messages the player has received

prisma fog
#

any chat events that come in while they are in a conversation or whatever are what need to be replayed to them after their conversation ends

prisma fog
#

clearing the screen and replaying something is going to be either 1) sending a shitload of blank lines or 2) using the custom message deletion packet md_5 mentioned the other day

#

I've only used 1

tidal sable
#

Is there a message delete packet or only a chat clear packet

prisma fog
#

there's a message delete packet, not a chat clear

#

only for messages that have signatures though apparently, not sure how you would go about sending that packet however

tidal sable
#

Also that means you need chat reporting on

#

They must do the method I came up with or something like that since wynncraft is run on 1.12

tidal sable
#

Is there a way to override whenever a plug-in runs Player#sendMessage() so that I can register it in my chat-history

#

I’ve got an idea

#

Do you know any software or mod or something so I can see the packets sent between the server and client

#

So I can verify they are clearing the chat