Commit graph

29 commits

Author SHA1 Message Date
dsourc
ce4681659e Removed: char members .lastx, .lasty and .lastz and replaced with .lastcoord that returns a struct{ .lastx, .lasty, .lastz }
Fixed:   Roof problem at 4th floor on a custom house. 
         Patch submitted by Agata
Added:   Packet 0xD6 to be ignored for activity ( fixes inactivity logout for ML+ )
         Patch submitted by OWHorus
2012-04-06 16:49:59 +00:00
KevinEady
a1a758660b Added: ecompile.cfg directive "ErrorOnWarning" and ecompile switch -y to treat warnings on errors during ecompile. Default is 'false'
Fixed: various locations were showing warnings even without the -w switch provided.
2012-04-05 23:43:46 +00:00
dsourc
8a35267583 Added: character readonly members .lastx, .lasty and .lastz 2012-03-26 06:44:18 +00:00
dsourc
bd36000ba9 Added: character readonly member .tradewindow
return ContainerRef if the char has an active trade and error if no active trade
2012-02-08 21:55:04 +00:00
dsourc
27fe484ab5 One more fix for boat components and server restart
Added: readonly member .multiid for houses and boats
2012-02-02 15:35:50 +00:00
turley
9677a77c2c added XmlNode.clonenode()
since all NodeObjects get destroyed when the corresponding XmlFileObject is destroyed, use this method to store a Node for later use.
2012-01-02 13:44:52 +00:00
turley
03dc8c934e linux fixes for 64bit 2011-12-23 14:49:51 +00:00
turley
4e7e400254 64bit compilation.. 2011-12-23 13:28:38 +00:00
turley
fd92b259a4 minor refactoring
possible bug in executor (array assign)
2011-12-19 18:25:03 +00:00
dsourc
13a4ff3b44 Support for HSA botes ( no smooth move yet, but now all boats are usable ) 2011-12-13 16:41:34 +00:00
KevinEady
25c1b0ccb8 11-22-2011 kevin:
Added:	pol/sqlscrobj.cpp pol/sqlscrobj.h
  Changed:	pol/module/sqlmod.cpp pol/module/sqlmod.h
  			Add preliminary MySQL database support.
  			New eScript objects: BSQLConnection, BSQLResultSet, BSQLRow 
  			Added several new sql module functions:
  				mysql_connect(host,username,password);
				mysql_query(connection,query);
				mysql_fetch_row(result);
				mysql_affected_rows(result);
				mysql_num_fields(result);
				mysql_num_rows(result);
				mysql_select_db(connection,database);
				mysql_field_name(result,column_index);
				mysql_free_result(result);
				mysql_close(connection);
			In order to build with MySQL support, define the HAVE_MYSQL preprocessor directive in your build configuration.
			You must have the MySQL headers and libraries installed. 
			Only really tested with dynamically linking mysql libraries on Linux.
			
	Added:	pol/network/auxclient.h
  Changed:	pol/network/auxclient.cpp pol/module/osmod.cpp pol/module/osmod.h clib/socketsvc.cpp clib/socketsvc.h
  			Moved AuxClient-related classes to its own header file (shared between auxclient.cpp and osmod.cpp)
  			Implemented os::OpenConnection() to create outgoing TCP/IP connections. 
  			
  Changed:	runecl/runecl.cpp
  			Added the sql module to runecl to allow quick testing

  Changed:	pol/uoscrobj.cpp pol/mobile/charactr.cpp pol/mobile/character.h bscript/parser.cpp bscript/objmembers.h
  			Added read/write property "mountedsteps" for mobiles. Represents number of steps taken while character was mounted.

  Changed:	bscript/parser.cpp
  			Declaring an array only using "{}" will show a compiler warning; please explicitly state 'array', 'struct', or 'dictionary' 
  Changed:	pol/pol.cpp
  			If using Linux, remove pol.pid on shutdown of pol.

  Changed:	pol/uoexec.h pol/scrsched.cpp
  			Added script option "AUXSVC_ASSUME_STRING" which will allow aux service connections to send and receive non-packed strings.

  Changed:	ecompile/ecompile.cpp
  			If using Linux, a slash ("/") cannot be used to define ecompile options to allow support for absolute filenames.

  Changed:	bscript/object.cpp bscript/bobject.h
  			Implemented array operation MultiSubscript. Will return a splice of an array, eg:
  				array{"a","b","c","d","e"}[2,4] will return array{"b","c","d"}
