summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-31 16:54:24 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-31 16:54:24 -0300
commit02f9f13bda976e9afd38436ef56c2a81d09ef9fe (patch)
tree03aa0ba7fda87d203e751f07cb768ae0d02193ff /npc/functions
parent948a3bb78bda9b3152f0b0b395d5681330572ca8 (diff)
downloadserverdata-02f9f13bda976e9afd38436ef56c2a81d09ef9fe.tar.gz
serverdata-02f9f13bda976e9afd38436ef56c2a81d09ef9fe.tar.bz2
serverdata-02f9f13bda976e9afd38436ef56c2a81d09ef9fe.tar.xz
serverdata-02f9f13bda976e9afd38436ef56c2a81d09ef9fe.zip
Remove selectd (unused function)
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/quest-debug/functions.txt35
1 files changed, 1 insertions, 34 deletions
diff --git a/npc/functions/quest-debug/functions.txt b/npc/functions/quest-debug/functions.txt
index f89adfab7..9dd057ad6 100644
--- a/npc/functions/quest-debug/functions.txt
+++ b/npc/functions/quest-debug/functions.txt
@@ -14,7 +14,7 @@ function script GenericQuestDebug {
if (!debug && !is_admin())
{
select
- menuimage("actions/back", l("Go back"));
+ l("Go back");
@menuret = -0x7FFFFFFF;
return 1;
@@ -73,37 +73,4 @@ function script GenericQuestDebug {
-// selectd
-// like a normal select() but gives access to quest debug
-//
-// quest id can either be passed as first argument
-// or as the .quest_debug npc variable
-function script selectd {
- .@menustr$ = rif(debug, menuaction(l("debug")));
- .@count = getargcount();
- .@f = 0;
- .@questID = getvariableofnpc(.quest_debug, strnpcinfo(0));
-
- if (.@count > 1 && !isstr(getarg(0)))
- {
- ++.@f;
- .@questID = getarg(0);
- }
-
- for (; .@f < .@count; ++.@f)
- {
- .@menustr$ += ":" + getarg(.@f);
- }
-
- @menu = 255;
- select .@menustr$;
-
- switch (@menu)
- {
- case -1:
- case 255: return -1;
- default: @menu -= 1; return @menu; // FIXME: here I would have done `return --@menu;` but hercules prevents this
- case 1: callfunc "QuestDebug" + .@questID; closedialog; end;
- }
-}