[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
[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 - Digit Counter
Page 1 of 1

Digit Counter

PostPosted: Tue Dec 11, 2018 8:17 pm
by kitty
Created a basic kill counter in Nox Script 3.0, feel free to use:
- Does not require Unimod or patch files
- Max value: 9999
- Open Digits.ns to see code
- - Usage: HandleDigits(123);
- - Requires: 5 named waypoints

Image

Re: Digit Counter

PostPosted: Sun Dec 23, 2018 11:50 am
by panic

Re: Digit Counter

PostPosted: Sun Dec 23, 2018 11:51 am
by panic
result:

Re: Digit Counter

PostPosted: Sun Dec 23, 2018 11:56 am
by panic
StopScript code can ignore all data types

int ToInt(float x)
{
StopScript(x);
}

float ToFloat(int x)
{
StopScript(x);
}

Re: Digit Counter

PostPosted: Sun Dec 23, 2018 11:22 pm
by kitty
Thank you for the code panic! Your code is definitely much cleaner than mine! Also good to have for a visually horizontal counter.

A+!

Re: Digit Counter

PostPosted: Mon Dec 24, 2018 12:20 am
by panic
did you use another program for make number form?

or make by hand?

Re: Digit Counter

PostPosted: Mon Dec 24, 2018 12:26 am
by panic
as another issue, 'WhiteMoveOrb' will does destroyed when out the sight. so i recommend using 'ManaBombOrb' instead of it.

Re: Digit Counter

PostPosted: Mon Dec 24, 2018 5:23 am
by kitty