Перейти к содержанию

Помогите с Нпц Endless Cellar


Рекомендуемые сообщения

Сдесь написанно что то про сценарий и группу игроков Тоесть если я правильно понял если не в пати персонаж то сценарий остановится и он не телепортнётся)


[Error]: Loading NPC file: npc/instances/EndlessCellar.txt
script error on npc/instances/EndlessCellar.txt line 87
Unexpected newline at string.
82 : mes "^0000FFEndless Cellar^000000 - Try to reserve";
83 : mes "After making a reservation, you have to talk to NPC
behind and";
84 : mes "select the menu 'Enter the Dungeon' to enter the du
ngeon";
85 : close2;
86 : set .@instance_id,instance_create("Endless Cellar",getch
arid(1))";
* 87 : if(.@instance_id < 0){
88 : mes "Failed to create Memorial Dungeon.";
89 : mes "^FF0000Memorial Dungeon instances reached i
ts limit.^000000";
90 : mes "Please report this error to an administrato
r or GM.";
91 : close;
92 : }

Ещё бы понять в чём тут ошибка и всё))) на 294 ой строке вроде убрал)


set .@instance_id, instance_create("Endless Cellar", getcharid(1));

А это вот не помогло(((

вот такое за то появилось )))


[Error]: Loading NPC file: npc/instances/EndlessCellar.txt
script error on npc/instances/EndlessCellar.txt line 87
parse_callfunc: expected ')' to close argument list
82 : }
83 : mes "^0000FFEndless Cellar^000000 - Try to reserve";
84 : mes "After making a reservation, you have to talk to NPC
behind and";
85 : mes "select the menu 'Enter the Dungeon' to enter the du
ngeon";
86 : close2;
* 87 : set .@instance_id, instance_create("Endless Cellar"',' g
etcharid(1));
88 : if(.@instance_id < 0){
89 : mes "Failed to create Memorial Dungeon.";
90 : mes "^FF0000Memorial Dungeon instances reached i
ts limit.^000000";
91 : mes "Please report this error to an administrato
r or GM.";
92 : close;
[Error]:
script error on npc/instances/EndlessCellar.txt line 294
parse_callfunc: not enough arguments, expected ','
289 : next;
290 : input .@level,0,77;
291 : if(.@level == 0) close;
292 : }
293 : if(.@level == 77)
* 294 : warp has_instance'('"5@new",156,65);
295 : else {
296 : setarray .@warpx[0],96,184,270,354;
297 : setarray .@warpy[0],393,309,221,137,51;
298 : set .@x,.@warpx[((.@level-1) % 20) % 4];

299 : set .@y,.@warpy[((.@level-1) % 20) / 4];

[Error]: Missing 75 right curlys at file 'npc/instances/EndlessCellar.txt', line
'999'.

Ссылка на комментарий
Поделиться на другие сайты

Ладно фиг с ним)) неполучается, Исправляю одно вылазиет второе ((( Переписать сам несмогу потому-что многого не понимаю ))) Всем Спасибо))) Может быть как нибудь потом исправлю и сделаю)

Ссылка на комментарий
Поделиться на другие сайты

нужно заменить :


set .@instance_id, instance_create("Endless Cellar", getcharid(1));

на :


set .@instance_id, instance_create("Endless Cellar");

и вместо :


warp has_instance("5@new",156,65);

напиши :


instance_enter("Endless Cellar");

а лучше даже что-то такое :


switch(instance_enter("Endless Cellar")) {
case 3:
mes "An unknown error has occurred.";
close;
case 2:
mes "The memorial dungeon Endless Cellar does not exist.";
mes "The party leader did not generate the dungeon yet.";
close;
case 1:
mes "You can enter the dungeon after making the party.";
close;
case 0:
end;
}

Изменено пользователем Nurkz
  • Upvote 1
Ссылка на комментарий
Поделиться на другие сайты

нужно заменить :


set .@instance_id, instance_create("Endless Cellar", getcharid(1));

на :


set .@instance_id, instance_create("Endless Cellar");

и вместо :


warp has_instance("5@new",156,65);

напиши :


instance_enter("Endless Cellar");

а лучше даже что-то такое :


switch(instance_enter("Endless Cellar")) {
case 3:
mes "An unknown error has occurred.";
close;
case 2:
mes "The memorial dungeon Endless Cellar does not exist.";
mes "The party leader did not generate the dungeon yet.";
close;
case 1:
mes "You can enter the dungeon after making the party.";
close;
case 0:
end;
}

Ещё 3 ошибки вылетело((( 2 поправил одна ещё есть на 311 линии) это бесконечно)

Изменено пользователем Fizik
Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...
Яндекс.Метрика