Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 04:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Someone understand C# and Java code?

Discussion on Someone understand C# and Java code? within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
Someone understand C# and Java code?

Someone understand C# and Java code?
Action10 is offline  
Old 02/22/2015, 00:05   #2
 
Farius~'s Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 573
Received Thanks: 341
what you need?
Farius~ is offline  
Old 02/22/2015, 00:08   #3
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
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);
}
}
Action10 is offline  
Old 02/22/2015, 02:02   #4
 
elite*gold: 0
Join Date: Jan 2011
Posts: 27
Received Thanks: 0
you should better go to ask hellspider .
chinadk is offline  
Old 02/22/2015, 23:04   #5
 
elite*gold: 0
Join Date: Oct 2011
Posts: 149
Received Thanks: 34
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?
fastswipe is offline  
Old 02/22/2015, 23:34   #6
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
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?
Action10 is offline  
Old 02/23/2015, 00:37   #7



 
guesswho-.-'s Avatar
 
elite*gold: 293
Join Date: Jan 2012
Posts: 2,445
Received Thanks: 1,100
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
guesswho-.- is offline  
Old 02/23/2015, 01:17   #8
 
Farius~'s Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 573
Received Thanks: 341
still do not understand you are trying to do.
Farius~ is offline  
Old 02/23/2015, 03:02   #9
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
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
Action10 is offline  
Old 02/23/2015, 13:14   #10
 
elite*gold: 0
Join Date: Oct 2011
Posts: 149
Received Thanks: 34
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
fastswipe is offline  
Old 02/23/2015, 14:45   #11
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
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
Action10 is offline  
Old 02/24/2015, 22:13   #12
 
elite*gold: 0
Join Date: Oct 2011
Posts: 149
Received Thanks: 34
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
fastswipe is offline  
Old 02/25/2015, 00:00   #13
 
elite*gold: 0
Join Date: May 2012
Posts: 272
Received Thanks: 136
Yess this man you right #fastswipe "Saving Info"
but no dekaron other system

#Done i fixed this error

#Done i fixed this error
Action10 is offline  
Reply


Similar Threads Similar Threads
Java Error Code
11/03/2013 - Minecraft - 2 Replies
Morgen, Ich bekommen wenn ich auf meinem neuem V-Server ( Windows ) die run.bat starte immer ein Error Code von Java http://www7.pic-upload.de/03.11.13/ubj6eh3lr5ob.j pg Das ganze sieht dan so aus. In der run.bat steht folgendes: @echo off
[S]HTML/Java Code
01/02/2013 - Coders Trading - 10 Replies
Hallo ich suche ein HTML code oder Java wo man zbs elitepvpers.com rein schreiben kann und es dann in der liste angezeigt wird weiß jemand wie man das macht oder wo man das her bekommt ? ich gebe e*Gold dafür wenn es wirklich klappt am besten mit hilfe.
[JAVA] Zurückspringen im Code
12/25/2012 - General Coding - 7 Replies
Hallo! Und zwar habe ich folgende Frage... Ich möchte ein Programm (in Java) programmieren, dass Daten einer Person erfassen kann, sie in einer Textdatei abspeichern/auslesen kann usw.. Wenn ich also im Menü bin.. Person aufnehmen<1> Personen auflisten<2>
Java Code Search Request
01/06/2012 - General Coding - 9 Replies
Hallo Ich bin noch nicht ganz fit mit java, deswegen wollte ich euch bitten mir ein wenig hilfe zu geben. Und zwar werden seit gestern die Packete von DarkOrbit verschlüsselt, die ich natürlich entschlüsseln möchte. Nun hatte ich versucht den Weg zu verfolgen, bin zwar ein wenig weiter gekommen, doch immer noch nicht am Ziel. Das ganze kommuniziert über ein XMLSocket. Hier die HauptDatei: http://do.a.bpcdn.net/spacemap/main.swf
A few questions about Arcane Code, that I do not understand
11/23/2010 - SRO Coding Corner - 16 Replies
Hi, I introduce myself, My name is Jonathan I'm student in IT, and I'm actually looking for coding C/C++ sro server. I know that this will be long and hard >.< But I htink it is a good way to involve my skils :) I'm actually basing my work on Arcane server (I think it is the best so :) But there is something that I didn't understand >.< (I think all will be good after ^^')



All times are GMT +1. The time now is 04:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.