Someone understand C# and Java code?
Quote:
private void equipWeapons(PlayerEqipment eqipment) {
if(checkNotChanged(eqipment.getEquippedItemBySlot( ItemSlotType.PRIM), first)) {
PlayerItem newItem = getChangedItem(eqipment.getItemsByType(ItemType.WE APON), first);
if(newItem != null) {
PlayerItem oldItem = eqipment.getEquippedItemBySlot(ItemSlotType.PRIM);
if(oldItem != null) {
Player.setFlag(ItemState.UPDATE);
newItem.setFlag(ItemState.UPDATE); <--When i add this code can Update but item [disappears] WHEN RELOG ACCOUNT
eqipment.getEquippedItemBySlot(ItemSlotType.PRIM). setEquipped(Boolean.FALSE);
}
Item.setFlag(ItemState.UPDATE);
eqipment.equipItem(newItem);
}
}
I dont know the bigger picture of the code, all i know that its a method probably called when switching weapons, if you get no programming error from the code then the code as you stated, is running and it switches weapon, but it removes it for some reason.Quote:
i need fix one bug
i need create one system for update item Java Source
newItem.setFlag(ItemState.UPDATE); <--When i add this code can Update but item [disappears] WHEN RELOG ACCOUNT
Are you sure its something to do with that script thing? Im not dekaron dev but if the problems occur in the way you describe them you need to check what happens when the player loggout, since it does not save them. (You know when you press Esc and loggout it says "Saving Info" or something like that, the server might not manage to save it to the server) try looking in dbQuote:
my english not good
I'm trying to say it
when I buy an item in the shop and use it.
After I relogo account, the item I bought it is in the inventory but not in use.
back to using the old item that I was using before