Log in

View Full Version : Events - system (green messages) detect



Gammer
09-24-2015, 17:16
Hi there! Recently I started playing on 7.6-7.72 otservers and I discover that events module doesnt detect green messages like "You see an apple." So how should I edit source to make it work?


Case oldmessage_H10
' monster say
lonN = GetTheLong(packet(pos + 6), packet(pos + 7))
pos = pos + 8
tmpStr = ""
For itemCount = 1 To lonN
tmpStr = tmpStr & Chr(packet(pos))
pos = pos + 1
Next itemCount
If (itsMe = False) Then
var_lastsender(idConnection) = nameofgivenID
var_lastmsg(idConnection) = tmpStr
ProcessEventMsg idConnection, subType
End If

I found this part in blackd source and want to edit this part (im not using events on monsters) to make it work with green messages.
There is one sniffed packet (green message 'You see..):

GAMESERVER1<( hex ) 19 00 B4 16 15 00 59 6F 75 20 73 65 65 20 61 20 72 61 63 65 20 74 72 61 63 6B 2E