Growlith1223 Posted November 17, 2012 Author Share Posted November 17, 2012 Ok so i was bored…and i made this system lolgo into ModInput and goto the Select Case and after```Case "/help"Call AddText("Social Commands:", HelpColor)Call AddText("'msghere = Broadcast Message", HelpColor)Call AddText("-msghere = Emote Message", HelpColor)Call AddText("!namehere msghere = Player Message", HelpColor)Call AddText("Available Commands: /info, /who, /fps, /fpslock", HelpColor)```Add```Case "/status"Select Case UBound(Command)Case 1Status = Command(1)Case 2Status = Command(1) & " " & Command(2)Case 3Status = Command(1) & " " & Command(2) & " " & Command(3)Case 4Status = Command(1) & " " & Command(2) & " " & Command(3) & " " & Command(4)End SelectSet Buffer = New clsBufferBuffer.WriteLong CStatusBuffer.WriteString StatusSendData Buffer.ToArraySet Buffer = Nothing```Then In ModHandleData, in Sub HandlePlayerData add```Player(Index).Status = Buffer.ReadString```After```Call SetPlayerPK(i, Buffer.ReadLong)```Once done, go and add```Status As String```In the PlayerRec Do the same for Server SideAlso Go into modEnumerations and add CStatus in the Client packets same for Server side as wellGo into ModText and goto DrawPlayerName replace```Name = Trim$(Player(Index).Name)```With```If Len(Trim$(Player(Index).Status)) <= 0 ThenName = Trim$(Player(Index).Name)ElseName = Trim$(Player(Index).Name) & "[" & Trim$(Player(Index).Status) & "]"End If```**Server Side**Goto ModHandleData and Add```HandleDataSub(CStatus) = GetAddress(AddressOf HandleSetStatus)```Under all the other MessagesThen Add This sub at the bottom```Private Sub HandleSetStatus(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)Dim Buffer As clsBufferDim Status As StringDim Result As StringSet Buffer = New clsBufferBuffer.WriteBytes Data()Status = Buffer.ReadStringResult = StatusCall SetPlayerStatus(Index, Result)Call SendPlayerData(Index)Set Buffer = NothingEnd Sub```Then, go to Sub PlayerData And add```Buffer.WriteString Player(Index).Status```Under the GetPlayerPK oneThat should be it…Lemme know if any errors come up! :3Screenshot![](http://www.freemmorpgmaker.com/files/imagehost/pics/8add6a0440324149e8a6d2b60a9ee537.png)EDIT: i have made a mistake, go into ModInput and add```Dim Status As String * 20```and that should complete everything and also should add a char count limiterEDIT2:Ok i forgot a sub…In modPlayer in the server, add this to the bottom of it```Sub SetPlayerStatus(ByVal index As Long, Status As String)Player(index).Status = StatusEnd Sub``` Link to comment Share on other sites More sharing options...
narut0no Posted November 17, 2012 Share Posted November 17, 2012 What Status system mean..? You should give a Description about this System… ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)BTW nice work you can make the System ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Matt Posted November 17, 2012 Share Posted November 17, 2012 Looks good! Thanks for sharing! Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2012 Share Posted November 17, 2012 Instead of doing all the Ifs in the /status case, why not just put them all into a Select Case? It's much faster ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png). Link to comment Share on other sites More sharing options...
tslusny Posted November 17, 2012 Share Posted November 17, 2012 So you posted it growl? Nice ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Link to comment Share on other sites More sharing options...
Growlith1223 Posted November 17, 2012 Author Share Posted November 17, 2012 > Instead of doing all the Ifs in the /status case, why not just put them all into a Select Case? It's much faster ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png).Yea i figured that would be a whole lot faster x3Lemme update the original post for that. Thanks for that though!> Looks good! Thanks for sharing!Thanks! Link to comment Share on other sites More sharing options...
abhi2011 Posted November 21, 2012 Share Posted November 21, 2012 What does this do? Set the player a status? Like PlayerName_. Looks good._ Link to comment Share on other sites More sharing options...
Ertzel Posted November 21, 2012 Share Posted November 21, 2012 Yes, it basically adds text to the right of your name wrapped inside of the [ ]'s Link to comment Share on other sites More sharing options...
Growlith1223 Posted November 22, 2012 Author Share Posted November 22, 2012 You can also use this system for other features(AFK, mute, etc.) Link to comment Share on other sites More sharing options...
Zzbrandon Posted November 22, 2012 Share Posted November 22, 2012 Status: Trolololo Link to comment Share on other sites More sharing options...
hisherwin Posted November 22, 2012 Share Posted November 22, 2012 Did this tut include the remove status? Link to comment Share on other sites More sharing options...
Growlith1223 Posted November 22, 2012 Author Share Posted November 22, 2012 just type a /status with nothing else and it will erase the status Link to comment Share on other sites More sharing options...
Zzbrandon Posted November 22, 2012 Share Posted November 22, 2012 I using Dragon Eclipse would this appear by the Level Status? Link to comment Share on other sites More sharing options...
abhi2011 Posted November 22, 2012 Share Posted November 22, 2012 Most probs yea. It will work just like it worked on the screenshot. I.E if DE uses a string from which it renders the name text. Link to comment Share on other sites More sharing options...
hisherwin Posted November 23, 2012 Share Posted November 23, 2012 Error , when i type /status , the apperance is PlayerName[SpaceSpaceSpaceSpaceSpaceSpaceSpaceSpace] Long Name ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)Change the Space into " " Link to comment Share on other sites More sharing options...
iSnow Posted November 23, 2012 Share Posted November 23, 2012 There is a hover for player name tutorial around here I believe, I would recommend adapting it to show status only if hovered. Just me. 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