10 #include "../bscript/berror.h" 11 #include "../bscript/impstr.h" 12 #include "../clib/clib_endian.h" 13 #include "../clib/logfacility.h" 14 #include "../clib/rawtypes.h" 34 msg->WriteFlipped<
u16>(
sizeof msg->buffer );
35 msg->Write<
u32>( serial );
36 msg->WriteFlipped<
u32>( 0x15u );
44 if ( uoemod ==
nullptr )
49 if ( textlen <= 120 && msg->text[textlen - 1] ==
'\0' )
53 for (
int i = 0; i < textlen; ++i )
55 if ( !isprint( msg->
text[i] ) )
81 !exec.getStringParam( 2, prompt ) )
86 if ( chr->
client ==
nullptr )
96 if ( !uoexec.suspend() )
98 DEBUGLOG <<
"Script Error in '" << scriptname() <<
"' PC=" << exec.PC <<
": \n" 99 <<
"\tCall to function UO::RequestInput():\n" 100 <<
"\tThe execution of this script can't be blocked!\n";
bool has_active_prompt() const
ValueStackCont ValueStack
Mobile::Character * prompt_chr
void send_prompt(Network::Client *client, u32 serial)
Core::UOExecutor & uoexec
Bscript::BObjectImp * mf_PromptInput()
void handle_prompt(Network::Client *client, PKTBI_9A *msg)
bool getCharacterParam(Bscript::Executor &exec, unsigned param, Mobile::Character *&chrptr)
Module::UOExecutorModule * prompt_uoemod
void Send(Client *client, int len=-1) const
bool getItemParam(Executor &exec, unsigned param, Items::Item *&itemptr)
const char * data() const
void send_sysmessage(Network::Client *client, const char *text, unsigned short font, unsigned short color)
Module::OSExecutorModule * os_module