Yxxe Posted September 2, 2010 Author Share Posted September 2, 2010 @Robin:> Party system is still default Mirage. I'll be completely re-programming it at one point or another to add in GUI visuals, gold sharing, exp sharing and rolling on rare drops.I guess this will have to do until then, huh? ;) Link to comment Share on other sites More sharing options...
Robin Posted September 2, 2010 Share Posted September 2, 2010 Yup. Don't get me wrong, I love it when people make their own stuff for Origins. Just because I might make it redundant in later releases doesn't make this any less useful. Anything that helps people learn to understand and use Origins is a fantastic contribution to the EO community. Link to comment Share on other sites More sharing options...
Yxxe Posted September 2, 2010 Author Share Posted September 2, 2010 @Robin:> Yup. Don't get me wrong, I love it when people make their own stuff for Origins. Just because I might make it redundant in later releases doesn't make this any less useful. Anything that helps people learn to understand and use Origins is a fantastic contribution to the EO community.Well I first wanted to make this for an earlier release of Eclipse, but as the partying didn't really work I was unable to, and didn't really have much time to fix it. But if this tutorial does help people understand how Origins works, then I would be really happy, as I guess you would too. Link to comment Share on other sites More sharing options...
kibbelz Posted September 4, 2010 Share Posted September 4, 2010 i have an error when i type either /leave or /join:![](http://i52.tinypic.com/29xhhdj.jpg)sometimes its 72 sometimes its 73 Any suggestions? Link to comment Share on other sites More sharing options...
Robin Posted September 4, 2010 Share Posted September 4, 2010 You haven't added the new packets to the client-side enum. Link to comment Share on other sites More sharing options...
kibbelz Posted September 4, 2010 Share Posted September 4, 2010 Never mind about the post above its fixed but when I run the code my layout gets ducked up. From before useing the /join:![](http://i56.tinypic.com/5fkzk2.jpg)and after useing the /join![](http://i53.tinypic.com/2mdf488.jpg)Any Help? Link to comment Share on other sites More sharing options...
Robin Posted September 4, 2010 Share Posted September 4, 2010 It's this code:```.txtMyChat.width = 349.txtChat.width = 349``` Link to comment Share on other sites More sharing options...
kibbelz Posted September 4, 2010 Share Posted September 4, 2010 Ok thanks now i have this error when we join the names and the levels don't show up its just shows a ,But when i click addfriend (from the freinds list tutorial) and the name i put on my freinds list becomes the , insteadof the name on the list. Any help? Link to comment Share on other sites More sharing options...
Yxxe Posted September 4, 2010 Author Share Posted September 4, 2010 @kibbelz:> Ok thanks now I have this error when we join the names and the levels don't show up its just shows a ,> > But when I click addfriend (from the freinds list tutorial) and the name I put on my freinds list becomes the , insteadof the name on the list. Any help?You must be doing something wrong. I eliminated all that stuff before I released the tutorial. Your names are arriving at the client (or something is happening in the client) which makes the names and levels a null string. Go through the tutorial again and make sure you do everything correctly. It works for everyone else, so I very much doubt it is my error on this occasion. Link to comment Share on other sites More sharing options...
Ertzel Posted September 4, 2010 Share Posted September 4, 2010 @kibbelz:> Ok thanks now I have this error when we join the names and the levels don't show up its just shows a ,> > But when I click addfriend (from the freinds list tutorial) and the name I put on my freinds list becomes the , insteadof the name on the list. Any help?I added all this and it worked perfectly fine, so u messed up something when u put it in…Un-Do whatever u added and do it again in the order the tutorial goes. Also make sure u r labeling things right. Link to comment Share on other sites More sharing options...
kibbelz Posted September 6, 2010 Share Posted September 6, 2010 ignore my previous posts all fixed works now i got the mod enurminations mixed up. Thanks for the tutorial :D Link to comment Share on other sites More sharing options...
Yxxe Posted September 6, 2010 Author Share Posted September 6, 2010 @kibbelz:> ignore my previous posts all fixed works now I got the mod enurminations mixed up. Thanks for the tutorial :DNo problem ;) Link to comment Share on other sites More sharing options...
Sauvus Posted December 27, 2010 Share Posted December 27, 2010 @kibbelz:> Never mind about the post above its fixed but when I run the code my layout gets ducked up. From before useing the /join:> > ![](http://i56.tinypic.com/5fkzk2.jpg)> > and after useing the /join> > ![](http://i53.tinypic.com/2mdf488.jpg)> > Any Help?I have the Same problem here. Except when i join the chat is fine but the party Image moves somewhere where i dont want it, and When Someone leave the party the chat gets bigger again. How do i fix this? Link to comment Share on other sites More sharing options...
Yxxe Posted December 27, 2010 Author Share Posted December 27, 2010 Remove the code which resizes the chat box. Robin noted this earlier in the thread. Link to comment Share on other sites More sharing options...
Yxxe Posted December 27, 2010 Author Share Posted December 27, 2010 *Also wouldn't mind someone testing this in EO - Christmas Edition so I can add it to a list to show in which versions it is compatible with.Cheers,Lightning Link to comment Share on other sites More sharing options...
Sauvus Posted December 27, 2010 Share Posted December 27, 2010 I removed it but it still does the same thing it did before. Link to comment Share on other sites More sharing options...
s3th Posted December 29, 2010 Share Posted December 29, 2010 i cant find Sub HandleJoinParty, im using [eo]xmas … Link to comment Share on other sites More sharing options...
Yxxe Posted December 29, 2010 Author Share Posted December 29, 2010 @s3th:> I cant find Sub HandleJoinParty, im using [eo]xmas …It hasn't been tested in EO:CE yet. This tutorial was primarily coded for EO 1.1.0\. However, in the next few days I will get around to making another tutorial (or updating this one) for EO:CE. Link to comment Share on other sites More sharing options...
Valek Posted January 1, 2011 Share Posted January 1, 2011 @Ertzel:> This works great, thx for making this tutorial. I did everything you did just changed it to showing the other members Health instead of Level.Would be nice if you explained how you made it so it displays Health instead of level.. Might be helpful to others :) Link to comment Share on other sites More sharing options...
Ertzel Posted January 1, 2011 Share Posted January 1, 2011 Its just text based display, nothing hard to do.**- Server Side -**Replace -```Sub UpdatePartyData(ByVal Leader As Long, ByVal Member As Long)Dim buffer As clsBufferDim LeaderName As String, MemberName As String, LeaderLv As String, MemberLv As String LeaderName = GetPlayerName(Leader) LeaderLv = GetPlayerLevel(Leader) MemberName = GetPlayerName(Member) MemberLv = GetPlayerLevel(Member) Set buffer = New clsBuffer buffer.WriteLong SSendPartyMembers buffer.WriteString LeaderName buffer.WriteString LeaderLv buffer.WriteString MemberName buffer.WriteString MemberLv 'send to member SendDataTo Member, buffer.ToArray() Set buffer = Nothing Set buffer = New clsBuffer buffer.WriteLong SSendPartyMembers buffer.WriteString LeaderName buffer.WriteString LeaderLv buffer.WriteString MemberName buffer.WriteString MemberLv 'send to leader SendDataTo Leader, buffer.ToArray() Set buffer = NothingEnd SubSub PartyEnd(ByVal Leader As Long, ByVal Member As Long)Dim buffer As clsBufferSet buffer = New clsBufferbuffer.WriteLong SPartyEnd'send to leaderSendDataTo Leader, buffer.ToArray()Set buffer = NothingSet buffer = New clsBufferbuffer.WriteLong SPartyEnd'send to memberSendDataTo Member, buffer.ToArray()Set buffer = NothingEnd Sub```with```Sub UpdatePartyData(ByVal Leader As Long, ByVal member As Long)Dim Buffer As clsBufferDim LeaderName As String, MemberName As String, LeaderHp As String, MemberHp As String LeaderName = GetPlayerName(Leader) LeaderHp = GetPlayerVital(Leader, Vitals.HP) & "/" & GetPlayerMaxVital(Leader, Vitals.HP) MemberName = GetPlayerName(member) MemberHp = GetPlayerVital(member, Vitals.HP) & "/" & GetPlayerMaxVital(member, Vitals.HP) Set Buffer = New clsBuffer Buffer.WriteLong SSendPartyMembers Buffer.WriteString LeaderName Buffer.WriteString LeaderHp Buffer.WriteString MemberName Buffer.WriteString MemberHp 'send to member SendDataTo member, Buffer.ToArray() Set Buffer = Nothing Set Buffer = New clsBuffer Buffer.WriteLong SSendPartyMembers Buffer.WriteString LeaderName Buffer.WriteString LeaderHp Buffer.WriteString MemberName Buffer.WriteString MemberHp 'send to leader SendDataTo Leader, Buffer.ToArray() Set Buffer = NothingEnd Sub```**- Client Side -**Replace -```Private Sub HandleSendPartyMembers(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)Dim LeaderName As String, MemberName As String, LeaderLv As String, MemberLv As StringDim buffer As clsBufferSet buffer = New clsBufferbuffer.WriteBytes Data()LeaderName = buffer.ReadStringLeaderLv = buffer.ReadStringMemberName = buffer.ReadStringMemberLv = buffer.ReadStringWith frmMainGame .lblLeader.Caption = LeaderName & ", Lv: " & LeaderLv .lblMember.Caption = MemberName & ", Lv: " & MemberLv .imgPartyData.Left = 568 .imgPartyData.Top = 427 .txtMyChat.width = 349 .txtChat.width = 349 .imgPartyData.Visible = TrueEnd WithSet buffer = NothingEnd Sub```with```Private Sub HandleSendPartyMembers(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)Dim LeaderName As String, MemberName As String, LeaderHp As String, MemberHp As StringDim Buffer As clsBufferSet Buffer = New clsBufferBuffer.WriteBytes Data()LeaderName = Buffer.ReadStringLeaderHp = Buffer.ReadStringMemberName = Buffer.ReadStringMemberHp = Buffer.ReadStringWith frmMainGame .lblLeader.Caption = LeaderName & ", Hp: " & LeaderHp .lblMember.Caption = MemberName & ", Hp: " & MemberHp .imgPartyData.Visible = TrueEnd WithSet Buffer = NothingEnd Sub``` Link to comment Share on other sites More sharing options...
Valek Posted January 1, 2011 Share Posted January 1, 2011 @Ertzel:> Its just text based display, nothing hard to do.> > **- Server Side -**> Replace -> ```> Sub UpdatePartyData(ByVal Leader As Long, ByVal Member As Long)> Dim buffer As clsBuffer> Dim LeaderName As String, MemberName As String, LeaderLv As String, MemberLv As String> > LeaderName = GetPlayerName(Leader)> LeaderLv = GetPlayerLevel(Leader)> MemberName = GetPlayerName(Member)> MemberLv = GetPlayerLevel(Member)> > Set buffer = New clsBuffer> > buffer.WriteLong SSendPartyMembers> buffer.WriteString LeaderName> buffer.WriteString LeaderLv> buffer.WriteString MemberName> buffer.WriteString MemberLv> > 'send to member> SendDataTo Member, buffer.ToArray()> Set buffer = Nothing> > Set buffer = New clsBuffer> buffer.WriteLong SSendPartyMembers> > buffer.WriteString LeaderName> buffer.WriteString LeaderLv> buffer.WriteString MemberName> buffer.WriteString MemberLv> 'send to leader> SendDataTo Leader, buffer.ToArray()> > Set buffer = Nothing> End Sub> > Sub PartyEnd(ByVal Leader As Long, ByVal Member As Long)> Dim buffer As clsBuffer> > Set buffer = New clsBuffer> > buffer.WriteLong SPartyEnd> > 'send to leader> SendDataTo Leader, buffer.ToArray()> > Set buffer = Nothing> > Set buffer = New clsBuffer> > buffer.WriteLong SPartyEnd> 'send to member> SendDataTo Member, buffer.ToArray()> > Set buffer = Nothing> End Sub> ```with> ```> Sub UpdatePartyData(ByVal Leader As Long, ByVal member As Long)> Dim Buffer As clsBuffer> Dim LeaderName As String, MemberName As String, LeaderHp As String, MemberHp As String> > LeaderName = GetPlayerName(Leader)> LeaderHp = GetPlayerVital(Leader, Vitals.HP) & "/" & GetPlayerMaxVital(Leader, Vitals.HP)> MemberName = GetPlayerName(member)> MemberHp = GetPlayerVital(member, Vitals.HP) & "/" & GetPlayerMaxVital(member, Vitals.HP)> > Set Buffer = New clsBuffer> > Buffer.WriteLong SSendPartyMembers> Buffer.WriteString LeaderName> Buffer.WriteString LeaderHp> Buffer.WriteString MemberName> Buffer.WriteString MemberHp> > 'send to member> SendDataTo member, Buffer.ToArray()> Set Buffer = Nothing> > Set Buffer = New clsBuffer> Buffer.WriteLong SSendPartyMembers> > Buffer.WriteString LeaderName> Buffer.WriteString LeaderHp> Buffer.WriteString MemberName> Buffer.WriteString MemberHp> 'send to leader> SendDataTo Leader, Buffer.ToArray()> > Set Buffer = Nothing> End Sub> ```> **- Client Side -**> Replace -> ```> Private Sub HandleSendPartyMembers(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)> Dim LeaderName As String, MemberName As String, LeaderLv As String, MemberLv As String> Dim buffer As clsBuffer> > Set buffer = New clsBuffer> buffer.WriteBytes Data()> > LeaderName = buffer.ReadString> LeaderLv = buffer.ReadString> MemberName = buffer.ReadString> MemberLv = buffer.ReadString> > With frmMainGame> .lblLeader.Caption = LeaderName & ", Lv: " & LeaderLv> .lblMember.Caption = MemberName & ", Lv: " & MemberLv> .imgPartyData.Left = 568> .imgPartyData.Top = 427> > .txtMyChat.width = 349> .txtChat.width = 349> .imgPartyData.Visible = True> End With> > Set buffer = Nothing> End Sub> > Private Sub HandlePartyEnd(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)> Dim buffer As clsBuffer> > Set buffer = New clsBuffer> buffer.WriteBytes Data()> > With frmMainGame> .imgPartyData.Visible = False> .txtMyChat.width = 478> .txtChat.width = 478> End With> > Set buffer = Nothing> End Sub> ```with> ```> Private Sub HandleSendPartyMembers(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)> Dim LeaderName As String, MemberName As String, LeaderHp As String, MemberHp As String> Dim Buffer As clsBuffer> > Set Buffer = New clsBuffer> Buffer.WriteBytes Data()> > LeaderName = Buffer.ReadString> LeaderHp = Buffer.ReadString> MemberName = Buffer.ReadString> MemberHp = Buffer.ReadString> > With frmMainGame> .lblLeader.Caption = LeaderName & ", Hp: " & LeaderHp> .lblMember.Caption = MemberName & ", Hp: " & MemberHp> .imgPartyData.Visible = True> End With> > Set Buffer = Nothing> End Sub> ```I am still learning how to use VB6, its obviously a pretty powerful tool. I like to think I learn pretty fast but the learning curve here is pretty crazy, especially considering how many talented people are floating around the forums.anyways, thanks for posting that. I managed to get it to work, thank you. 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