Page 1 of 1

current Player Language

Posted: Sun Mar 17, 2019 6:03 pm
by Ememjr
digging through DB and code it does not appear that the current language of the player is saved anywhere

Code: Select all

ALTER TABLE `xxxxxxxx`.`characters`   
  ADD COLUMN `current_language` INT(10) UNSIGNED DEFAULT 0 NOT NULL AFTER `level`;
once this is added i will write the supporting code to load when character info loads, save with save character,
and as time permits start adding the support so

if i speak dwarven and you dont,

the hear say packet has a place for language when it is sent out, then when it is read back in on other characters the language will be there and checked if the recieving player speaks it or not, if not they will reveive a messge similar to Jab says something you dont understand

thanks

Re: current Player Language

Posted: Sun Mar 17, 2019 11:55 pm
by Jabantiz
That was put up on the patcher, new minor version is 31, version.h has already been committed.

Re: current Player Language

Posted: Mon Mar 18, 2019 5:28 am
by Ememjr
JAB, I made a mistake, this change should be removed as it is not needed
after i was writing my code and had to do a search for current_language i then found

the current language code and entry in DB already
its in character details

Re: current Player Language

Posted: Mon Mar 18, 2019 4:40 pm
by Jabantiz
Ok I am just removing it from the patcher then, it will have to be manually deleted on the server side.