From e3df7d8ebda36542c477beba281dfc3f9c737af4 Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 10 Oct 2018 16:23:19 -0400 Subject: bake buildin_prompt into buildin_select and clarify the difference between the two --- src/map/script.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index 9c72b793c..f05eb802c 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -177,6 +177,8 @@ struct item_data; #define BUILDIN(x) bool buildin_ ## x (struct script_state* st) +#define get_buildin_name(st) ( script->get_str((int)(script_getdata((st), 0)->u.num)) ) + #define script_fetch(st, n, t) do { \ if( script_hasdata((st),(n)) ) \ (t)=script_getnum((st),(n)); \ -- cgit v1.2.3-60-g2f50 From 5c59f230d982a2e0201956a6f9f853253b9f3c5f Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 11 Oct 2018 18:24:20 -0400 Subject: add constants for max menu length and options --- doc/script_commands.txt | 6 ++++-- src/map/clif.c | 2 +- src/map/script.c | 30 ++++++++++++++++-------------- src/map/script.h | 3 +++ 4 files changed, 24 insertions(+), 17 deletions(-) (limited to 'src/map/script.h') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index aa7141951..98bc7b0e5 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -714,6 +714,8 @@ MAX_BANK_ZENY - Maximum Zeny in the bank MAX_BG_MEMBERS - Maximum BattleGround members MAX_CHAT_USERS - Maximum Chat users MAX_REFINE - Maximum Refine level +MAX_MENU_OPTIONS - Maximum NPC menu options +MAX_MENU_LENGTH - Maximum NPC menu string length Send targets and status options are also hard-coded and can be found in 'doc/constants.md'. @@ -1616,8 +1618,8 @@ and empty options. *prompt("