Junior Spellweaver
- Joined
- Aug 5, 2012
- Messages
- 174
- Reaction score
- 11
I added wouter01000's fix and cleaned up the files abit.
You must be registered to see links
@AKIIX if you have any problem with me merging revisions as you release them just say and I will take this down.
Can you reupload the link, beacause its down?
And my fixes?
How can i download it?
so ehm.... They try to SQL injection me via bots :$
Do you think its possible?
Just allow AKllX to make new revision, not releasing yours SwiftEmu edits. It's mindfucking for others.
2
I didn't know that the client allowed more than 16 characters for bots name, like for pets. That should fix it and I recommend all of you to apply it.
Search for:
dbClient.runFastQuery("UPDATE user_bots SET name = '" + Data + "' WHERE id = '" + BotId + "'");
and Replace with
dbClient.runFastQuery("UPDATE user_bots SET name = '@data' WHERE id = '" + BotId + "'");
dbClient.addParameter("data",Data);
dbClient.setQuery("UPDATE user_bots SET name = '@data' WHERE id = '" + BotId + "'");
dbClient.addParameter("data", Data);
dbClient.runQuery();
Ahh.. Thats why someone was admin, and all bots got renamed to Y in my hotel. lol.Ser?
They use this Y';UPDATE users SET rank = '7' WHERE username = 'SulakeC';#
Ehm.. i will disable bots ...
I'm going to disable bots on the Github Repo.
Why, lol? "The" bug has just been fixed, or?
Is it not
Because you run the query before the parameter has been set.Code:dbClient.setQuery("UPDATE user_bots SET name = '@data' WHERE id = '" + BotId + "'"); dbClient.addParameter("data", Data); dbClient.runQuery();
#Sorry if I'm wrong.
dbClient.setQuery("UPDATE user_bots SET name = @data WHERE id = '" + BotId + "'");
dbClient.addParameter("data", Data);
dbClient.runQuery();
What's going to be new in
Revision 5 or 6?
Also I only know half of C#,
so i'll be making some of my own edits.
C# is just an progamming language. My advice for learning them is to do overall algorithms first. Once you start thinking algorithmically you never stop and any 'Programming language' will be just a tool. Use normal C to organize your thinking process and print it into the console. Don't start with Objective-C nor C++. Neither C# because it's a high level programming language. (High level doesn't mean high complexity!)
Do some mathematical algorithms such: Generate the first 100 even numbers; Generate the first 100 primes numbers; Check if a point is inside a triangule given 3 points of this triangule in a plane; Bubblesort sorting algorithm for a 100 positions array. All of these are very basic and when you fell confortable with them you can go for something deeper such the 'Travelling salesman problem'You must be registered to see links. Them you realize all languages are almost the same and you can adapt yourself