Adding +21 gear (not fully working)

03/07/2016 15:35 silverstryfe#1
Hi,

I have added +13 to +21 on my server, I can spawn them, I can see the stats on the weapon and on the attack details. The damage on mobs is the same, though...

I don't think the issue is client-side, I have all the files.

Server side I added in itemtype.dat and itemadd.txt. Am I missing something?

[Only registered and activated users can see links. Click Here To Register...]
03/07/2016 15:40 pro4never#2
Does your server not have a database at all? I only ask cause a lot of sources seem to use flat files (reading from itemadd/itemtype) but most would need you to add the updated data to your actual server side database for it to work.
03/07/2016 16:01 silverstryfe#3
Quote:
Originally Posted by pro4never View Post
Does your server not have a database at all? I only ask cause a lot of sources seem to use flat files (reading from itemadd/itemtype) but most would need you to add the updated data to your actual server side database for it to work.
It does have a database.

There is a table "items" which are just the items that accounts have, and there is itemtype, where I already added the item manually. Without that added I wouldn't be able to spawn the item.

I'm actually using your source, redux.


I think I might have found it.. I didn't add anything in the itemadd table.
Though, It would take days to add that stuff manually. Is there a way to just copy-paste everything from the itemadd.ini file into a query or something? I'm realy new to that so If u could give me an example on how to do it that would be great!

Thanks.
03/07/2016 16:11 CrimsonFart#4
Why +21 gear, holy crap.
03/07/2016 19:06 silverstryfe#5
Quote:
Originally Posted by CrimsonFart View Post
Why +21 gear, holy crap.
No no, the question is, why only +12?

Anyways, do you know how I can import my itemadd.ini into the itemadd table?
03/07/2016 19:11 pro4never#6
Quote:
Originally Posted by silverstryfe View Post
It does have a database.

There is a table "items" which are just the items that accounts have, and there is itemtype, where I already added the item manually. Without that added I wouldn't be able to spawn the item.

I'm actually using your source, redux.


I think I might have found it.. I didn't add anything in the itemadd table.
Though, It would take days to add that stuff manually. Is there a way to just copy-paste everything from the itemadd.ini file into a query or something? I'm realy new to that so If u could give me an example on how to do it that would be great!

Thanks.

Write a program to write the necessary SQL queries to insert it into the database. That's the quickest way IMO. Should take 5 minutes to do a basic string formatter to do the job.
03/07/2016 19:20 silverstryfe#7
Quote:
Originally Posted by pro4never View Post
Write a program to write the necessary SQL queries to insert it into the database. That's the quickest way IMO. Should take 5 minutes to do a basic string formatter to do the job.

Eh, thanks for your replies but, can u simplify that? I'm not that smart :o
Can't I import wizard it with navicat?
Like copy paste the itemadd.ini into a .txt file and then import wizard.


Nevermind.. There is also a KEY colum which needs to be added manually i suppose..
Not willing to do this for 1000 items :/
03/07/2016 22:12 pintinho12#8
1. Create a program to read every line of the Itemadd.ini
2. Transform every line into an SQL line
3. Execute it at Mysql

not that hard
10 minutes of code to save hours of work
03/07/2016 22:37 Spirited#9
This was one thing Navicat did well that I miss in MySQL Workbench. In Navicat, you can import data from any file format using file delimiters and a predefined table structure. I'm not saying go pirate Navicat, but if you chose to make a program to read in a file, make it generic enough to repeat the same process on multiple files, similarly to how Navicat did it.
03/07/2016 22:53 silverstryfe#10
I edited my itemadd.txt with office word to replace every space with a tab so it imports correctly into navicat, but the problem is that it doesn't have the KEY colum.. It just puts 0 as KEY and it gives me an error.
03/09/2016 12:56 silverstryfe#11
can someone help me how the Key id works?
03/09/2016 13:19 turk55#12
[Only registered and activated users can see links. Click Here To Register...]
03/09/2016 14:36 silverstryfe#13
Not realy helped but okay, thanks.

Would it work like what I read here?
[Only registered and activated users can see links. Click Here To Register...]

I added it to my program.cs but got an error.. Maybe because I didn't delete my itemadd table in the databse?
I'm afraid to do so because I don't want to screw up :p

EDIT:

I added everything to the itemadd table in the database. But the +21's still don't work..? :s
03/11/2016 17:09 silverstryfe#14
Someone?
03/11/2016 18:00 Spirited#15
This is some really simple shit. Add to client file, add to server database. That is all folks. If you're struggling this hard to do this, trying to modify the source and creating errors... hell, trying to even add +21 in the first place, then maybe you shouldn't be running a private server? We don't need more shitty servers like the one your friend is also trying to make. I'll say to you what I said to him: Nobody wants this shit. People want to see progress and an actual game out of Conquer Online - and adding things from 2009 private servers isn't going to do that. Having absolutely zero knowledge on database management and programming is a huge red flag as well. It all just points to a shitfest, so give up. Go learn how to program in a general case.