INSERT INTO `clan` VALUES ('1','Swordman Clan','Raffam Oranpere','prontera','500');
INSERT INTO `clan` VALUES ('2','Arcwand Clan','Devon Aire','geffen','500');
INSERT INTO `clan` VALUES ('3','Golden Mace Clan','Berman Aire','prontera','500');
INSERT INTO `clan` VALUES ('4','Crossbow Clan','Shaam Rumi','payon','500');
CREATE TABLE IF NOT EXISTS `clan_alliance`(`clan_id`int(11)unsigned NOT NULL DEFAULT '0',`opposition`int(11)unsigned NOT NULL DEFAULT '0',`alliance_id`int(11)unsigned NOT NULL DEFAULT '0',`name` varchar(24) NOT NULL DEFAULT '',
PRIMARY KEY (`clan_id`,`alliance_id`),
KEY `alliance_id`(`alliance_id`)) ENGINE=MyISAM;--------------------------------Recordsof clan_alliance
------------------------------
INSERT INTO `clan_alliance` VALUES ('1','0','3','Golden Mace Clan');
INSERT INTO `clan_alliance` VALUES ('2','0','3','Golden Mace Clan');
INSERT INTO `clan_alliance` VALUES ('2','1','4','Crossbow Clan');
INSERT INTO `clan_alliance` VALUES ('3','0','1','Swordman Clan');
INSERT INTO `clan_alliance` VALUES ('3','0','2','Arcwand Clan');
INSERT INTO `clan_alliance` VALUES ('3','0','4','Crossbow Clan');
INSERT INTO `clan_alliance` VALUES ('4','0','3','Golden Mace Clan');
INSERT INTO `clan_alliance` VALUES ('4','1','2','Arcwand Clan')
From what it looks like to me in the first insert the 1 is the swordsman clan, enemy is null and they are allied to golden mace clan?
In the third insert the arcwand clan (2) is enemies with the swordman clan (1) and allied with crossbow (4)?
I see that is not right though. Can anyone explain to me how to change the alliance system?
I want to make them all enemies with each other
--- Solved:
Nvm I figured it out, the first value is the clan you are targeting, opposition 0 is ally, 1 is enemy, the alliance id is actually the clan you are saying is either the enemy or ally and the name is what appears in the ctrl + g window of ally or enemy
Question
Tzuridis
From what it looks like to me in the first insert the 1 is the swordsman clan, enemy is null and they are allied to golden mace clan?
In the third insert the arcwand clan (2) is enemies with the swordman clan (1) and allied with crossbow (4)?
I see that is not right though. Can anyone explain to me how to change the alliance system?
I want to make them all enemies with each other
--- Solved:
Nvm I figured it out, the first value is the clan you are targeting, opposition 0 is ally, 1 is enemy, the alliance id is actually the clan you are saying is either the enemy or ally and the name is what appears in the ctrl + g window of ally or enemy
Edited by TzuridisLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.