=( dang was hoping for no core work
Lunar Gaming - Reaching For The Stars
nice +rep , would be nice if you keep sharing this kind of stuff
I always share my work =D
Lunar Gaming - Reaching For The Stars
Epic +rep hope you can make it so there hostile
Would seem like this will have to really be done right in the core. Maybe the factions.cpp? Would seem like the best fit there. For example adding something like this right to the faction.cpp right at the top of it:
Code:if(aguild = vguild) return false; QueryResult * res = WorldDatabase.Query("SELECT * FROM `guild_wars` WHERE `aguild` = '%s' AND `bguild` = '%s';", aguild, vguild); if(res == NULL) return false; Field * guilds = res->Fetch(); if(guilds == NULL) return false; else return true;
Last edited by Dr. Livingstone; 06-24-2009 at 03:13 PM.
Ima try this script, it looks awesome!![]()
Thanks i'm glad all of you like this script
Lunar Gaming - Reaching For The Stars
nice job, +rep
well its not very nice sry but use summons... so guilds will fight...
or phases :P
Violence doesn't solve shit, but everything else.
I'm having alot of trouble with this one, I've converted it to Aspire, it compiles fine, no errors, however in game when I open the options to declare war or peace and type in the guild name I want to be hostile or peaceful with it crashes the server. Something wrong with the MYSQL functions maybe?
When i run this SQL i get this error
and when i make the database my self and just runCode:[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"guildwars"' at line 1 [Err] CREATE DATABASE "guildwars"; [Msg] Finished - Unsuccessfully --------------------------------------------------
i get this errorCode:CREATE TABLE "guild_wars" ( "aguild" text, "bguild" text ); LOCK TABLES "guild_wars" WRITE; UNLOCK TABLES;Code:[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"guild_wars" ( "aguild" text, "bguild" text )' at line 1 [Err] CREATE TABLE "guild_wars" ( "aguild" text, "bguild" text ); [Msg] Finished - Unsuccessfully --------------------------------------------------