![]() |
[Share] NASC.EXE C1-L2NPC compatible
This is modified NASC - L2NPC compatible
Try it. More powerful version is in progress. It wil be my own compiler. You can donate my work, if you like this nasc-version. |
nice.. :)
|
great share
250 donate from me |
indeed :D
250 from me, as well^^ |
251 from me (yeah i just had to top the others :P)
|
no more php ai fix to use ?
|
Nice! Keep it going :P
|
i have a problem with floats:
f0 = 1; say("Debug : f0 = " + f0): -> return Debug : f0 = 0.000000 :shock: and say("Debug : ms.sm.lev = " + myself.sm.level); -> return Debug : ms.sm.lev = 40 :) say("Debug : sp.lev = " + speller.level); -> return Debug : sp.lev = 80 :) f0 = (myself.sm.level / speller.level); say("Debug : f0 = " + f0); -> return Debug : f0 = 0.000000 :shock: Regards |
Quote:
2) Try this: Say("Debug: max_hp="+myself.sm.max_hp); Difference between f0 and myself.sm.max_hp is: f0 - type float max_hp - type double |
okaydokey dok, ty for your answer :)
|
Quote:
|
WOW!! Will test!! :) :) Thnks!!
|
good job, and thx
|
Hi All. i have a questions.
How i can decompiled AI.obj |
By searching in this forum (since someone planned to write a decompiler)...
|
wow nice... 2k donated
|
found two small things that are still wrong/missing,
but good work kvoxi, your NASC is a great help :) p_state - wrong offset original:[php:1:2f273a4528]. push_event // myself push_const 28 add fetch_i // p_state push_const 2308 add fetch_i .[/php:1:2f273a4528] kvoxi mod:[php:1:2f273a4528]. push_event // myself push_const 28 add fetch_i // p_state push_const 2496 add fetch_i .[/php:1:2f273a4528] attack_tick - missing offset original:[php:1:2f273a4528]. push_event // myself push_const 28 add fetch_i // attack_tick push_const 2356 add push_reg_sp fetch_i push_const 200 assign shift_sp -1 .[/php:1:2f273a4528](the sample means: "myself.attack_tick = 200;" found in one of the gludio agit AIs) |
Thx Xellos
But: 1) p_state(offset 2308) and p_state(offset 2496) is the same variables 2) sorry, but not all variables is exists in public version of nasc i will change p_state from 2496 to 2308 Thx Xellos for criticism |
are u able to add missing things?
the decompiler shows me sometimes new things and it would be nice to use them with NASC btw - that's no criticism, u did a great job and we are getting close to a real C1 version - thx |
Quote:
|
Quote:
|
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 ;) |
So .. what is this NASC.exe used for?
|
compiling ai code without the later need of ai-fix.php...
|
Ok. This program causes my server to crash with bugs. DONT use the download link. Although it is great to use, and it fixes and adds many skills, its totally messed up. Anyone have an updated link maybe?
|
| All times are GMT. The time now is 21:56. |