View Full Version : [SOLVED] So I added the working Dueling Script.

01-27-2014, 08:09 AM
this is the script: http://pastebin.com/8i9P3MwM

when I applied it, there was no errors. So I logged into the server and tried to test it.

I did a duel, and it started counting down from 3 like a normal duel. When it came to 1 the server crashed. Worldserver says:

[1054] Unknown column "duelW" in "field list"
Your databse structure is not up to date. Please make sure you've executed all queries in the sql/updates folders.

- I have executed all the queries into my database, so that can't be what's causing this crash. Help! :(

01-27-2014, 08:24 AM
also, a new error came up after I executed all the queries in the database. I get disconnected when I try to connect to the server. Worldserver.exe says:

WorldSocket::handle_input_header(): client (account: 0, char [GUID: 0, name: <none>]) sent malformed packet (size: 52800, cmd: -1243127330)

01-27-2014, 09:11 AM
Did you run the SQL provided in the code at the top to DB?
Seems like you didnt or it failed and you didnt notice it.
player->GetGUID() bad usage : | Should change all GetGUID to GetGUIDLow

01-27-2014, 09:37 AM
I changed them to GetGuidlow and it error'ed. If it's just GetGuid it was flawless. o.O

01-27-2014, 09:48 AM
Hmm okay so, I updated all GetGuid to GetGuidLow. I forgot to use a capital L so it errored. It works now, but it doesnt give any rating to the player.

Screenshot: http://imgur.com/0E7Tq0e

Note that I finished the duel = it should show rating given/lost.

01-27-2014, 10:01 AM
Did you add the config options to worldserver.conf?
And then set the rating to true (1)?

BTW. even though the script says it has phasing available, it doesnt.

01-27-2014, 10:32 AM
Yeah, I added that rating thing to config. http://imgur.com/8S8tZeR

01-28-2014, 05:18 AM