Jump to content
Tekken

Ошибка в скипте

Recommended Posts

Скажите пожалуйста что за ошибка такая? Спасибо за ранее!!!

npc/instances/EndlessCellar.txt

script error on npc/instances/EndlessCellar.txt line 311

parse_line: need ';'

306 : if('EC_Floor == 77)

307 : set [email protected]$,has_instance("[email protected]");

308 : else if('EC_Floor < 77)

309 : set [email protected]$,has_instance((('EC_Floor-1) / 20 + 1)+"@new");

310 : mes "Alive mobs(variable): "+'EC_Mobs;

* 311 : mes "Alive mobs(real): "+getmapmobs'('[email protected]$);

312 : close;

313 : case 5:

314 : mes "Are you sure?";

315 : next;

316 : if(select("Yes:No") == 2) close;

Edited by Bazar2009
Link to comment
Share on other sites

@Sparrow вы не правы.после переменной не нужно закрывать кавычки.

Link to comment
Share on other sites

Заглянули бы сперва в script_commands.txt, затем писали бы ответы.

mes "Alive mobs(real): "+getmapmobs([email protected]$);

заменить на

mes "Alive mobs(real): "+mobcount([email protected]$,"all");

Edited by Lilith
  • Upvote 1
Link to comment
Share on other sites

Lilith спасибо большое /no1 Появилась еще одна проблемка, как сделать так чтоб доступ был только у групп пользователей id 1, в char_athena.conf я делал доступ id 1 и в login_athena.conf тоже ставил, но вот в чем проблема, кроме этой группы больше ни кто не сможет зайти, даже сам ГМ. Как сделать так чтобы заходили определенные группы?

Link to comment
Share on other sites

login_athena.conf

// Required account group id to connect to server.

// -1: disabled

// 0 or more: group id

group_id_to_connect: 1

Link to comment
Share on other sites

Я вот и говорю что если я поставлю там 1 то ГМ не сможет зайти, вот в чем проблема.

Link to comment
Share on other sites

Обнови эмулятор, добавлена опция минимальной группы в этом же файле.

// Minimum account group id required to connect to server.

// Will not function if group_id_to_connect config is enabled.

// -1: disabled

// 0 or more: group id

min_group_id_to_connect: 1

Link to comment
Share on other sites

Скажите пожалуйста в чем проблема, в двух скриптах МАП сервер ругается.

1 скрипт: Второй раз потом запускается и не работает.

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Source (NPC): announce_monster (invisible/not on a map)

[Warning]: script:get_val: cannot access player variable '@monsterh', defaulting to 0

2 скрипт:

[Error]: npc_event: event not found [announce2::OnMobDead]

Edited by Tekken
Link to comment
Share on other sites

1.Нет приаттаченного игрока - некому присвоить переменную.Как вариант поменять тип переменной,если она не нужна только для 1 персонажа на время.

2.Проверьте названия нпц с эвентом OnMobDead - announce2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.