[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
NoX Forum • View topic - how to can i treat console commands by script codes.
Page 1 of 1

how to can i treat console commands by script codes.

PostPosted: Mon Jan 30, 2017 12:10 pm
by panic

Re: how to can i treat console commands by script codes.

PostPosted: Tue Jan 31, 2017 8:25 am
by panic
require expand script functions...
(maybe, expand script patch)

1. treat console command by script code.
it was very innovative.

example codes

cmdline("racoiaws");
cmdline("set spell SPELL_WALL off");

2. treat detailed properties of object.
can modify object flags.
- no_collision
- no_update
- dead
- push_character
- etc...

even, it was change max health of object.
(or speed)

3. about mana amount of object.
it is can check mana amount or restore mana from object.

example codes

CurrentMana(object)
RestoreMana(object)

4. add on kill event.
if it is not impossible, it can use by function setCallback(setProperty).

release relation.
self - dead unit id.
other - kill unit id.

5. available 'createMover' code and control 'sentry ray globe' direction by script.

6. add new enchant 'ENCHANT_POISON'.

7. available create 'magic missile' object.
also, harpoonBolt, RoundChakrumMotion ...
you can't put your map.
because, it will be stop nox.

however... now, it was impossible... T_T