diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
commit | cf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch) | |
tree | f9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/functions/input.txt | |
parent | 8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff) | |
download | serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2 serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip |
Override
Diffstat (limited to 'npc/functions/input.txt')
-rw-r--r-- | npc/functions/input.txt | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/npc/functions/input.txt b/npc/functions/input.txt deleted file mode 100644 index cf0382d2..00000000 --- a/npc/functions/input.txt +++ /dev/null @@ -1,66 +0,0 @@ -// Evol functions. -// Author: -// 4144 -// Description: -// Input utility functions -// Variables: -// none - -function script menuint { - deletearray .@vals; - .@menustr$ = ""; - .@cnt = 0; - - for (.@f = 0; .@f < getargcount(); .@f = .@f + 2) - { - if (getarg(.@f) != "") - { - .@menustr$ = .@menustr$ + getarg(.@f) + ":"; - .@vals[.@cnt] = getarg(.@f + 1); - .@cnt ++; - } - } - - .@vals[.@cnt] = -1; - @menu = 255; - @menuret = -1; - select(.@menustr$); - if (@menu == 255) - return -1; - - @menu --; - if (@menu < 0 || @menu >= getarraysize(.@vals) - 1) - return -1; - - @menuret = .@vals[@menu]; - return @menuret; -} - -function script menustr { - deletearray .@vals$; - .@menustr$ = ""; - .@cnt = 0; - - for (.@f = 0; .@f < getargcount(); .@f = .@f + 2) - { - if (getarg(.@f) != "") - { - .@menustr$ = .@menustr$ + getarg(.@f) + ":"; - .@vals$[.@cnt] = getarg(.@f + 1); - .@cnt ++; - } - } - - @menu = 255; - @menuret = -1; - select(.@menustr$); - if (@menu == 255) - return ""; - - @menu --; - if (@menu < 0 || @menu >= getarraysize(.@vals$)) - return ""; - - @menuret$ = .@vals$[@menu]; - return @menuret$; -} |