EclipseCommunity Posted February 13, 2011 Author Share Posted February 13, 2011 **Please note:** My game uses **/p** instead of the original **!** command. I have posted this tutorial using **/p** but you can change it back if you like. Just don't forget to update your **/help** command to show the new player message command if you wish to keep **/p**.**CLIENT**Find:```' Player message```Replace that whole section with this:```' Player message If Left$(ChatText, 3) = "/p " Then ChatText = Mid$(ChatText, 4, Len(ChatText) - 3) 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 ' 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: /p playername (message)", AlertColor) End If MyText = vbNullString frmMain.txtMyChat.text = vbNullString Exit Sub End If```Find **Buffer.WriteLong CSayMsg** in **Sub PlayerMsg**Replace with:```Buffer.WriteLong CPlayerMsg```**SERVER**Find **Call PlayerMsg(GetPlayerName(index), "Cannot message yourself.", BrightRed)** in **Sub HandlePlayerMsg** and replace with:```Call PlayerMsg(index, "Cannot message yourself.", BrightRed)```Done :) Link to comment Share on other sites More sharing options...
Marsh Posted February 14, 2011 Share Posted February 14, 2011 Niche bug fix :) Link to comment Share on other sites More sharing options...
Tvirus06 Posted February 14, 2011 Share Posted February 14, 2011 Ooo. Whats about this fix? what it actually fix.. I never heard of Player message bug.Edit: I cant seem to find this code no where in 1.5.0 EO.```Call PlayerMsg(GetPlayerName(index), "Cannot message yourself.", BrightRed)``` Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 14, 2011 Author Share Posted February 14, 2011 Sorry, forgot to mention that last line is in the server.@SnowFox:> Ooo. Whats about this fix? what it actually fix.. I never heard of Player message bug.It fixes the command that sends a private message to another player. Link to comment Share on other sites More sharing options...
Tvirus06 Posted February 14, 2011 Share Posted February 14, 2011 Thanks, bro :).If you manage to fix the tileset bugs.. please release Xd. Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2011 Share Posted February 14, 2011 I'm guessing it was stopped because it clashed with the 'PlayerMsg' call. Also, I tried this out, with "@", and it just came up with [Map]Sekaru: @Noob hi Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 There was a reason for the 'Exit Sub', it needs sorting out. So if you want to really call this a fix then you should fix the actual problem. Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Author Share Posted February 15, 2011 I DID fix the problem, hence the tutorial? Idiot. :mad: Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Author Share Posted February 15, 2011 @Sekaru:> I'm guessing it was stopped because it clashed with the 'PlayerMsg' call. Also, I tried this out, with "@", and it just came up with [Map]Sekaru: @Noob hiYou don't just change the command string, you need to change these values:If Left$(ChatText, **3**) = "/p " Then ChatText = Mid$(ChatText, **4**, Len(ChatText) - **3**) Link to comment Share on other sites More sharing options...
Jeff Posted February 15, 2011 Share Posted February 15, 2011 @SnowFox:> Thanks, bro :).> > If you manage to fix the tileset bugs.. please release Xd.wat. There's no tileset bug. EO just manages its tilesets in a way that has problems when the tileset is huge.Anyways, looks very nice. I like that you can change it easily(even though All of EO has this ease xD) Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Author Share Posted February 15, 2011 @Jeff:> Anyways, looks very nice. I like that you can change it easily(even though All of EO has this ease xD)The way commands are currently coded hasn't changed since Mirage Source 3.0.3 Link to comment Share on other sites More sharing options...
Robin Posted February 15, 2011 Share Posted February 15, 2011 @Xlithan:> Regardless. I couldn't find a fix for it in the forums. Some people need to realise that there ARE people on this forum who struggle to fix simple things like this, and require the assistance of more experienced programmers to help them.He meant to say 'nice'. xD Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Author Share Posted February 15, 2011 I don't know what you're talking about… Link to comment Share on other sites More sharing options...
Robin Posted February 15, 2011 Share Posted February 15, 2011 @Xlithan:> Niche would have made just as much sense lol!Who the hell would call a bug fix 'niche'? xD Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Author Share Posted February 15, 2011 I don't know what you're talking about… Link to comment Share on other sites More sharing options...
beastage123 Posted March 2, 2011 Share Posted March 2, 2011 ok so in the server is it supposed to be (index)? or (index? Link to comment Share on other sites More sharing options...
beastage123 Posted March 3, 2011 Share Posted March 3, 2011 What am i doing wrong? it says Not a Valid Command.. D: Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 3, 2011 Share Posted March 3, 2011 Did you edit and compile the client with Visual Basic 6\. (Enterprise or Professional, no, VB10 or VB8 will not work.) Link to comment Share on other sites More sharing options...
beastage123 Posted March 3, 2011 Share Posted March 3, 2011 no i dont know how to get that D: dw i wont ask :x Link to comment Share on other sites More sharing options...
EclipseCommunity Posted March 4, 2011 Author Share Posted March 4, 2011 @beastage123:> ok so in the server is it supposed to be (index)? or (index?What are you talking about? Copy and paste… simples... Link to comment Share on other sites More sharing options...
Whackeddie99 Posted March 30, 2011 Share Posted March 30, 2011 ugh idk why but when i Put all this stuff in exactly, it says when i type in /p (playersname) and then a message it says [Map]Tester: (playersname).Idk whats wrong I checked over a thousand times, and also when I just regularly type anything like blah it says Player not online. and when i type t is says Cannot message yourself any help? Link to comment Share on other sites More sharing options...
beastage123 Posted March 30, 2011 Share Posted March 30, 2011 @Whackeddie99:> ugh idk why but when i Put all this stuff in exactly, it says when i type in /p (playersname) and then a message it says [Map]Tester: (playersname).> > Idk whats wrong I checked over a thousand times, and also when I just regularly type anything like blah it says Player not online. and when i type t is says Cannot message yourself any help?*facepalm*…THATS BECAUSE NOBODY IS ON YOUR GAME AND WHEN YOU MESSAGED YOUR SELF IT OBVIOUSLY WILL SAY "Cannot message yourself"EDIT: oh i feel dumb i just reread your post my bad man ^^ Link to comment Share on other sites More sharing options...
EclipseCommunity Posted March 31, 2011 Author Share Posted March 31, 2011 Check the code is correct. This is the first thing I did for 1.5.0 and it worked perfect for me. Link to comment Share on other sites More sharing options...
Whackeddie99 Posted April 2, 2011 Share Posted April 2, 2011 using 2.0, is that why its not working? Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2011 Share Posted April 2, 2011 Works fine in 2.0\. It's a simple copy and paste job, honestly. 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