BlackGold Опубликовано 18 октября, 2015 Жалоба Поделиться Опубликовано 18 октября, 2015 (изменено) Здравствуйте! Не могу разобраться в чём проблема, вроде другие нпц отображают русский а некоторые нет. Подскажите кто сталкивался с таким? clientinfo <?xml version="1.0" encoding="Win-1251" ?> <clientinfo> <servicetype>russia</servicetype> <servertype>primary</servertype> <connection> <display>Welcome</display> <desc>RO</desc> <address>127.0.0.1</address> <port>6900</port> <version>25</version> <langtype>14</langtype> <registrationweb></registrationweb> <aid> <admin>2000000</admin> <admin>2000001</admin> </aid> <loading> <image>loading00.jpg</image> <image>loading01.jpg</image> <image>loading02.jpg</image> <image>loading03.jpg</image> <image>loading04.jpg</image> <image>loading05.jpg</image> <image>loading06.jpg</image> <image>loading07.jpg</image> <image>loading08.jpg</image> </loading> </connection> </clientinfo> Изменено 18 октября, 2015 пользователем BlackGold Ссылка на комментарий Поделиться на другие сайты Поделиться
Functor Опубликовано 18 октября, 2015 Жалоба Поделиться Опубликовано 18 октября, 2015 Здравствуйте! Возможно, проблема в кодировке файла с НПЦ.P.S. Картинка не загружается. 1 Ссылка на комментарий Поделиться на другие сайты Поделиться
BlackGold Опубликовано 18 октября, 2015 Автор Жалоба Поделиться Опубликовано 18 октября, 2015 (изменено) Здравствуйте! Возможно, проблема в кодировке файла с НПЦ.P.S. Картинка не загружается.Вот сам Нпц какой код меняет кодировку //===== *Athena Script =======================================//= Disguise Race Script//===== By: ==================================================//= KamiShi//===== Current Version: =====================================//= 1.3//===== Compatible With: =====================================//= *Athena SVN//===== Description: =========================================//= Race Master related stuff//= We use permanent char variables to define races://= race_id = 0 // Human//= race_id = 1 // Dark Elf//= race_id = 2 // Light Elf//= race_id = 3 // Merman//= race_id = 4 // Orc//= race_id = 5 // Vampire//= race_id = 6 // Lycan//= race_id = 7 // Dragoon//= race_id = 8 // Demon//= race_id = 9 // Dark Soul//= race_id = 10 // Light Soul//= race_id = 11 // Earth Element//= race_id = 12 // Wind Element//= race_id = 13 // Water Element//= race_id = 14 // Fire Element//= race_id = 15 // Electric Element//= race_id = 16 // Shadow Element//= race_id = 17 // Ghost Element//= race_id = 18 // Poison Element//= race_id = 19 // Holy Element//= race_id = 20 // Undead Element//=========================================================// You should not use this following NPC if you don't want to// use the *disguise* system, but the *item* system.//=========================================================prontera,174,176,3 script Race Master 618,{mes "[^008B00Race Master^000000]";if(race_id){mes "I see that you got a race choose!";next;mes "[^008B00Race Master^000000]";mes "Do you want to become human again?";next;switch(select("No:Yes")){case 1:mes "[^008B00Race Master^000000]";mes "I'll be here if you change your mind...";close;case 2:mes "[^008B00Race Master^000000]";mes "Done!";set race_id,0;callfunc("resetSavedSets");callfunc("setlook2", 6, 1);callfunc("setlook2", 7, 1);// announce "[Race Master]: ["+strcharinfo(0)+"] has became a human again...",bc_all,"0xFFEBCD";dispbottom "[Race Master]: You has become a human again...";close;}}mes "I can help you to change your Human essence.";mes "Which race are you interested in?";next;switch(select("Dark Elf:Light Elf:Merman:Orc:Vampire:Beast:Demon:Dragoon:Light Soul:Dark Soul")){case 1: //Dark Elfmes "You are select the: Dark Elf";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 1;break;}case 2: //Light Elfmes "You are select the: Light Elf";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 2;break;}case 3: //Mermanmes "You are select the: Merman";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 3;break;}case 4: //Orcmes "You are select the: Orc";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 4;break;}case 5: //Vampiremes "You are select the: Vampire";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 5;break;}case 6: //Beastmes "You are select the: Beast";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 6;break;}case 7: //Dragonmes "You are select the: Dragon";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 7;break;}case 8: //Demonmes "You are select the: Demon";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 8;break;}case 9: //Light Soulmes "You are select the: Light Soul";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 9;break;}case 10: //Dark Soulmes "You are select the: Dark Soul";mes "For this race you need to collect:";mes "1x "+getitemname(7720)+"";mes "15.000.000 Zeny";if (select("Yes", "No") == 2) close;else{if(Zeny < 15000000 || countitem(7720) < 1)close;set Zeny, Zeny - 15000000;delitem 7720,1;callfunc "BecomeRace", 10;break;}}mes "[^008B00Race Master^000000]";mes "Now you are a ^008B00"+$RaceNames$[race_id]+"^000000!";// announce "[Race Master]: ["+strcharinfo(0)+"] has became a "+$RaceNames$[race_id]+"",bc_all,"0xFFEBCD";dispbottom "[Race Master]: You has become a "+$RaceNames$[race_id]+"";close;}//=========== *DISGUISE SYSTEM* ==================//==== callfunc ("BecomeRace", <id>); ============//================================================function script BecomeRace {set race_id,getarg(0); // Race IDcallfunc("setlook2", 6, $RacePals[race_id*4+2]); // Number of the first race hair dyecallfunc("setlook2", 7, $RacePals[race_id*4]); // Number of the first race clothes dyespecialeffect2 248; // Some fancy effectreturn;}Ссылка на скрин https://cloud.mail.r.../2FcM/mzvruFzu4 Изменено 18 октября, 2015 пользователем BlackGold Ссылка на комментарий Поделиться на другие сайты Поделиться
Functor Опубликовано 18 октября, 2015 Жалоба Поделиться Опубликовано 18 октября, 2015 1. Если выкладывать, то файл. Речь же шла про кодировку файла.2. Где в НПЦ русские сообщения, о которых Вы писАли в первом посте? 1 Ссылка на комментарий Поделиться на другие сайты Поделиться
BlackGold Опубликовано 18 октября, 2015 Автор Жалоба Поделиться Опубликовано 18 октября, 2015 1. Если выкладывать, то файл. Речь же шла про кодировку файла.2. Где в НПЦ русские сообщения, о которых Вы писАли в первом посте?Ссылка на файл https://cloud.mail.ru/public/DRHz/LYa3u9CnRЕсли создать новый текстовый документ и вбить туда нпц , решить проблему может ? Ссылка на комментарий Поделиться на другие сайты Поделиться
Functor Опубликовано 18 октября, 2015 Жалоба Поделиться Опубликовано 18 октября, 2015 Открываете файл с помощью Notepad++ Кодировки - Преобразовать в ANSIСохранить 1 Ссылка на комментарий Поделиться на другие сайты Поделиться
BlackGold Опубликовано 18 октября, 2015 Автор Жалоба Поделиться Опубликовано 18 октября, 2015 Открываете файл с помощью Notepad++ Кодировки - Преобразовать в ANSIСохранитьСпасибо! Ссылка на комментарий Поделиться на другие сайты Поделиться
ucell-uz Опубликовано 22 ноября, 2015 Жалоба Поделиться Опубликовано 22 ноября, 2015 (изменено) я лично никаким нотепадом ++ не пользуюсь обычный блокнот встроенный в винде... с стандартной кодировкой цп1251сам клиентинфо<?xml version="1.0" encoding="cp-1251" ?><clientinfo><servicetype>america</servicetype><servertype>primary</servertype><hideaccountlist></hideaccountlist><extendedslot></extendedslot></clientinfo>вбей в свой клиент инфо кодинг цп1251 вбей в конфиги афины где база мускула Изменено 22 ноября, 2015 пользователем ucell-uz Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения