Thread: How do I...

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 How do I... 
    Registered Member Logisti-X's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    678
    Thanks given
    25
    Thanks received
    19
    Rep Power
    75
    Make it so when a player logs in, they will already be wielding something?

    I.E. - When they login they'd be wielding something like an iron scimitar.

    Rep++ for help!
    Reply With Quote  
     

  2. #2  
    Pur3z is back!
    tehGanjaman's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    2,871
    Thanks given
    3,381
    Thanks received
    109
    Rep Power
    502
    source base?
    Reply With Quote  
     

  3. #3  
    Registered Member Logisti-X's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    678
    Thanks given
    25
    Thanks received
    19
    Rep Power
    75
    Quote Originally Posted by elite beast View Post
    source base?
    Battlescape.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Nov 2008
    Posts
    2,180
    Thanks given
    148
    Thanks received
    99
    Rep Power
    2004
    It's not saving the data when you logout, Are you using the one that Pali released or someones else?
    Reply With Quote  
     

  5. #5  
    Registered Member Logisti-X's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    678
    Thanks given
    25
    Thanks received
    19
    Rep Power
    75
    Quote Originally Posted by Demetri View Post
    It's not saving the data when you logout, Are you using the one that Pali released or someones else?
    That's not what I mean, I want it so when new players login they have starter gear already on their character.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Sanity's Avatar
    Join Date
    Dec 2008
    Posts
    2,062
    Thanks given
    22
    Thanks received
    362
    Rep Power
    762
    public int[][] itemsToGive = {{ITEMSLOT, ITEM,ITEM_AMOUNT},{ITEMSLOT,ITEM,ITEM_AMOUNT}};

    for (int j = 0; j < itemsToGive.length; j++) {
    playerEquipment[ITEMSLOT] = itemsToGive[j][1];
    playerEquipmentN[ITEMSLOT] = itemsToGive[j][2];
    }

    Something like that should suffice
    Reply With Quote  
     

  7. #7  
    Registered Member CurrentTheory's Avatar
    Join Date
    Sep 2009
    Posts
    128
    Thanks given
    3
    Thanks received
    6
    Rep Power
    0
    I'm pretty sure this will work.

    Search:
    Code:
    if(starter == 0)
    Scroll down a bit, and you'll see all the items added, when the player log in for the first time.

    Now under the last
    Code:
    addItem
    Add this
    Code:
    playerEquipment[playerWeapon] = ID here;
    That will make the character equip the intered weapon. You can just add more, and change "playerWeapon" to "playerCape" etc. Like this:
    Code:
    playerEquipment[playerHelm] = ID here;
    playerEquipment[playerCape] = ID here;
    playerEquipment[playerAmulet] = ID here;
    playerEquipment[playerShield] = ID here;
    NOTE: In the "ID here" simply enter the ID of the item. E.g:
    Code:
    playerEquipment[playerWeapon] = 4587;
    Reply With Quote  
     

  8. #8  
    Registered Member Logisti-X's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    678
    Thanks given
    25
    Thanks received
    19
    Rep Power
    75
    Quote Originally Posted by CurrentTheory View Post
    I'm pretty sure this will work.

    Search:
    Code:
    if(starter == 0)
    Scroll down a bit, and you'll see all the items added, when the player log in for the first time.

    Now under the last
    Code:
    addItem
    Add this
    Code:
    playerEquipment[playerWeapon] = ID here;
    That will make the character equip the intered weapon. You can just add more, and change "playerWeapon" to "playerCape" etc. Like this:
    Code:
    playerEquipment[playerHelm] = ID here;
    playerEquipment[playerCape] = ID here;
    playerEquipment[playerAmulet] = ID here;
    playerEquipment[playerShield] = ID here;
    NOTE: In the "ID here" simply enter the ID of the item. E.g:
    Code:
    playerEquipment[playerWeapon] = 4587;
    Searched the first part, and nothing ;s
    Reply With Quote  
     

  9. #9  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    I'm saddened by the fact that you don't know how to declare/save an int..
    Reply With Quote  
     

  10. #10  
    Registered Member Logisti-X's Avatar
    Join Date
    Jul 2008
    Age
    30
    Posts
    678
    Thanks given
    25
    Thanks received
    19
    Rep Power
    75
    Quote Originally Posted by i r maggot View Post
    I'm saddened by the fact that you don't know how to declare/save an int..
    Why the fuck do you think I posted a help thread?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •