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.
|
|
Well I've tried it and it doesn't work. W/e, for farther reference PM me, right now this is turning into spam.
Give me an example of coding:
my example
Please explainCode:if (c.lendId == keepItem[3]) { c.getItems().keepItem(c.lendId, 1); }

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
Doesn't work that way. I've tried many things.
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.
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.
Lending items are for the loose.![]()
All I need is one little piece of code that keeps a certian id of an item.
Not rewriting models....
| « [PI] NPCs | Lending System Interface » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
| Tags for this Thread |