Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 General (https://postpacific.mmorpg-game.online/forumdisplay.php?f=31)
-   -   [Share] NASC.EXE C1-L2NPC compatible (https://postpacific.mmorpg-game.online/showthread.php?t=3509)

kvoxi 28.02.2006 20:50

[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.

archy 28.02.2006 20:58

nice.. :)

johnsmith2 28.02.2006 21:05

great share
250 donate from me

toolpunk 28.02.2006 21:16

indeed :D
250 from me, as well^^

archy 28.02.2006 21:27

251 from me (yeah i just had to top the others :P)

Kirikups 01.03.2006 10:24

no more php ai fix to use ?

OnlyOne 01.03.2006 11:16

Nice! Keep it going :P

Kirikups 01.03.2006 11:34

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

kvoxi 02.03.2006 09:54

Quote:

Originally Posted by Kirikups
i have a problem with floats:
f0 = 1;
say("Debug : f0 = " + f0): -> return Debug : f0 = 0.000000 :shock:
Regards

1) Try to compile ur code with original NASC.exe and test results.
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

Kirikups 02.03.2006 10:41

okaydokey dok, ty for your answer :)

kvoxi 04.03.2006 15:51

Quote:

Originally Posted by Kirikups
okaydokey dok, ty for your answer :)

nop

nucer 08.03.2006 13:09

WOW!! Will test!! :) :) Thnks!!

filrip 08.03.2006 13:24

good job, and thx

djedai 08.03.2006 19:37

Hi All. i have a questions.
How i can decompiled AI.obj

Truffe 08.03.2006 19:41

By searching in this forum (since someone planned to write a decompiler)...

Sauron 10.03.2006 12:36

wow nice... 2k donated

Xellos 18.03.2006 17:02

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)

kvoxi 18.03.2006 18:35

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

Xellos 18.03.2006 18:56

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

kvoxi 18.03.2006 18:58

Quote:

Originally Posted by Xellos
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

already added/fixed :)

Sauron 19.03.2006 04:59

Quote:

Originally Posted by Xellos
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

what new things?

Xellos 19.03.2006 15:33

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 ;)

Arshen 21.03.2006 14:07

So .. what is this NASC.exe used for?

toolpunk 21.03.2006 14:08

compiling ai code without the later need of ai-fix.php...

Kenster 24.03.2006 07:39

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.