![]() |
|
|
#22 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
kvoxi, here is another thing to check for u
the commented out lines will crash your NASC mod, because they refer to "level" field of the event container. please check ![]() [php:1:70a659aeec]. EventHandler DOOR_HP_LEVEL_INFORMED(talker, level, fhtml0, i0, i1, i2) { if (Castle_IsUnderSiege()) ShowPage(talker, fnSiegeStoppedFunction); else { i0 = GetCookie(talker, "gate_price"); i1 = GetCookie(talker, "gate_level"); i2 = GetCookie(talker, "gate_num"); // if (level >= i1) { FHTML_SetFileName(fhtml0, fnCurrentDoorLevelHigher); // FHTML_SetInt(fhtml0, "doorlevel", level); ShowFHTML(talker, fhtml0); } // *snip*... here is the code to lvlup the doors } } .[/php:1:70a659aeec] and here the code (from ai.obj) that refers to "level" [php:1:70a659aeec]. push_event // level push_const 188 add fetch_i .[/php:1:70a659aeec] and another small thing: the TelePosList in npcserver contains 6 parameters, NASC will only compile with 5 - are u able to extend this list to 6 parameters? sry to bother u again
|
|
|
|
|