Implemented script command opentips (#8005)
- Opens the tip box UI for the attached player or the given character ID.
This commit is contained in:
@@ -26957,6 +26957,22 @@ BUILDIN_FUNC(has_autoloot) {
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
}
|
||||
|
||||
BUILDIN_FUNC(opentips){
|
||||
#if PACKETVER < 20171122
|
||||
ShowError( "buildin_opentips: This command requires PACKETVER 20171122 or newer.\n" );
|
||||
return SCRIPT_CMD_FAILURE;
|
||||
#else
|
||||
map_session_data* sd;
|
||||
|
||||
if (!script_charid2sd(3, sd)) {
|
||||
return SCRIPT_CMD_FAILURE;
|
||||
}
|
||||
|
||||
clif_ui_open( *sd, OUT_UI_TIP, script_getnum(st, 2) );
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <custom/script.inc>
|
||||
|
||||
// declarations that were supposed to be exported from npc_chat.cpp
|
||||
@@ -27713,6 +27729,7 @@ struct script_function buildin_func[] = {
|
||||
BUILDIN_DEF(isdead, "?"),
|
||||
BUILDIN_DEF(macro_detector, "?"),
|
||||
BUILDIN_DEF(has_autoloot,"?"),
|
||||
BUILDIN_DEF(opentips, "i?"),
|
||||
|
||||
#include <custom/script_def.inc>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user