damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 i am trying to integrate the mail system from the elements on-line source, with credits of course.and all works… well sort off >.<it sends and recieves the packets, but doesnt create the mail in my mailbox, ofcourse i adapted it to my source, so i think i ducked it up :afro:```Case "newmail" If Trim$(GetPlayerName(index)) <> Trim$(Parse$(1)) Then For i = 1 To 50 If GetVar("Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\" & Trim$(Parse$(1)) & ".ini", "Mail" & i, "Title") = "" Then Call PutVar("Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\" & Trim$(Parse$(1)) & ".ini", "Mail" & i, "Title", Parse$(2)) Call PutVar("Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\" & Trim$(Parse$(1)) & ".ini", "Mail" & i, "Sender", Trim$(GetPlayerName(index))) Call PutVar("Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\" & Trim$(Parse$(1)) & ".ini", "Mail" & i, "Read", "0") frmMail.RichTextBox1.Text = Parse$(3) frmMail.RichTextBox1.SaveFile ("Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\Mail" & Trim$(Parse$(1)) & i & ".txt") If IsPlaying(FindPlayer(Trim$(Parse$(1)))) = True Then Call PlayerMsg(FindPlayer(Trim$(Parse$(1))), "You received a new mail from '" & GetPlayerName(index) & "', Named '" & Trim$(Parse$(2)) & "'.", YELLOW) End If Exit Sub End If Next i Call PlayerMsg(index, "This players inbox is full!", BRIGHTRED) Else Call PlayerMsg(index, "You can not send yourself a Mail!", BRIGHTRED) End If Exit Sub```you tell me, because i am frustrated :pDamian666 Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 ```"Accounts\" & GetPlayerLogin(Trim$(Parse$(1))) & "\Mail\" & Trim$(Parse$(1)) & ".ini"```I never designed it to save it in **"Accounts\ACCOUNTNAME(What the hell are you doing here? Getting the login from a name?)\Mail\CharName.ini"**.Try running it like I designed it, I think you just messed the entire thing up. Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 i know you didnt design it this way, but i like it better this way.and yes, ofcourse i am trying to get the login from the playername, that should work right?maybe i should just use the index number instead of the name?Damian666 Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 You need the Index ID, not the name… You can't use that function with a player name as far as I know. Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 then thats whats wrong huh >.<…how the hell did i come up with that... XDbtw you made a very nice system mate ^^, i will make sure to credit you by name :)Damian666meh... ill be smart, and take your word on it...ill revert back to your way ^^thanx again Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 Nah, this system is slow and crappy. Sends too much packets and whatever. It'll eat your server bandwidth… But it works better then some crappy scripted system I guess. Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 well… i think you cant have a mailsystem without sending packets anyway man.i am sure it beats the scripted ones anyday :)Damian666 Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 This one sends a LOT of packets, like one for every mail you have :P If I didn't do that the data would be too large to send though if you had long mails, or more then 12. Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 hmm… yes... that is much XDmaybe you should just limit the amount they can store?or save the messages clientsided? that way you dont have to query the server for it ^^Damian666 Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 They can only hold 50 anyway :P And store them client side? That would allow them to modify them :P And thus being able to scam people with fake reports. Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 yeah… thats true XDand we all know they would :Pwell, just thinking of ways to limit the packets, thats all ^^Damian666 Link to comment Share on other sites More sharing options...
Joyce Posted July 11, 2009 Share Posted July 11, 2009 I don't see why the eclipse devs didn't make a Mail System in it yet though, it's actually really simple. :rolleyes: Link to comment Share on other sites More sharing options...
damian666 Posted July 11, 2009 Author Share Posted July 11, 2009 heheheh, dont ask me :Di dont know, but it does seem its not that hard indeed XDdamian666 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