Hello ,
I wrote my first patch which allows to bet one a match of arena .
The players who participate in the match can use the command .parier (i'm french sorry ) to bet copper coins.
The winning team gets back the money divided by the number of player in the team.
The Patch (New Version) : http://pastebin.com/f5d884f74
The .SQL on the world database
CREATE TABLE `arena_pari` (
`instance_id` SMALLINT NOT NULL ,
`or` INT NOT NULL ,
INDEX ( `instance_id` )
) ENGINE = MYISAM ;
INSERT INTO mangos_string (`entry`,`content_default`) VALUES
("11200","Vous devez parier une somme d'argent !");
INSERT INTO mangos_string (`entry`,`content_default`) VALUES
("11201","Vous n\\'etes pas en arene !");
INSERT INTO mangos_string (`entry`,`content_default`) VALUES
("11202","Il faut que le match ne soit pas commence pour parier !");
INSERT INTO mangos_string (`entry`,`content_default`) VALUES
("11203","Votre pari a bien ete enregistre");
INSERT INTO `command` VALUES
("parier","0","Syntax: .parier #coppercoin Bet on a match of arena");
The compilation passes but I can't make out a will in game so I don't know if it works .
I'm french so if you don't understand me , i'm sorry .