basic.em:Inclusion of precision to GetAttribute function
Code: Select all
const ATTRIBUTE_PRECISION_NORMAL := 0; const ATTRIBUTE_PRECISION_TENTHS := 1; GetAttribute( character, attrname, precision := ATTRIBUTE_PRECISION_NORMAL );
cliloc.em:New base64 encoding/decoding functions
Code: Select all
EncodeBase64( str ); DecodeBase64( str );
npc.em:Unicode functions no longer accept arrays they instead accept standard UTF-8 strings
specifically the 'uc_text' param
Code: Select all
SendSysMessageCL( character, cliloc_num, uc_text:="", font:=_DEFAULT_CLFONT , color:=_DEFAULT_CLCOLOR); PrintTextAboveCL( character, cliloc_num, uc_text:="", font:=_DEFAULT_CLFONT , color:=_DEFAULT_CLCOLOR); PrintTextAbovePrivateCL( character, object, cliloc_num, uc_text:="", font:=_DEFAULT_CLFONT , color:=_DEFAULT_CLCOLOR);
os.em:Unicode functions no longer accept arrays they instead accept standard UTF-8 strings
specifically the 'uc_text' param
Code: Select all
SayUC(uc_text, text_type:=SAY_TEXTTYPE_DEFAULT, langcode:=SAY_LANG, do_event:=SAY_DOEVENT_DISABLE );
GetProcess function now has a default of -1 which allows for function finding the calling script process.
Code: Select all
GetProcess( pid := -1 );
Start_Skill_Script script_name param has changed from an integer default to a blank string default
Code: Select all
Start_Skill_Script( chr, attr_name, script_name := "", param := 0 );
unicode.em:System_RPM() function removed from EM file.
uo.em:uc_text params now accept a string rather than an array
Code: Select all
BroadcastUC(uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, requiredcmdlevel := _DEFAULT_UCTEXT_REQUIREDCMD ); PrintTextAbovePrivateUC(above_object, uc_text, langcode, character, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME); PrintTextAboveUC(above_object, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME); RequestInputUC(character, item, uc_prompt, langcode); // item is a placeholder, pass anything SendSysMessageUC(character, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR);
Addition of FindObjtypeInContainer now allows for restraints on recusion
Code: Select all
// FindObjtypeInContainer constants const FINDOBJTYPE_RECURSIVE := 0x0; // Search in sub-containers (DEFAULT). const FINDOBJTYPE_IGNORE_LOCKED := 0x1; // Find matches in locked containers. const FINDOBJTYPE_ROOT_ONLY := 0x2; // Do not find matches in sub-containers. FindObjtypeInContainer( container, objtype, flags := FINDOBJTYPE_RECURSIVE );
Addition of ListItemsInBoxOfObjtype function
Code: Select all
ListItemsInBoxOfObjType( objtype, x1,y1,z1, x2,y2,z2, realm := _DEFAULT_REALM );
Addition of functions to find statics and objects within area ranges
Code: Select all
ListItemsInBoxOfObjType( objtype, x1,y1,z1, x2,y2,z2, realm := _DEFAULT_REALM ); ListObjectsInBoxOfClass( POL_Class, x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM ); ListStaticsNearLocationOfType( x,y,z, range, objtype, flags := 0, realm := _DEFAULT_REALM ); ListStaticsNearLocationWithFlag( x,y,z, range, flags, realm := _DEFAULT_REALM );
SendQuestArrow has changed from a object target param to an arrowid param which is returned when creating a new arrow.
Code: Select all
SendQuestArrow( to_whom, x := -1, y := -1, arrowid := 0 ); // no params (-1x,-1y) turns the arrow off, target is required for HSA clients
SendCharProfile constants have changed from arrays to strings inline with other unicode changes
Code: Select all
//SendCharProfile const CHARPROFILE_NO_UNEDITABLE_TEXT := ""; const CHARPROFILE_NO_EDITABLE_TEXT := ""; SendCharProfile( character, of_who, title, uneditable_text := CHARPROFILE_NO_UNEDITABLE_TEXT, editable_text := CHARPROFILE_NO_EDITABLE_TEXT );