Guest Posted December 13, 2011 Share Posted December 13, 2011 Hey,This will fix the private message system in EO2.0.I post this fix because of a request from Captain Obvious, btw he is soo obvious…So after this message, the players on your game will be able to pm each other.The fix is only client side.This color means wich mod/form you have to be in.This color means wich function/sub you are going to work with.**This means just a post script(ps.).**@Client:> Client> modInput HandleKeyPresses> **Replace the first code with the second one.**> ```> ' Player message> If Left$(ChatText, 1) = "!" Then> Exit Sub> ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)> Name = vbNullString> > ' Get the desired player from the user text> For i = 1 To Len(ChatText)> > If Mid$(ChatText, i, 1) <> Space(1) Then> Name = Name & Mid$(ChatText, i, 1)> Else> Exit For> End If> > Next> > ChatText = Mid$(ChatText, i, Len(ChatText) - 1)> > ' Make sure they are actually sending something> If Len(ChatText) - i > 0 Then> MyText = Mid$(ChatText, i + 1, Len(ChatText) - i)> ' Send the message to the player> Call PlayerMsg(ChatText, Name)> Else> Call AddText("Usage: !playername (message)", AlertColor)> End If> > MyText = vbNullString> frmMain.txtMyChat.text = vbNullString> Exit Sub> End If> > ``````> ' Player message> If Left$(ChatText, 1) = "!" Then> ChatText = Mid(MyText, 2, Len(MyText) - 1)> Name = ""> > ' Get the desired player from the user text> For i = 1 To Len(ChatText)> If Mid(ChatText, i, 1) <> " " Then> Name = Name & Mid(ChatText, i, 1)> Else> Exit For> End If> Next i> > ' Make sure they are actually sending something> If Len(ChatText) - i > 0 Then> ChatText = Mid(ChatText, i + 1, Len(ChatText) - i)> > ' Send the message to the player> Call PlayerMsg(ChatText, Name)> Else> Call AddText("Usage: !playername msghere", AlertColor)> End If> MyText = ""> frmMain.txtMyChat.text = ""> Exit Sub> End If> > ```> modClientTCP PlayerMsg> **Change The first code to the second one.**> ```> Buffer.WriteLong CSayMsg> > ``````> Buffer.WriteLong CPlayerMsg> > ```EDIT: lol I forgot the PlayerMsg… Link to comment Share on other sites More sharing options...
Justn Posted December 13, 2011 Share Posted December 13, 2011 "obviously" he didnt look hard cause there was already a fixed posted for it… anyways good job on the chest/signs will add it to the index page when i get back in town... i am too scared to try it on my crappy phone cause it will screw it up Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2011 Share Posted December 13, 2011 I didn't try the other fix by my self, but captain obvious tried it, and said that it don't work on EO2.0Btw thnx for adding the signs system… Link to comment Share on other sites More sharing options...
Robin Posted December 13, 2011 Share Posted December 13, 2011 @boynaar:> but captain obvious tried it, and said that it don't work on EO2.0That kid could try and open the map editor and claim it didn't work in EO. 9 times out of 10 people are just stupid. Link to comment Share on other sites More sharing options...
gregnator Posted December 13, 2011 Share Posted December 13, 2011 Justin, the other fix doesnt work, and this works 100% so.@Robin, You do know that im not that of a noob, so its a shame you say this while you know i aint a big ass noob.But if you guys have 2.0 this works the best, so dont be a d!ck to boynaar, his code WORKS 100% in the first try.. the other one doesnt even work in 5 tries. and its for 1.5 the other fix Link to comment Share on other sites More sharing options...
Justn Posted December 14, 2011 Share Posted December 14, 2011 glad this one works not sure what happened with the other one seemed to work for me.. wasnt trying to be a dick to him just wanted to use ur catch phrase and was thanking him for replacing that dumb signs tutorial i posted and the chest system from kibblez :) Link to comment Share on other sites More sharing options...
gregnator Posted December 14, 2011 Share Posted December 14, 2011 Dont worry it was more to robin, because he knows that im not a dumb newb and well, i dont know if he tried to test out the other script that *fixes* the ! system, but this one works 100% for eo 2.0 and the otherone makes it all screwed up, and im glad you used it, you may become my sidekick now justin. Link to comment Share on other sites More sharing options...
RyokuHasu Posted December 14, 2011 Share Posted December 14, 2011 No, he's my sidekick. *smack*On topic: Nice fix! (even thought it was already fixed, kinda)@ Justn: don't forget to update your tut index, there are a lot of new things not listed. Link to comment Share on other sites More sharing options...
Robin Posted December 14, 2011 Share Posted December 14, 2011 @Captain:> Dont worry it was more to robin, because he knows that im not a dumb newb and well, i dont know if he tried to test out the other script that *fixes* the ! system, but this one works 100% for eo 2.0 and the otherone makes it all screwed up, and im glad you used it, you may become my sidekick now justin.You're the epitome of a 'dumb newb'. Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2011 Share Posted December 14, 2011 @R.:> You're the epitome of a 'dumb newb'.I don't want to start a discussion with you, so please don't reply on this.Robin, you are the epitome of a retarded asshole.I don't know how many times I have to say this, but you are not welcome in any topic I creat.Because you may easily do harm, but you can not do good to another. Link to comment Share on other sites More sharing options...
Peter120 Posted March 3, 2012 Share Posted March 3, 2012 If I write !Myname msghere into the chat box then I get this error from server:Run time error 13 type mismatch Link to comment Share on other sites More sharing options...
Xlithan Posted March 3, 2012 Share Posted March 3, 2012 Use my fix. It actually works… :P Link to comment Share on other sites More sharing options...
Peter120 Posted March 4, 2012 Share Posted March 4, 2012 Can you give me a link, please? Link to comment Share on other sites More sharing options...
erkro1 Posted March 4, 2012 Share Posted March 4, 2012 @Peter120:> Can you give me a link, please?Someone really should make a LetMeEclipseSearchThatForYou :PIn the main time, use this Peter120: http://www.touchofdeathforums.com/smf/index.php/topic,68998.0.html 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