Mirage Source http://www.miragesource.net/forums/ |
|
Does anyone have... http://www.miragesource.net/forums/viewtopic.php?f=201&t=5038 |
Page 1 of 2 |
Author: | timster0 [ Fri Jan 30, 2009 7:28 pm ] |
Post subject: | Does anyone have... |
Does anyone have the forms that go with this old tutorial? http://web.miragesource.com/old-tutorials/temporary_archive/Guild%20System.html |
Author: | Rian [ Fri Jan 30, 2009 9:57 pm ] |
Post subject: | Re: Does anyone have... |
Code: Private Sub cmdClose_Click()
frmGuildCP.Visible = False End Sub Private Sub cmdDemote_Click() If txtName.Text = "" Then Call MsgBox("You must first enter a playername to demote them.") Else Call GuildDemotion(Trim(txtName.Text)) txtName.Text = "" End If End Sub Private Sub cmdInvite_Click() If txtName.Text = "" Then Call MsgBox("You must first enter a playername to invite them.") Else Call GuildRequest(Trim(txtName.Text)) txtName.Text = "" End If End Sub Private Sub cmdKick_Click() If txtName.Text = "" Then Call MsgBox("You must first enter a playername to kick them from the guild.") Else Call GuildRemoval(Trim(txtName.Text)) txtName.Text = "" End If End Sub Private Sub cmdPromote_Click() If txtName.Text = "" Then Call MsgBox("You must first enter a playername to promote them.") Else Call GuildPromotion(Trim(txtName.Text)) txtName.Text = "" End If End Sub |
Author: | Matt [ Fri Jan 30, 2009 9:59 pm ] |
Post subject: | Re: Does anyone have... |
I'm pretty sure he means the physical forms.. |
Author: | Rian [ Fri Jan 30, 2009 10:04 pm ] |
Post subject: | Re: Does anyone have... |
Why would he need the physical forms? That tutorial only came with one form, and that's all the code on the form. Which is pretty much the only code that tutorial lacks. If he can read, he can figure out what the form name is, and the names of the controls on the form. |
Author: | Matt [ Fri Jan 30, 2009 10:04 pm ] |
Post subject: | Re: Does anyone have... |
Rian wrote: Why would he need the physical forms? That tutorial only came with one form, and that's all the code on the form. Which is pretty much the only code that tutorial lacks. If he can read, he can figure out what the form name is, and the names of the controls on the form. I'm pretty sure he can't read. |
Author: | Rian [ Fri Jan 30, 2009 10:05 pm ] |
Post subject: | Re: Does anyone have... |
Christ that was a fast response. I'm pretty sure he can. |
Author: | Matt [ Fri Jan 30, 2009 10:06 pm ] |
Post subject: | Re: Does anyone have... |
Rian wrote: Christ that was a fast response. I'm pretty sure he can. I can't tell. A guild system is super easy to write from scratch. I just did it. Lol. |
Author: | timster0 [ Fri Jan 30, 2009 10:55 pm ] |
Post subject: | Re: Does anyone have... |
Lol, I CAN Read. Thx for the code though. |
Author: | Nean [ Fri Jan 30, 2009 11:06 pm ] |
Post subject: | Re: Does anyone have... |
Wow, a guild system WOULD be simple. If I get around to it, I'll write a tutorial up for it. ^^ |
Author: | timster0 [ Fri Jan 30, 2009 11:23 pm ] |
Post subject: | Re: Does anyone have... |
The hardest part would be the commands, especially since its more complicated to make commands in MS4. |
Author: | timster0 [ Fri Jan 30, 2009 11:31 pm ] |
Post subject: | Re: Does anyone have... |
Getting a wierd bug: "sub or function not defined" in the: Code: ' ::::::::::::::::::::::::: ' :: Create Guild packet :: ' ::::::::::::::::::::::::: If LCase(Parse(0)) = "createguild" Then Dim Z As String ' Prevent hacking If GetPlayerAccess(Index) < ADMIN_CREATOR Then Call HackingAttempt(Index, "Trying to use powers not available") Exit Sub End If ' The Player n = FindPlayer(Parse(1)) ' The Guild Z = Trim(Parse(2)) Call CreateGuild(n, Z) Call SetPlayerGuildAccess(n, 4) Call SendPlayerData(n) Call GlobalMsg(GetPlayerName(n) & " has joined the ranks of " & Z & ".", Black) Call AddLog(GetPlayerName(n) & " has joined the ranks of " & Z & ".", ADMIN_LOG) Exit Sub End If Highlighting: Code: Call CreateGuild Isn't this the CreateGuild packet though? |
Author: | Matt [ Fri Jan 30, 2009 11:51 pm ] |
Post subject: | Re: Does anyone have... |
timster0 wrote: The hardest part would be the commands, especially since its more complicated to make commands in MS4. It's WAY easier in MS4.. |
Author: | timster0 [ Fri Jan 30, 2009 11:53 pm ] |
Post subject: | Re: Does anyone have... |
Really? I found it harder. Anyways, any fix for my problem, I though it might have to do with something about "n" not being defined but It only made it worse XD. |
Author: | Matt [ Fri Jan 30, 2009 11:54 pm ] |
Post subject: | Re: Does anyone have... |
You need the sub "CreateGuild".. Common sense? |
Author: | timster0 [ Fri Jan 30, 2009 11:56 pm ] |
Post subject: | Re: Does anyone have... |
But isn't that packet handling the Create Guild stuff? And if I need a sub, where would I put it? |
Author: | Matt [ Sat Jan 31, 2009 2:27 am ] |
Post subject: | Re: Does anyone have... |
timster0 wrote: But isn't that packet handling the Create Guild stuff? And if I need a sub, where would I put it? At the bottom of a module? Usually the one that pertains to the type of information. |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |