11 #include "../bscript/eprog.h" 12 #include "../clib/clib_endian.h" 13 #include "../clib/logfacility.h" 14 #include "../clib/rawtypes.h" 15 #include "../clib/refptr.h" 16 #include "../plib/systemstate.h" 71 msg->WriteFlipped<
u16>(
static_cast<u16>( i + 1 ) );
79 msg->WriteFlipped<
u16>(
static_cast<u16>( value ) );
84 msg->WriteFlipped<
u16>(
static_cast<u16>( value ) );
85 msg->Write<
u8>( av.
lock() );
87 msg->WriteFlipped<
u16>( av.
cap() );
99 u16 len = msg->offset;
101 msg->WriteFlipped<
u16>( len );
102 msg.
Send( client, len );
114 if ( !uoskill.
pAttr )
120 INFO_PRINT <<
"Client " << client->
chr->
name() <<
" tried to set an illegal lock state.\n";
156 if ( bob ==
nullptr )
163 if ( client->
chr->has_party() )
164 client->
chr->party()->send_stat_to( client->
chr, bob );
ref_ptr< Bscript::EScriptProgram > find_script2(const ScriptDef &script, bool complain_if_not_found, bool cache_script)
void quickconfig(const Plib::Package *pkg, const std::string &name_ecl)
unsigned char lock() const
const Mobile::Attribute * pAttr
void send_short_statmsg(Network::Client *client, Mobile::Character *chr)
unsigned short cap() const
bool is_visible_to_me(const Character *chr) const
bool inrange(const UObject *c1, unsigned short x, unsigned short y)
unsigned short default_attribute_cap
const UOSkill & GetUOSkill(unsigned skillid)
void srequest(Network::Client *client, PKTIN_34 *msg)
NetworkManager networkManager
void Send(Client *client, int len=-1) const
const AttributeValue & attribute(unsigned attrid) const
#define STATTYPE_SKILLWINDOW
#define STATTYPE_STATWINDOW
int effective_tenths() const
void send_full_statmsg(Network::Client *client, Mobile::Character *chr)
Mobile::Character * find_character(u32 serial)
SettingsManager settingsManager
bool is_concealed_from_me(const Character *chr) const
void statrequest(Network::Client *client, u32 serial)
void skillrequest(Network::Client *client, u32 serial)
void handle_skill_lock(Network::Client *client, PKTBI_3A_LOCKS *msg)
unsigned short pol_distance(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
bool start_script(Bscript::EScriptProgram *prog, bool start_attached, Bscript::BObjectImp *param2=nullptr, Bscript::BObjectImp *param3=nullptr, Bscript::BObjectImp *param4=nullptr)
virtual std::string name() const
void send_skillmsg(Network::Client *client, const Mobile::Character *chr)
UoClientGeneral uoclient_general