Please help a noob out!

04/11/2009 09:18 bonthan#1
Hi i'm using Powersource and the guide in "Making CO Private Server USEING MYSQL WORK ON PATCH 5017". I finally set up the server and everything but found out there's a lot things that are wrong, since I know nothing about coding (i'm trying to take it next year), I can't do anything but believe me I tried. So here's a few problems with the source that I couldn't figure out.

Dis City quest don't work:
I notice that replacing Solar Saint was Artisan Wind, when I click him it does not do anything. So I checked Navicat database of the code, Solar Saint was there in the database and the exact coordinate that Artisan Wind is standing on, but there was no Solar Saint. I looked in CoServerProject folder and opened the .cs and .ini files with notepad but none of them have Solar Saint entry in it or even his ID 104814.

No portal to Metzone
I tried opening portal.cs but it was short and I don't think I can anything in that file.

Pedlar
Remember Pedlar in twin city, I tried to make a command that give me Dragonball and Meteor but it doesn't work, so I figured I could make Pedlar sell DragonBall. So I went to Debug folder in the source file and opened up shop.dat, under pedlar I typed in Item27 and then DragonBall item code. Logged in the game, and still Pedlar doesn't sell DragonBall.

Can't get warrior level 120 Dragon Shield
I tried to use commands to get Super Dragon Shield for warriors but it didn't give me that item, I typed the code in 8 times, the code was right, but the item is not there, so I typed in the code to get the FireShield level 110 and tried to upgrade it to 120 but after upgrading I got level 40 Shield instead. I figured this must be the problem on the client side and not the source?

Adding scroll commands don't work
Since I cannot use Solar saint to teleport to Dis City I thought i might go there by making up a command to scroll to dis city. So I went into the client.cs file and opened it with note pad, search for /scroll and under:
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "pc")
MyChar.Teleport(1011, 188, 264);
if (Splitter[1] == "dc")
MyChar.Teleport(1000, 500, 650);
if (Splitter[1] == "bi")
MyChar.Teleport(1015, 723, 573);
if (Splitter[1] == "am")
MyChar.Teleport(1020, 565, 562);
if (Splitter[1] == "market")
MyChar.Teleport(1036, 198, 194);
if (Splitter[1] == "tc")
MyChar.Teleport(1002, 429, 378);
I typed:
if (Splitter[1] == "disc")
MyChar.Teleport(1039, 240, 060);

There is another region below that has /scroll too so I added in the code line in there too. Logged into the server, tried "/scroll disc" and nothing happened.



Like I said I'm noob but I'm trying my best learn for myself so rather than asking for codes and get flammed i prefer to do it myself by fail miserably so please help. I also wanted to make guild war code and add mobs but soon realized that it's out of my league. Trust me I searched the site for instructions but only found codes instruction for other sources, I looked through C sharp tutorials but I see no relation to what I'm doing. Sorry for the long post.
04/11/2009 09:40 rider1992#2
hey
i think 120 shields Are just at patch 5065 and
portals u can i think edit on ur database go have a look ^^
and ur client have to be edited to i think for sell dbs at pedlar
:)
04/11/2009 10:05 bonthan#3
Ah. thank you very much. I tried adding portal in New Desert but didn't work. I will try try it again. And when you say i have to edit client to sell dragonball you mean the conquer client or client.cs in source file?
04/11/2009 10:12 rider1992#4
in co folder / ini
at Shop.dat or something like this and in ur Debug folder thats what i would try :) good luck ^^
04/11/2009 12:18 Korvacs#5
Your scroll commands should had 1 if at the top then the rest else if.

Are you hitting F6 after making your changes?
04/11/2009 14:06 flaMe~#6
Quote:
Originally Posted by Korvacs View Post
Your scroll commands should had 1 if at the top then the rest else if.

Are you hitting F6 after making your changes?
I presume all the other /scroll commands work.


Man i'm really not sure, I have added in the exact command you're trying to add in before. Could you post some more of the code? Like a big section, would make it easier for us to help.

Remember to [ code ] your codes ;)
04/11/2009 16:52 CoAttack#7
i think what korvacs is trying to say is do something like this..correct me if im mistaken

