Thread: Lending System, LOOK!

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Well I've tried it and it doesn't work. W/e, for farther reference PM me, right now this is turning into spam.
    Reply With Quote  
     

  2. #12  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,741
    Thanks given
    207
    Thanks received
    1,022
    Rep Power
    2351
    this is simple lol

    before checking the value of each item, have a check for a lended item in the inventory or equipment. if one is lended, keep that and then only check twice.
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Give me an example of coding:
    my example
    Code:
    if (c.lendId == keepItem[3]) {
    c.getItems().keepItem(c.lendId, 1);
    }
    Please explain
    Reply With Quote  
     

  4. #14  
    Banned

    Join Date
    Dec 2006
    Age
    25
    Posts
    2,196
    Thanks given
    5
    Thanks received
    23
    Rep Power
    0
    im pretty sure you can do keepItem(int(lendedItem), 1); to append the string to an int, but it's been awhile since i did java
    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Doesn't work that way. I've tried many things.
    Reply With Quote  
     

  6. #16  
    Registered Member
    Join Date
    Jul 2010
    Posts
    72
    Thanks given
    0
    Thanks received
    1
    Rep Power
    14
    Tbh it should work with what Shocker said that's what I mean by casting an int you have a string but you can make java interpret it as an integer, but as Songoty said it would be more beneficial to have a method that if you have a lended item to always keep it no matter what.
    Reply With Quote  
     

  7. #17  
    Registered Member
    Brady's Avatar
    Join Date
    Apr 2009
    Posts
    1,714
    Thanks given
    354
    Thanks received
    368
    Rep Power
    1633
    Why not add the models of lended items, so they're a different ID like on a 508. Where theirs a red dot, and make that ID always keep in the config file. Should work, I never managed to mess with PI.
    Reply With Quote  
     

  8. #18  
    Registered Member
    Join Date
    Jul 2010
    Posts
    72
    Thanks given
    0
    Thanks received
    1
    Rep Power
    14
    Quote Originally Posted by `Brady View Post
    Why not add the models of lended items, so they're a different ID like on a 508. Where theirs a red dot, and make that ID always keep in the config file. Should work, I never managed to mess with PI.
    Because if you go this route you have a lot of model converting and ItemDef's to write....not exactly ideal but I guess it would create a more professional system
    Reply With Quote  
     

  9. #19  
    Member
    Join Date
    Mar 2009
    Age
    19
    Posts
    810
    Thanks given
    142
    Thanks received
    17
    Rep Power
    0
    Lending items are for the loose.
    Steven / 'Mystic Flow says:
    *xD xD
    *I really missed seeing your funny trolls around the site
    *xd
    /TROLLMERICA
    Reply With Quote  
     

  10. #20  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    All I need is one little piece of code that keeps a certian id of an item.
    Not rewriting models....
    Reply With Quote  
     

Page 2 of 3 FirstFirst 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

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