2011-11-23 05:49:30 +00:00
AustinHeilman
f55162e603 Applied KnightRage's patches for errors found by Andenixa 2011-10-22 07:26:34 +00:00
AustinHeilman
d86a8705f7 Added read only property to the item class: item.doubleclickrange 2011-10-15 19:09:59 +00:00
turley
c9cabbf9a2 Added: DestroyMulti(house) returns error "House currently being customized."
Added: house.cancelediting(chr, drop_changes) will stop editing mode.
drop_changes 1/0 if true drops all non committed changes
Errors: "House is not custom","House is currently not been edited","Character is not editing this house"
Added: Syshook CloseCustomHouse(mobile, house)
called after client quits editing, or when house.cancelediting() is called
return value is ignored
Added: servspecopt.cfg
"SpeedHack_MountRunDelay"  default 80 ms
"SpeedHack_MountWalkDelay" default 180 ms
"SpeedHack_FootRunDelay"   default 180 ms
"SpeedHack_FootWalkDelay"  default 380 ms
Change them on your own risk
2011-09-03 08:15:59 +00:00
AustinHeilman
235a204b46 Changed merchants to send a .shopping list with EVID_MERCHANT_SOLD containing an array of structs .item and .amount (script is responsible for breaking up stacks) - Scripts will be responsible for gold checks, etc when something is purchased.
Added item.SplitStackInto(container, amt) - Returns a reference to the new item stack or errors. Have spot for item.SplitStackAt(x, y, z, real, amt) next.
2011-08-09 00:02:14 +00:00
turley
11bd865d23 removed syshook and replaced it with a noncritical call of scripts/misc/customhousecommit.ecl 2011-05-28 06:29:43 +00:00
turley
7c44ca6613 added:
multi.house_parts
multi.house_editing
who.house_editing
multi.addhousepart(graphic,xoff,yoff,z)
multi.erasehousepart(graphic,xoff,yoff,z)
components get added to workingdesign during edit
2011-05-21 09:14:42 +00:00
turley
5470c07893 finished xml reading/writing 2010-09-06 12:35:46 +00:00
turley
161ec8c190 started xml file parsing/writing
currently only parsing works
2010-08-25 11:53:14 +00:00
turley
e10cd27cea sync: shini - long to int (prerequisit for 64-bit) 2010-03-29 14:52:03 +00:00
turley
b2b394f90d Added: ClientRef object
pkt.sendpacket() & SendPacket() now accepts client or character
            r/o members:
            ip, acctname, clientversion, clientinfo, clienttype, clientver_detail, uo_expansion_client
            methods:
            compareversion()
            used as prelogin param for packethooks instead of old struct (so you can send packets)
     Added: character.client
            returns ClientRef object or error
     Note:  This or next release duplicate members/methods get deleted from chr (except acctname)
2010-03-25 15:56:33 +00:00
turley
bd7c8e2189 more vartype cleanup
Added: (Tomi) chr priv "runwhilestealth" you can run while you are in stealth for as many stealthsteps you have
Added: (Tomi) new npcdesc entry "SaveOnExit" 0/1 ( defaults to 1 )
Note: this also means that SaveOnExit can be definied in the override_properties struct
Changed: vitals::ApplyDamage( mobile, damage, userepsys := DAMAGE_USE_REPSYS, send_damage := DAMAGE_USE_DEFAULT )
            vitals::ApplyRawDamage( character, hits, userepsys := DAMAGE_USE_REPSYS, send_damage := DAMAGE_USE_DEFAULT )
            const DAMAGE_NO_SHOW := 0;
            const DAMAGE_SHOW := 1;
            const DAMAGE_USE_DEFAULT := 2;
            DAMAGE_USE_DEFAULT uses the SendDamagePacket setting from combat.cfg (Tomi)
Added: uo::SendOverallSeason( season_id, playsound := 1 )
            Used to send the Season packet 0xBC to all clients logged on.
            This function doesnt resend the lightlevel or weather after it sends season, that has to be done by scripts.
            chr.setseason( season_id, playsound )
            Used to send the Season packet 0xBC to a single character.
            This method doesnt resend the lightlevel or weather after it sends season, that has to be done by scripts.
            (Tomi)
Changed: (Tomi) uo::SpeakPowerWords( who, spellid, font := _DEFAULT_TEXT_FONT, color := _DEFAULT_TEXT_COLOR) 
            font, color like every speech function
2010-01-15 09:55:20 +00:00
turley
e487c74e87 deafened not deafed 2009-10-14 10:24:18 +00:00
turley
5519dc9c0e Added: char.deaf(duration) - duration in seconds. -1=forever, 0=off
Added: char.deafed r/o
2009-10-14 10:11:14 +00:00
turley
4bf7f8f3e1 Added spellbook.addspell() & .removespell() methods 2009-10-10 08:26:56 +00:00
turley
aa73f9422c Added spellbook.spells() & .hasspell() methods 2009-10-09 08:27:15 +00:00
turley
045bc24873 removed chr.isUOKR added chr.ClientType
removed all bool is* versionmembers and added bitfield clienttype
changed all versionchecks to check the bitfield
added 0xE1 support (0xA9 packet will now send the flag for request)
2009-09-16 08:48:57 +00:00
muaddib_pol
4f01460d16 + bscript project upgrade to use literal paths. Removed include of ".."
+ Couple format/cleanup
2009-09-11 12:15:05 +00:00
muaddib_pol
d032ee448f + POL is now, open source. 2009-09-03 19:44:42 +00:00