Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Scott

Members
  • Posts

    428
  • Joined

  • Last visited

    Never

Everything posted by Scott

  1. I have everything done except the Client side Interface, having trouble coming up with something I'm proud to release so if any one would like to help and make the Interface images for it send me a pm. You will get full credit in the tutorial for your work, as I am doing this for a tutorial for the community I am not willing to pay for this. If no one gets a hold of me ill just release it with one of my shitty Interfaces and you will just need to make your own.
  2. Just add it to the PlayerRec, and delete all the player files. It just saves the whole rec no need to add anything to have it save. Ex ``` Private Type PlayerRec ' Account Login As String * ACCOUNT_LENGTH Password As String * NAME_LENGTH ' General Name As String * ACCOUNT_LENGTH Sex As Byte Class As Long Sprite As Long Level As Byte exp As Long Access As Byte PK As Byte Total_PK As Long 'Guild TUT GuildFileId As Long GuildMemberId As Long ' Vitals Vital(1 To Vitals.Vital_Count - 1) As Long ' Stats Stat(1 To Stats.Stat_Count - 1) As Byte POINTS As Long ' Worn equipment Equipment(1 To Equipment.Equipment_Count - 1) As Long ' Inventory Inv(1 To MAX_INV) As PlayerInvRec Spell(1 To MAX_PLAYER_SPELLS) As Long ' Hotbar Hotbar(1 To MAX_HOTBAR) As HotbarRec ' Position Map As Long x As Byte y As Byte Dir As Byte End Type ```Note the Total_Pk field.
  3. Use the Vb6 controls built in click detection on PicTest and check if it's within the area the text is with some simple math.
  4. ``` Dim itemnum Dim itempic Dim MaxFrames ``` You need to declare what type of variables these will be. ex ``` Dim MaxFrames as Long ``` and Subscript out of range means your trying to access an element of an array that does not exist, make sure itempic is within the proper range of the DDSD_Item array.
  5. Would make more sense to just make a new variable instead of redesigning that one.
  6. @Yami: > Also, it may be a worthless visual feature.. But customizable guild name colors and small guild banners are never a bad thing! Great idea, I will add it for sure. I love small little features like that. @DrNova: > Has anything come of this list yet? Not the first time I've seen a similar post Released: No Almost Done: Yes, I'm well over half done with guilds I just started yesterday.
  7. I decided to start with guilds. I just finished the loading and saving, it works like the player index does loads a guild 1 time when a user in that guild logs in, if another user from the same guild logs in they both share the same guild index(stored in player tmp data) , it clears the index if no users from the guild are logged in. Guilds are stored in numbered files and player data simply stores the file number for the guild they are apart of and the slot the user is to allow for quick checks later. The guild file stores all the real info(such as player rank in guild), to kick a user simply remove his name from members list and next time they login it checks to see if they are still on that list in the same position they where before, it if does not find it self it searches the whole list to make sure they didn't get moved to another slot than removes the guild info from the player file if not. Is this an effective way to handle this? I feel it is was just curious what a more experienced programmer might say. It current supports: Customizable ranks Guild leaders can set different permissions for different ranks these include Edit Guild, Edit rank, edit motd, recruit and kick. Can edit the name of each rank. Please feel free to suggest anything you would like to see in the Guild Tutorial.
  8. Scott

    Send item to Inv

    Make a button -> Double click button -> Place something like this ``` Call GiveInvItem(1, 1, 200) ``` This gives the first player 200 of item 1.
  9. Try the official downloads forum.
  10. That's low on my list, if some one wants your gfx they will get them but I will most likely look into it later for now I want to start with guild/improved private chat(friends lists), I want to focus on in-game related tutorials instead of security to start.
  11. I'll have the first tutorial up for this next week, thanks for the suggestion feel free to keep them coming. I decided to start with the guild system.
  12. modPlayer -> Sub OnDeath Change this in Sub OnDeath ``` Call PlayerWarp(index, START_MAP, START_X, START_Y) ```
  13. 1.Make a new tile type(this includes client side mapeditor so you can place it) data1 should be script number 2.In Sub PlayerMove server side add a new statement (search TILE_TYPE_TRAP for an example) Ex: ``` If .Type = TILE_TYPE_NEWTYPE Then Dim Scriptnum As Integer Scriptnum = .Data1 Select Case Scriptnum Case 1: If GetPlayerClass(index) = 1 Then Moved = YES End If Case 2: Case 3: End Select End If ```Pretty simple, on your own as far as adding a new tile goes it's easy though.
  14. Location (frmMain): ``` Private Sub Form_KeyUp ``` This handles Hotbar keys: ``` ' hotbar For i = 1 To MAX_HOTBAR If KeyCode = 111 + i Then SendHotbarUse i End If Next ```
  15. You call that with the player index not a text name. ex GetPlayerName(1) would get the #1 slot's name, you would need to do something else if you where trying to get offline users name/level.
  16. Scott

    Game Clock

    http://www.touchofdeathforums.com/smf/index.php/topic,76428.msg819699.html#msg819699 You could modify this to work with a little editing, just changing some numbers really. If the server stops the in game time stops.
  17. Scott

    Admin Panel

    Yes frmMain, expand the form not the window.
  18. Scott

    Admin Panel

    In vb6 - To the right of the form, expand it. In game - Insert
  19. Ahh see what you mean, hold on. Other than using blt to draw it i'm not sure.
  20. Delete the map data on the client/server so they get the new max, and reduce/increase the picscreen size to be a multiple of 32 on both the height and width. Don't forget to change the max_x and max_y.
  21. Scott

    Scripter needed

    Ya sorry had a blond moment, forgot to compile it.
  22. Scott

    Scripter needed

    Sigridunset kindly pointed out that you could not set items higher than 255 to drop, this is now fixed.
×
×
  • Create New...