Mirage Source http://www.miragesource.net/forums/ |
|
Updated Party/Group http://www.miragesource.net/forums/viewtopic.php?f=210&t=4184 |
Page 2 of 3 |
Author: | Asrrin29 [ Sun Sep 14, 2008 7:58 pm ] |
Post subject: | Re: Updated Party/Group |
My source is based off a mishmash of 3.0.3 and 3.0.7, I never used any of the MSE's. so you'll have to adapt this code to work with any of the MSE's. |
Author: | skillzalot [ Sat Sep 20, 2008 1:58 am ] |
Post subject: | Re: Updated Party/Group |
Will this be updated for MSE2 this will be really neat to have |
Author: | Rian [ Sat Sep 20, 2008 3:04 am ] |
Post subject: | Re: Updated Party/Group |
I don't think it would be too difficult for anyone to integrate this into MSE2, as it's nearly identical to MSE1, MS303 and MS307 |
Author: | JadeCurt1ss [ Fri Sep 26, 2008 2:52 pm ] |
Post subject: | Re: Updated Party/Group |
So, what works, and what doesn't? I'm trying to figure out the portions of the code I should be using, but its a pretty big confusing mess, and further to that, what parts work, and what doesn't? |
Author: | Rian [ Fri Sep 26, 2008 3:30 pm ] |
Post subject: | Re: Updated Party/Group |
Sonire wrote: Server side coding on this tutorial is not fully functional yet. It's also largely written for compatibility with Mirage Source versions 3.0.3 and 3.0.7.
|
Author: | JadeCurt1ss [ Sat Sep 27, 2008 5:47 pm ] |
Post subject: | Re: Updated Party/Group |
So are people still developing this, or did the project just die out? |
Author: | Forte [ Sun Sep 28, 2008 3:41 am ] |
Post subject: | Re: Updated Party/Group |
Project? This is a tutorial thread |
Author: | Matt [ Sun Sep 28, 2008 12:18 pm ] |
Post subject: | Re: Updated Party/Group |
Forte wrote: Project? This is a tutorial thread Yes, but the goal was to finish the system. I think for the client side. |
Author: | Rian [ Sun Sep 28, 2008 5:37 pm ] |
Post subject: | Re: Updated Party/Group |
Client side is pretty much finished. All that is needed is a packet: Code: ' ::::::::::::::::: ' :: Party Stats :: ' ::::::::::::::::: If (LCase(Parse(0)) = "partystats") Then X = Val(Parse(1)) ' Total Group Members frmMirage.lblLeaderName.Caption = Trim$(Parse(2)) & " " & Val(Parse(4)) ' Leader Name & Level frmMirage.lblLeaderClass.Caption = Trim$(Parse(3)) ' Leader Class frmMirage.lblLeaderHP = Val(Parse(6)) & "/" & Val(Parse(5)) ' Leader HP frmMirage.lblLeaderMP.Caption = Val(Parse(8)) & "/" & Val(Parse(7)) ' Leader MP n = 9 ' Next Parse In Line For i = 1 To X ' MAX_GROUP_NUMBER frmMirage.lblGroupName(i - 1).Caption = Trim$(Parse(n)) & " " & Val(Parse(n + 2)) ' Member i Name & Level frmMirage.lblGroupClass(i - 1).Caption = Trim$(Parse(n + 1)) ' Member i Class frmMirage.lblGroupHP(i - 1).Caption = Val(Parse(n + 4)) & "/" & Val(Parse(n + 3)) ' Member i HP frmMirage.lblGroupMP(i - 1).Caption = Val(Parse(n + 6)) & "/" & Val(Parse(n + 5)) ' Member i MP n = n + 7 Next i End If Exit Sub Or, if you wanted hp and mp bars Code: ' :::::::::::::::::
' :: Party Stats :: ' ::::::::::::::::: If (LCase(Parse(0)) = "partystats") Then X = Val(Parse(1)) ' Total Group Members BarWidth = 2385 ' Change Number To The Width Of Your HP/MP Bars frmMirage.lblLeaderName.Caption = Trim$(Parse(2)) & " " & Val(Parse(4)) ' Leader Name & Level frmMirage.lblLeaderClass.Caption = Trim$(Parse(3)) ' Leader Class frmMirage.picLeaderHP.Width = (((Val(Parse(6)) / 100) / (Val(Parse(5)) / 100)) * BarWidth) ' Leader HP frmMirage.picLeaderMP.Width = (((Val(Parse(8)) / 100) / (Val(Parse(7)) / 100)) * BarWidth) ' Leader MP n = 9 ' Next Parse In Line For i = 1 To X ' MAX_GROUP_NUMBER frmMirage.lblGroupName(i - 1).Caption = Trim$(Parse(n)) & " " & Val(Parse(n + 2)) ' Member i Name & Level frmMirage.lblGroupClass(i - 1).Caption = Trim$(Parse(n + 1)) ' Member i Class frmMirage.picGroupHP(i - 1).Width = (((Val(Parse(n + 4)) / 100) / (Val(Parse(n + 3)) / 100)) * BarWidth) ' Member i HP frmMirage.picGroupMP(i - 1).Width = (((Val(Parse(n + 6)) / 100) / (Val(Parse(n + 5)) / 100)) * BarWidth) ' Member i MP n = n + 1 Next i End If Exit Sub |
Author: | JadeCurt1ss [ Tue Oct 07, 2008 8:30 pm ] |
Post subject: | Re: Updated Party/Group |
So that's it? Is it all completed? |
Author: | Rian [ Tue Oct 07, 2008 9:36 pm ] |
Post subject: | Re: Updated Party/Group |
Sonire wrote: Sonire wrote: Server side coding on this tutorial is not fully functional yet. It's also largely written for compatibility with Mirage Source versions 3.0.3 and 3.0.7. |
Author: | Skieth777 [ Wed Oct 08, 2008 1:52 am ] |
Post subject: | Re: Updated Party/Group |
Sonire wrote: Sonire wrote: Server side coding on this tutorial is not fully functional yet. It's also largely written for compatibility with Mirage Source versions 3.0.3 and 3.0.7. So then it IS finished? lol couldn't resist |
Author: | NeoZeus [ Wed Oct 08, 2008 2:50 pm ] |
Post subject: | Re: Updated Party/Group |
It works well enough in 3.07 as is. The code allows party creation, joining/leaving the party, auto promote new leader when party leader leaves party or disconnect and it sends data to the client properly for all these events. Client side, party member can see HP/MP of everyone in the party. So for basic functionality, it's already working. It's really up to you if you want to add in other features like shared experience or any other benefits. |
Author: | David David [ Sat Jan 24, 2009 4:50 pm ] |
Post subject: | Re: Updated Party/Group |
whenever i try adding it it says 'Variable not defined" And I'm following all the steps. |
Author: | Rian [ Sat Jan 24, 2009 5:18 pm ] |
Post subject: | Re: Updated Party/Group |
Okay. |
Page 2 of 3 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |