[Q] Notice-like information

Is it possible to add a message to our plugin that only we can see in the game? Notice-like or as a chat message.

Screenshot_2
Screenshot_1

Sure.

from phBot import *
import struct

# Inject Packet to Client - Notice Message
def InjectClient_SendNotice(message):
	# Type Notice
	p = struct.pack('B',7)
	p += struct.pack('H', len(message))
	p += message.encode('ascii')
	inject_silkroad(0x3026,p,False)

My bad, I think there is no inject to client API function.

:star_struck: You’re the best.

For example, can you say “Hello” as an example? Because I couldn’t fully understand how it works. Or how can we direct it when something happens?

Conditions: If xxx then pyhon(sayhello)

def sayhello():
InjectClient_SendNotice(“hello”)