Thread: Adding gravestones

Results 1 to 6 of 6
  1. #1 Adding gravestones 
    Member Adding gravestones Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    26
    Posts
    1,410
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    what i'm trying to do is make every item you have equipped/in inventory will write into the char file then delete all them items.

    Code:
    in this format public int graveItems[] = new int[39];

    ????
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Mar 2012
    Posts
    411
    Thanks given
    58
    Thanks received
    19
    Rep Power
    11
    friendly bump.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    how do you mean write into the char file then delete all them items
    hi
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2012
    Posts
    411
    Thanks given
    58
    Thanks received
    19
    Rep Power
    11
    this is saving
    Code:
    public int graveItems[] = new int[39];
    and ive allowed 39 slots for it, so it has enough for every item in your inv and everything equipped.
    so when u die outside of wildy or any safe zones, i need a method that will save the item id's of everything you have into the char file
    which looks like this
    [GRAVEITEMS]
    grave =

    and keeps going
    sorry if this is hard to understand.
    Reply With Quote  
     

  5. #5  
    Donator
    Trivium's Avatar
    Join Date
    Nov 2009
    Posts
    290
    Thanks given
    21
    Thanks received
    88
    Rep Power
    48
    Somewhat confused on what you're asking, you want to save the values stored in the array(The values being your inventory items and equipment) in the character file, then remove all of the players items/equipment?

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2012
    Posts
    411
    Thanks given
    58
    Thanks received
    19
    Rep Power
    11
    yes, i just need it to save first, becuase i can just use deleteAllItems().
    so i really just need the saving of it. i just dont understand how it would look.


    Code:
    	public void addToGrave() {
    		for(int i = 0; i < c.playerItems.length; i++) {
    			c.getItems().addGrave(c.playerItems[i], i,c.playerItemsN[i]);
    		}
    	}
    Code:
    	public boolean addGrave(int itemID, int fromSlot, int amount) {
    	
    	}
    This is just looking at bank all, im thinking it would be similar to this?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. gravestones on RSPS
    By wa3ad in forum Configuration
    Replies: 19
    Last Post: 07-03-2012, 10:41 AM
  2. Replies: 7
    Last Post: 07-19-2009, 06:08 PM
  3. [Dodian]Full gravestones with timers
    By Zahhak in forum Tutorials
    Replies: 22
    Last Post: 03-18-2009, 06:57 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •