NEED HELP WITH CoEmu source

10/08/2009 20:49 madmax313#1
When You upgrade the level or quality of an item it returns to its original state when you log out and log back in. how do i get it to upgrade and save that way?
10/08/2009 20:54 blade911#2
/save
10/08/2009 21:13 Basser#3
@Blade, that's not a efficient way to fix it. It's a Leecher's way to fix it.
10/08/2009 21:51 blade911#4
Quote:
Originally Posted by Smythe94 View Post
@Blade, that's not a efficient way to fix it. It's a Leecher's way to fix it.

Reported.
10/08/2009 23:43 Arcо#5
Quote:
Originally Posted by blade911 View Post
Reported.
There is no reason to report him.
He did not call you a leecher specificly and he did not flame you.

@ThreadStarter
Post your entire code for the NPC here.
I might be able to help you.
10/09/2009 02:44 pro4never#6
It is one of two things (forgive me for being vague, I haven't coded a server at all in months and it took me a while to find the problem also)


Possibility 1:
In the database saving. There is a problem in the base code for coemu for saving items. it does not save the items properly, it was a fairly simple fix of changing the code around to fit your item stats code (so if you've added composition or any other things like that to your server you should update the save function to reflect it)


Possibility 2:
The save function is not being called properly

So lets say the save function is coded properly (to save/update the database) but the server doesn't invoke that save code


If I remember correctly it's the first possibility but I know for a fact it's one of the two.... or you could just look at a more functional source to see how they have it coded and then see the differences (no copy/paste, just gives you some good examples for fixing stuff)
10/10/2009 15:37 Basser#7
@Blade, Sorry for saying the truth. It's not how to fix it, it's just how a leecher would fix it.
10/10/2009 16:32 sawickas#8
I hawe god coemu,if here are real coder who will work on it and realaise it i will give it to him its Not alex source it My And my team work but i will not make p server, its codet 90% Real 90% so if any good coder leav here MSN i will give him it to finish and realaise it :)
10/11/2009 17:41 samehvan#9
Quote:
Originally Posted by madmax313 View Post
When You upgrade the level or quality of an item it returns to its original state when you log out and log back in. how do i get it to upgrade and save that way?
-after upgrading Database.UpdateItem(your iteminfo here)
10/11/2009 17:54 blade911#10
Quote:
Originally Posted by Smythe94 View Post
@Blade, Sorry for saying the truth. It's not how to fix it, it's just how a leecher would fix it.

(this is old but I thought I'd reply)

It's the way to fix it if you don't know how.