davidsaid Posted July 30, 2012 Share Posted July 30, 2012 Yes, I have that in ModTypes, but still throwing errors :/. I solved the part of the Member Items putting as comment the part that fails, but when I do the same with the Map Editor, each time i check the Members Area option when I leave the Map Editor is unchecked. what can be :/?PS: I'm using Eclipse Nigthly Relalses Link to comment Share on other sites More sharing options...
Eevee204 Posted August 10, 2012 Share Posted August 10, 2012 I'm going to try and add this to 3.0. Link to comment Share on other sites More sharing options...
Vus Posted August 10, 2012 Share Posted August 10, 2012 Nice tutorial, I may use it sometime. :) Link to comment Share on other sites More sharing options...
eddy34 Posted August 11, 2012 Share Posted August 11, 2012 davidsaid, try this tutorial : [Click Here](http://www.touchofdeathforums.com/smf2/index.php/topic,81545.0.html)I'm sorry to the creator of the topic, but it's not because I did your tutorial yet. And as the guy with ta problem, recommending to the similar system that I've tested it and ta working. xDI hope you do not mind Thanks! Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2012 Share Posted August 14, 2012 *Removed Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2012 Share Posted August 14, 2012 @Richy:> Make sure in client - ModTypes,> ```> IsMember as Byte> ```> Is in MapRec and ItemRec.Im having the same problem. This is so weird cause everything is there. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2012 Share Posted August 16, 2012 Mkay well everything seems to work except the map saing that its a members only map. I open the map editor , click members map, save it, then reopen mapeditor to find that its unchecked. Belive me I followed everything properly, but how do I fix? Link to comment Share on other sites More sharing options...
Richy420Rich Posted August 16, 2012 Author Share Posted August 16, 2012 This damn thing isn't working so I'll have to roll another route.Originally I had my membership maps distinguished by Moral; Thought it would be easier to add another UDT but now it seems Moral is the only way I can go personally to avoid stupid map errors and I do not want to delete my maps; If you know how to set Moral types then it'll be 10 times easier to go that route, I'll re-work this when I get the Moral installed on this tutorial. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2012 Share Posted August 16, 2012 Alrright man. Will do. Keep meh updtated. Link to comment Share on other sites More sharing options...
Richy420Rich Posted August 16, 2012 Author Share Posted August 16, 2012 Alright, updated OP with the Moral ability - I prefer this route since I cba to figure out how to UDT map rec without ducking a map up. It may require tossing out anything prior and just re-doing this from scratch. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2012 Share Posted August 16, 2012 Okay it works. Only trouble now is, I tested this. I made my character a member, then I logged out. Then I took the characters membership away. When I logged back in I was still in a members only map.How can I auto warp them on next login. Link to comment Share on other sites More sharing options...
Richy420Rich Posted August 16, 2012 Author Share Posted August 16, 2012 ModPlayers - JoinGame should automatically warp them if you set the BootMap, BootX & BootY of member map to warp out; Or edit the PlayerWarp coords to your liking. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2012 Share Posted August 16, 2012 Yanno thers probably an error on my part due to adding and deleting stuff out of it from all the updates, Ill ad it to a clean version and test it out and ill write back in a moment! Link to comment Share on other sites More sharing options...
Richy420Rich Posted August 16, 2012 Author Share Posted August 16, 2012 Sorry about all the changes; I don't have a proper testing team locally, it's liable that I fuck up more, though I try to help solve it the best way I can; Doing this helps me as well because the community is reporting the issues, for that I say thanks. Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2012 Share Posted August 17, 2012 Na its all good man. But yes, when I am a member, I log out, take away membership, and when I login, it still dosesent warmp me or tell me my membership expired. SO Thers somthing wrong with Sub JoinGames code Link to comment Share on other sites More sharing options...
Richy420Rich Posted August 17, 2012 Author Share Posted August 17, 2012 Okay seems the fix is good, I forgot to set a date value which is greater than 31 days when manually turning off a players membership. Just replace these 2 subs in the server form code.```Private Sub CmdSave_Click()Dim Filename As StringDim f As LongDim i As LongDim index As LongIf Len(Trim$(lstaccounts.Text)) > 0 ThenAEditor.Name = Trim$(TextName.Text)AEditor.Password = Trim$(TextPass.Text)if chkmember.value = 1 thenAEditor.IsMember = 1elseAEditor.DateCount = "11/11/2011"end ifAEditor.IsMember = chkmember.value  index = FindPlayer(Trim$(AEditor.Name))  If index > 0 And index <= MAX_PLAYERS Then    If IsPlaying(index) Then      Player(index).Name = Trim$(TextName.Text)      Player(index).Password = Trim$(TextPass.Text)      Player(index).DateCount = trim$(TextCount.text)        If ChkMember.value = 1 Then        Player(index).IsMember = 1        Player(index).DateCount = Trim$(TextCount.Text)        PlayerMsg index, "You have been granted membership by the server.", yellow"        Else        PlayerMsg index, "Your membership has been expired.", BrightRed        Player(index).IsMember = 0   Player(index).DateCount = "11/11/2011"        MemberUnEquipItem index        If Map(GetPlayerMap(index)).Moral = 2 Then        PlayerWarp index, Map(GetPlayerMap(index)).BootMap, Map(GetPlayerMap(index)).BootX, Map(GetPlayerMap(index)).BootY        End If        End If  SavePlayer index  SendPlayerData index  End If  Else  Filename = App.Path & "\data\accounts\" & Trim$(lstaccounts.Text) & ".bin"  f = FreeFile  Open Filename For Binary As #f  Put #f, , AEditor  Close #f  End If  End If  frmServer.lblInfo.Caption = vbNullString  frmServer.lblInfo.Caption = "" & Trim$(lstaccounts.Text) & "'s account has been successfully saved!"End SubPrivate Sub ChkMember_Click()If ChkMember.value = 1 ThenfrmServer.lblInfo.Caption = vbNullStringfrmServer.lblInfo.Caption = "Membership goes by date, in the 'Day #' box is listed as today's date. The membership lasts for 31 days from today's date, you may give a longer date prior to membership expiration, EG: Today being 7/11/2012, it can be set to 12/11/2012, to give 5 months of membership. However the correct format is 'd/m/yyyy'. Otherwise this may not work."frmServer.LblInfo.Visible = Truefrmserver.TextCount.text = Format(Date, "m/d/yyyy")ElsefrmServer.lblInfo.Visible = FalsefrmServer.lblinfo.Caption = vbNullStringfrmserver.TextCount.text = "11/11/2011"End IfEnd Sub``` Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2012 Share Posted August 17, 2012 I added but it still dosent work. Plus another thing to add would be that if Im on 1 map as a non member and I walk onto a map that is for members only, I can stil acsess the map like normal. Link to comment Share on other sites More sharing options...
bunny123 Posted September 17, 2012 Share Posted September 17, 2012 I can't believe no one noticed this bug!In the code for CmdSave on the server, replace``` PlayerMsg index, "You have been granted membership by the server.", yellow"```with``` PlayerMsg index, "You have been granted membership by the server.", yellow```(There shouldn't be a " at the end) Link to comment Share on other sites More sharing options...
tslusny Posted September 18, 2012 Share Posted September 18, 2012 > I can't believe no one noticed this bug!> > In the code for CmdSave on the server, replace> > ```> PlayerMsg index, "You have been granted membership by the server.", yellow"> ```> with> > ```> PlayerMsg index, "You have been granted membership by the server.", yellow> ```> (There shouldn't be a " at the end)I noticed, i am already using his membership system in my game(with many fixes and improvements of course) and its very nice base (i based account editor for my game on this) Link to comment Share on other sites More sharing options...
bunny123 Posted September 21, 2012 Share Posted September 21, 2012 I'm have two problems.1. Non-members can walk on a members map.2. When a member logs in, the server crashes. Link to comment Share on other sites More sharing options...
bunny123 Posted September 21, 2012 Share Posted September 21, 2012 And some more problems.1. When I load an account in the Editor, it says the player is a member but the date count box is blank. I don't think it's saving the date count. Link to comment Share on other sites More sharing options...
Richy420Rich Posted September 21, 2012 Author Share Posted September 21, 2012 1\. I didn't add the check for member on PlayerWarp2\. Has something to do with ModPlayer - JoinGameI pretty much gave up on this tutorial ever since I found out BRGuardian did a better system a couple days before hand, and I did not want to look like I was copying his idea. Link to comment Share on other sites More sharing options...
bunny123 Posted September 21, 2012 Share Posted September 21, 2012 I thought I did though… Link to comment Share on other sites More sharing options...
bunny123 Posted September 21, 2012 Share Posted September 21, 2012 Nope. Can you please finish it though? I want to actually use it. Link to comment Share on other sites More sharing options...
bunny123 Posted September 21, 2012 Share Posted September 21, 2012 I think the problem with the log in is I added extra code:If Map(GetPlayerMap(index)).Moral = 2 Then**If Map(GetVar(App.Path & "\Data\accounts\checkpoints.ini", "" & GetPlayerName(index), "MAPNUM")).Moral = MAP_MORAL_MEMBER ThenCall CustomScript(i, 1)End If**PlayerWarp index, Map(GetPlayerMap(index)).BootMap, Map(GetPlayerMap(index)).BootX, Map(GetPlayerMap(index)).BootYEnd IfAnd Custom Script #1 isCall PutVar(App.Path & "\Data\accounts\checkpoints.ini", "*SERVEROPTIONS*", "" & GetPlayerName(index), "" & 0) 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