Current EM variation from 099

Here you can post threads on the development of the current release of the core (100)

Moderator: POL Developer

Post Reply
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Current EM variation from 099

Post by DevGIB »

Attributes.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 );
basic.em:
New base64 encoding/decoding functions

Code: Select all

EncodeBase64( str );
DecodeBase64( str );
cliloc.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);
npc.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 );
os.em:
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 );
System_RPM() function removed from EM file.
unicode.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);
uo.em:
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 );
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Current EM variation from 099

Post by Yukiko »

Were these changes not documented in core-changes.txt?
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: Current EM variation from 099

Post by DevGIB »

They are, but now rather than having to go through all the change logs to see whats different, i've compiled it all in 1 place.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Current EM variation from 099

Post by Yukiko »

Ah. I thought someone forgot to document them :)
Post Reply