Форум · Полнота восстановления · Каталог вариантов

[Share] NASC.EXE C1-L2NPC compatible — Xellos — #36670

Сообщение в форуме

Снимок 2006-05-29 11:15 UTC

Имя в снимке: Xellos · Источник Wayback

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 Smile

 [b]PHP:[/b] 

[code] <?php .
    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
        }
    }
.  [/code]

and here the code (from ai.obj) that refers to "level"

 [b]PHP:[/b] 

[code] <?php .
    push_event    //  level
    push_const 188
    add
    fetch_i
.  [/code]

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 Wink