![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
nice..
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jan 2006
Posts: 82
|
great share
250 donate from me |
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
indeed
![]() 250 from me, as well^^ |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
251 from me (yeah i just had to top the others :P)
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
no more php ai fix to use ?
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Apr 2005
Posts: 98
|
Nice! Keep it going :P
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
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 |
|
|
|
|
#9 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
okaydokey dok, ty for your answer
|
|
|
|
|
#11 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
|
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 117
|
WOW!! Will test!!
Thnks!!
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2005
Posts: 99
|
good job, and thx
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Nov 2005
Posts: 50
|
Hi All. i have a questions.
How i can decompiled AI.obj |
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2005
Posts: 944
|
By searching in this forum (since someone planned to write a decompiler)...
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
wow nice... 2k donated
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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) |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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 |
|
|
|
|
#20 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
|
|
|
|
|
|
#21 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
Quote:
|
|
|
|
|
|
#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
|
|
|
|
|
#23 |
|
Архивный участник
Join Date: Mar 2006
Posts: 111
|
So .. what is this NASC.exe used for?
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
compiling ai code without the later need of ai-fix.php...
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Sep 2005
Posts: 455
|
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?
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|