ExclamationCharacter creation quickfix (this involves character saving)

Posts 115 of 24 · Page 1 of 2
Character creation quickfix (this involves character saving)
With this, you solve the character creation bug (no row added to the database) and so the character saving bug.
In wServer>ClientProcessor.cs, line 313:
Code:
bool ok = true;
            cmd = db.CreateQuery();
            cmd.Parameters.AddWithValue("@accId", account.AccountId);
            cmd.Parameters.AddWithValue("@charId", nextCharId);
            cmd.Parameters.AddWithValue("@charType", pkt.ObjectType);
            cmd.Parameters.AddWithValue("@items", character._Equipment);
            cmd.Parameters.AddWithValue("@stats", Utils.GetCommaSepString(stats));
            cmd.CommandText = "INSERT INTO characters (accId, charId, charType, level, exp, fame, items, hp, mp, stats, dead, pet) VALUES (@accId, @charId, @charType, 1, 0, 0, @items, 100, 100, @stats, FALSE, -1);";
            int v = cmd.ExecuteNonQuery();
            //int v = 1;
            ok = v > 0;
Care, there's no return in the cmd.CommandText string.
Quote Originally Posted by Trapped View Post
Care, there's no return in the cmd.CommandText string.
That's awesome! Thanks for the fix! Also I'm not hable to re-build the server since my version of visual C# doesnt allow the using of solution.. :3
It would be nice if you could show us how / send us the .exe? :3
Ahaha also thx again for one of your awesome fixes/release :3
@Alde. Click Thaaaaanks! <3
I don't know, the approval mechanic here on MPGH is really annoying. Try looking for some kind of online compiler
Thanks very much , it works
@Axeall I know it works. What I make always work, because I think about what I'm doing before publishing it here.
Do you have any suggestion for a compiler?
You are making awesome job with these fixes
@CrazyJani Thanks. Currently working on a JSON to WMAP converting class (using the existing ones).
Quote Originally Posted by Trapped View Post
line 313
How would we check which line in visual basics?(forgive me, I'm a newbie to coding)
Awesome! +Thanks
@gainb From Visual C#:Tools>Options and Settings>(click All settings)Text Editor>All languages>Line numbers
Quote Originally Posted by Trapped View Post
@CrazyJani Thanks. Currently working on a JSON to WMAP converting class (using the existing ones).
There is already such a class, you just need to make a simple class that calls the class and writes it to a file, should be 1-2 lines of code.
Posts 115 of 24 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?