Code:
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "pc")
MyChar.Teleport(1011, 188, 264);
else if (Splitter[1] == "dc")
MyChar.Teleport(1000, 500, 650);
else if  (Splitter[1] == "bi")
MyChar.Teleport(1015, 723, 573);
else if  (Splitter[1] == "am")
MyChar.Teleport(1020, 565, 562);
else if  (Splitter[1] == "market")
MyChar.Teleport(1036, 198, 194);
else if  (Splitter[1] == "tc")
MyChar.Teleport(1002, 429, 378);
}
04/11/2009 17:30 LetterX#8
Pedlar is located in Shop.dat; open it via Notepad and Search "Pedlar"; from there, you'll have to find the ItemID of X item and enter it into the field, by either replacing or adding a new field.

I don't think the level 120 shield exists in 5016/5017 (or March 2008).

For the codes/editing the source - Are you only editing the files through Notepad, and then saving them? Because you'll need a compiler (either use the one that comes with the .Net Framework and is accessible via Command Prompt or use Visual C# 2008 (or another 3rd party application)).
04/11/2009 17:46 Zatoichi#9
you could easily make your own lvl 120 shield, or 125, or 130, (etc etc). And that way you'll have some real custom content in your game.
04/11/2009 18:24 bonthan#10
Quote:
Originally Posted by Korvacs View Post
Your scroll commands should had 1 if at the top then the rest else if.

Are you hitting F6 after making your changes?
Well I don't have "else if" but other scroll commands like /scroll tc don't have else if either but they worked. Lol and what does F6 do to the notepad file?

Quote:
Originally Posted by CoAttack View Post
i think what korvacs is trying to say is do something like this..correct me if im mistaken

Code:
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "pc")
MyChar.Teleport(1011, 188, 264);
else if (Splitter[1] == "dc")
MyChar.Teleport(1000, 500, 650);
else if  (Splitter[1] == "bi")
MyChar.Teleport(1015, 723, 573);
else if  (Splitter[1] == "am")
MyChar.Teleport(1020, 565, 562);
else if  (Splitter[1] == "market")
MyChar.Teleport(1036, 198, 194);
else if  (Splitter[1] == "tc")
MyChar.Teleport(1002, 429, 378);
}
According to LetterX I'm gonna try using a compiler rather than editting it through notepad
And Zatoichi, i downloaded conquer client 5017 they probably won't have level 120 shield mesh i presume if I make cusmon weapons they will look the same?
04/11/2009 18:39 CoAttack#11
you just triple posted you know you can multi quote then click add reply...

#request infraction he joined long ago he should know how to edit TRIPLE POST.
04/11/2009 19:40 bonthan#12
Quote:
Originally Posted by CoAttack View Post
you just triple posted you know you can multi quote then click add reply...

#request infraction he joined long ago he should know how to edit TRIPLE POST.
ok fine sorry i didn't pay attention.
Infraction please. Just editted I hope that makes you happy



And guys I used microsoft C# compiler and editted the scroll commands to dis city the command worked but i always teleport me to training ground. I used the coordinates near solar saint. Anyone have a valid Dis City coordinate that I can try putting in because maybe the coordinates in entered in are invalid
04/12/2009 00:48 tao4229#13
Quote:
Originally Posted by bonthan View Post
ok fine sorry i didn't pay attention.
Infraction please. Just editted I hope that makes you happy



And guys I used microsoft C# compiler and editted the scroll commands to dis city the command worked but i always teleport me to training ground. I used the coordinates near solar saint. Anyone have a valid Dis City coordinate that I can try putting in because maybe the coordinates in entered in are invalid
Wrong map ID.
04/12/2009 08:27 bonthan#14
Quote:
Originally Posted by tao4229 View Post
Wrong map ID.
No I don't think it's wrong ID, the ID i got for Dis City is 1039 i typed it in the code and that leads me to training ground, I went to another thread that says Dis City map id is 2039, I tried that too, which also leads to training ground.
04/12/2009 10:53 king212001#15
Official member of the I Spanked MysticMerchant Club


LOLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL

GOOOD