Someone understand C# and Java code?

02/21/2015 23:26 Action10#1
Someone understand C# and Java code?
02/22/2015 00:05 Farius~#2
what you need?
02/22/2015 00:08 Action10#3
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


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);
}
}
02/22/2015 02:02 chinadk#4
you should better go to ask hellspider .
02/22/2015 23:04 fastswipe#5
Quote:
Originally Posted by Action10 View Post
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
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.

I don't know why but is there any other function thats called?
02/22/2015 23:34 Action10#6
this code have one erro newItem.setFlag(ItemState.UPDATE);


this code for update item
but when u buy one item SHop and use relog account item you buy disappears
when i delete this code newItem.setFlag(ItemState.UPDATE); can buy normal item shop and relog account he not disappears but item can't update for other item understand now?
02/23/2015 00:37 guesswho-.-#7
there are so many things you could do to check whats wrong. I dont know what this code is supposed to do so we could guess forever whats wrong. at least tell us what the whole program is
02/23/2015 01:17 Farius~#8
still do not understand you are trying to do.
02/23/2015 03:02 Action10#9
I'm trying fix item inventory update new item when u buy shop and use
when you use item for not back item old used understand now
02/23/2015 13:14 fastswipe#10
Okay so if i understood this right, this is for the dshop purchase ppanels, you're trying to make the user able to purchase an item and make it appear in his inventory.

Lets narrow it down, is this code for the item to appear in the inventory, or is it for the purchase?

It's really hard to understand you mate, you need to improve your English m8. <3
02/23/2015 14:45 Action10#11
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
02/24/2015 22:13 fastswipe#12
Quote:
Originally Posted by Action10 View Post
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
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 db
02/25/2015 00:00 Action10#13
Yess this man you right #fastswipe "Saving Info"
but no dekaron other system

#Done i fixed this error :)

#Done i fixed this error :)