cowin000 Posted February 18, 2011 Author Share Posted February 18, 2011 Does anyone know how to make the text appear on the map when Im talking. Im using the newest version of eclipse origins if that helps any :sad: Link to comment Share on other sites More sharing options...
Richy420Rich Posted February 18, 2011 Share Posted February 18, 2011 ```Sub SendActionMsg(ByVal mapNum As Long, ByVal message As String, ByVal color As Long, ByVal MsgType As Long, ByVal x As Long, ByVal y As Long, Optional PlayerOnlyNum As Long = 0)```Only one I know right now. Link to comment Share on other sites More sharing options...
cowin000 Posted February 18, 2011 Author Share Posted February 18, 2011 Dude Richy…....Your always there when I need help. :cheesy: AND YET AGAIN you hae helped me solv my problem. Cheers mate :cheesy: Link to comment Share on other sites More sharing options...
BugSICK Posted February 18, 2011 Share Posted February 18, 2011 chat on map? in txtrichbox? what chat on map. pls explain, maybe i can use this in my game. thanks Link to comment Share on other sites More sharing options...
opyeyee Posted February 18, 2011 Share Posted February 18, 2011 I just have a question, where would you put that code? Link to comment Share on other sites More sharing options...
Richy420Rich Posted February 18, 2011 Share Posted February 18, 2011 You'd have to send a packet to the server to grab the SendActionMsg to send back to the client… Not sure if it's really worth the trouble but I can write it up. Link to comment Share on other sites More sharing options...
Richy420Rich Posted February 18, 2011 Share Posted February 18, 2011 CLIENT SIDEmodEnumerationsAdd in to the bottom of C's (above the last one)```CActionMsg```modClientTCP```Public Sub SendActionMsg(ByVal text As String)Dim Buffer As clsBufferDim text As String ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteLong CActionMsg Buffer.WriteString text SendData Buffer.ToArray() Set Buffer = Nothing ' Error handler Exit Suberrorhandler: HandleError "PlayerMsg", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```SERVERmodEnumerations;Add in to the bottom of C's (above the last one)```CActionMsg```modHandleData ; InitMessagesAdd to the bottom of InitMessages```HandleDataSub(CActionMsg) = GetAddress(AddressOf HandleActionMsg)```modHandleData```Sub HandleActionMsg(ByVal index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)Dim Buffer As clsBufferDim text As StringSet Buffer = New clsBuffer Buffer.WriteBytes Data()text = Buffer.ReadStringSendActionMsg GetPlayerMap(index), Trim(text), White, 1, (GetPlayerX(index) * 32), (GetPlayerY(index) * 32)Set Buffer = NothingEnd Sub```Then just put the Call SendActionMsg(Msg) in the modInput - HandleKeyPresses(This is offhand, so I didn't test it. debug with it if there's any problems. Shouldn't be however. Link to comment Share on other sites More sharing options...
cowin000 Posted February 18, 2011 Author Share Posted February 18, 2011 ….............your amazing mate....CHEERS :cheesy:.You have helped me with Quests, Scripted Items.Tiles when I dident understand it. Yo have helped me make a flash video feature, and all on ur own time. I thanks u a million for all this :cheesy: :cheesy: Link to comment Share on other sites More sharing options...
Dzastin Posted February 18, 2011 Share Posted February 18, 2011 don't work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now