Welcome to PenUltima Online. Click to login or register.

Latest Core Changes

Last Modified: 08/21/2009

POL098.2

08-21-2009 Turley
Fixed Regions where limited to 128 due to intern (char)id, changed to ushort
07-31-2009 MuadDib
Fixed Cleanup crash in shutdown involving characters and combat. Now all clients and characters are disconnected by the core before any cleanup is intiated. This will begin the cleanup for client and character alike.
07-20-2009 MuadDib
Fixed Item::Facing updates were no longer updating surrounding clients.
Fixed Bug with stackables where graphic and crops may be different, still allowing to combine stack (of same objtype)
07-15-2009 Turley
Added Support for client 6.0.14.2 and latest UOKR (this change breaks every older UOKR) packet 0xB9 has now a length of 5
06-28-2009 MuadDib
Fixed Graphic/Layer bug when changing graphic and item is equipped. Now core will block this, returning a Error Struct to the script when attempting to change the graphic of an item with layer set.
06-27-2009 MuadDib
Fixed Layer bug with updating/sending equipped items

POL098.1

06-20-2009 MuadDib
Fixed Reset now occurs for tile_layer internal property when graphic is changed on item class.
Fixed SetOpponent() for npcs will now once again correctly set the warmode.
05-20-2009 Turley
Fixed TypeOf() return of Error
05-14-2009 Turley
Fixed some Memoryleaks
04-29-2009 Turley
Fixed Exception on mobile.kill() if death/chrdeath.ecl does not exist
04-28-2009 MuadDib
Fixed Removal of items from containers not sending destroy object to nearby clients when object removed. This affects containers when was owned by a character.
04-21-2009 MuadDib
Fixed Crash at shutdown during character cleanup involving players that was in combat.
04-20-2009 Turley
Added Comparison check == for Boat,Multi,GuildRef
04-19-2009 MuadDib
Fixed Endian format for SendPartyMsg().

POL098

04-06-2009 MuadDib
Changed When adding ally/enemy guilds, removing ally/enemy guilds, adding/removing members, core now updates online members and those around them correctly.
Added If LogLevel in pol.cfg is higher than 1, new report added to console. If an account has AOS Expansion and uses a Spellbook, console now reports this if UOFeatureEnable does not contain 0x20 bitflag for new spellbook system in client. This is due to client issues with books using old methods when still recieving the AOS flag for an account.
04-05-2009 MuadDib
Changed Keys/Seeds for packets 0x8C sent by LoginServer. 6.0.1.7 to 6.0.4.0, I don't recommend using at all. 0xFEFEFEFC = UOKR Client 0XFEFEFEFD = 6050+ 2D Client 0xFEFEFEFE = Normal 2D client (pre-6.0.5.0 client)
Note Change to keys is for passing these details from Loginserver to Gameserver during loginprocess. Clients disconnect from LoginServer and Connect to Gameserver. This is the easiest method for identifying the client type connecting to your game server since versions are handled to decide this on the loginserver connection.
04-04-2009 Nando
Fixed Removing an offline member from party was causing POL to crash.
04-04-2009 MuadDib
Fixed Issue with resistances and damages from npcdesc.cfg.
Note NPC's eScript changing/quipping with Resistances/Damages will be rewritten in 099. We are putting this into 099 due to a Class Rewrite to NPCs that will resolve this issue and allow better expansions of the NPC class in the core.

POL098 RC2

04-02-2009 MuadDb
Fixed Crash in cleanup of character objects during Shutdown and deletion.
Fixed Crash involving sending warmode information during disconnect/shutdown.
04-01-2009 Nando
Fixed When creating a new char, attributes' caps weren't being set to the default value and were just set to a random value.
03-30-2009 Nando
Fixed Sometimes when casting a spell, a race-condition would make POL end with a passert( !start_attached || (script_ex == NULL) ) error in chrituse.cpp.
Fixed Bug in Packet::GetString(offset, len) where it would return a string of 'len' ascii chars, regardless of having a null-byte in there. Will now limit to len or the first null-byte found, whichever comes first.
03-30-2009 MuadDib
Fixed Equipment.quality will now convert plain integers to Double/Float for it when using item.quality:=2; instead of item.quality:=2.0;
03-28-2009 Turley
Fixed Resend party list if remove hooks dont allow it
03-27-2009 Turley
Fixed Crash in party speechhandler
03-27-2009 MuadDib
Fixed Crash in Basic::Trim(). Now checks explicitly for String as param 1. Errors out if not.
Fixed Event LeftArea and EnteredArea both being able to be triggered when 1 is actually disabled.
03-25-2009 MuadDib
Changed StrReplace() and SubStrReplace() will now accept Dict/Struct/Array/Error as param 1 and converts them to string format (like when using print() or syslog()) before comparing/converting.
03-24-2009 MuadDib
Fixed Crash with StrReplace() allowing to go past end of a string.
Changed StrReplace() will now allow the replace_with string to be empty, to remove the to_replace param from the string completely.
Fixed Crash in onRemove system for removing objects on npc/offline mobiles.

POL098 RC1

03-22-2009 Nando
Added New servspectopt::SendStatLocks (default false) to send the stat locks message. Beware that this message will only be sent to clients which have major version > 3 (to avoid breaking older ones).
Changed Canceling of trade window will no longer trigger refreshing of AR/Resistances/Damages. It will only send the status bar packet to the client for weight updates.
Changed Updates so refreshing of AR/Resistances/Damages is not called when dropping items unless to equip them etc as should be.
03-22-2009 MuadDib
Fixed Bug with items that use the Resource entry in ItemDesc.Cfg causing crashes on shutdown.
03-20-2009 MuadDib
Added Storage system will now ignore all root containers with SaveOnExit set to 0.
03-19-2009 Nando
Added UO::PlayMusic( chr, music_id := 0 ), plays the music with music_id on client. You can find the music id's this uses at your UO FOLDER/Music/Digital/Config.txt
03-19-2009 Turley
Added on Chatbutton pressing "scripts/misc/chatbutton.ecl" is called
Note only simple implementation no Chatsystem!
03-18-2009 MuadDib
Added Basic::Compare(str1, str2, pos1_start:=0, pos1_end:=0, pos2_start:=0, pos2_end:=0);
Can be used in 3 overloaded ways. Returns 1 on compare success.
Compare(string1, string2)
Compare(string1, string2, string1_index, string1_length)
Compare(string1, string2, string1_index, string1_length, string2_index, string2_length)
Index is a starting position to begin the compare in the string, and length is the length to compare from the index. When using the 3rd method, you can compare substrings in both strings instead of just the substring of string1 to entire string2.
Fixed Bug with Player Color and their magic underwear in the Race Changer packet handling.
03-18-2009 Nando
Added New ssopt option: CoreSendsCaps 0/1 (default 0), makes POL send attribute cap information in the Send Skills (0x3A) packet.
03-17-2009 Nando
Added New ssopt option: DefaultAttributeCap (default 1000), defines which value POL should use as cap for attributes.
Added New attributes.cfg option: DefaultCap (default DefaultAttributeCap), to set the default for each attribute.
Added GetAttributeCap(who, attr), SetAttributeCap(who, attr, capvalue) and GetAttributeDefaultCap(attr). The names should explain it all.
Note Caps are defined in tenths (100.0 -> 1000, 55.2 -> 552), same as base values.
03-17-2009 MuadDib
Added Concealed Updater now also run when changing command levels.
Added Basic::Trim(string, type, set). Trims whitespaces from strings String = String to trim from. Type = TRIM_LEFT, TRIM_RIGHT, TRIM_BOTH. Directions to trim the whitespace from. Default is BOTH. Set = Character set to trim as whitespace. Default is " ".
Added Basic::StrReplace(string, to_replace, replace_with). Replace all instances of to_replace in the string with replace_with.
Added Basic::SubStrReplace(string, replace_with, start, length:=0). Replace portion of string using replace_with, beginning at start for length. If length passed is 0 or lower, it replaces from start to end of string. Error Returns: "Index must not be negative", "Index out of range", "Length out of range", "Length must not be negative"
03-12-2009 Turley
Added repsys.cfg General section "PartyHelpFullCountsAsCriminal 1/0" default 0 if 0 OnHelp does not set mobile to criminal if helped char is criminal/murderer when they are in the same party
03-11-2009 Turley
Added new systemhook script 'OnCast'
function OnCast(who, spellid)
is called if who casts a spell (including macros) before all checks
Return: 0 if you wish POL to perform the checks and casting, 1 if you want to handle it fully scriptside
Note The two partystatusgump buttons send spellid 11(green) and 29(red) with clientside reserved next target answer
Added on Paperdoll Guildbutton pressing "scripts/misc/guildbutton.ecl" is called
Added on Paperdoll Questbutton pressing "scripts/misc/questbutton.ecl" is called
Added on Paperdoll Virtuebutton (pentagram doubleclick) pressing "scripts/misc/virtuebutton.ecl" is called
Removed "Client tried to drop item to X,Y,Z but server is putting it at Z=" logmsg
03-09-2009 MuadDib
Changed Console will no longer spam about invalid speech color. Instead it adjusts the color back to the default 1001 color and goes on.
03-08-2009 Turley
Added Partysystem
new savefile parties.txt
new em Module party.em
new cfg file config/party.cfg
new Object Class Party
savefile parties:
saves Leader,Members and Cprops
new Char members:
who.party r/o returns PartyRef or Error
who.candidate_of_party r/o returns PartyRef or Error
who.partycanloot 1/0 r/o
PartyRef members:
party.members r/o returns Array of OfflineCharRefs
party.candidates r/o returns Array of OfflineCharRefs
party.leader r/o returns OfflineCharRef
PartyRef methods:
party.setleader(CharRef) sets new Leader returns 1/Error
party.addmember(CharRef) adds new Member returns 1/Error
party.addcandidate(CharRef) adds new Candidate returns 1/Error
party.removemember(CharRef) removes Member returns 1/Error
party.removecandidate(CharRef) removes Candidate returns 1/Error
party.setprop/getprop/eraseprop/propnames for cprops
Party.em:
CreateParty( leader, firstmember ); Creates a Party returns 1 or Error
DisbandParty( partyref ); Disbands a Party returns 1 or Error
SendPartyMsg( party, character, uctext ); Sends PartyMsg with Sender=character returns 1/Error
SendPrivatePartyMsg( party, character, tocharacter, uctext ); Sends PrivateMsg with Sender=character returns 1/Error
party.cfg:
General
{
//How many chars are allowed in a Party (normal clients only have 10 slots)
[MaxPartyMembers int (default 10)]
//Newer Clients (>=3.0.6e) does not automatically change "/# "
//to private msg (they use "/t #")
//set to true any public msg will be checked for "# " (0-9 0=slot 10)
[TreatNoAsPrivate (1/0) (default 0)]
//How long is an invite valid befor automatic decline
//set to 0 disables the timeout
[DeclineTimeout int seconds (default 10)]
//Prefix for a private Msg (e.g. P:)
[PrivateMsgPrefix string (default "")]
}
HookList
{
// CanAddToParty(leader,member) return check true/false
// called when a leader invites someone
CanAddToParty
// CanRemoveMember(leader,member) return check true/false
// called when leader wants to remove member
CanRemoveMember
// CanLeaveParty (member) return check true/false
// called when member wants to leafe the party
CanLeaveParty
// OnPublicChat(member,uctext) return check none
// called when a member sends a PartyMsg e.g. for logging
OnPublicChat
// OnPrivateChat(member,tomember,uctext) return check none
// called when a member sends a PrivateMsg e.g. for logging
OnPrivateChat
// OnDisband(partyref) return check none
// called when a Party is about to be disbanded
OnDisband
// ChangePublicChat(member,uctext) return new uctext/true/false
// called when a member sends a PartyMsg return value is the new uctextarray,
// or true for no change, or false to block the msg
ChangePublicChat
// ChangePrivateChat(member,tomember,uctext) return new uctext/true/false
// called when a member sends a PrivateMsg return value is the new uctextarray,
// or true for no change, or false to block the msg
ChangePrivateChat
}
Note Candidates are not saved
A party with (candidates+members)<=1 gets disbanded
Note All msgs send are cliloc's used cliloc numbers are:
1005437, 1005439, 1005440, 1005441, 1005442, 1005444, 1005445, 1005446, 1005447, 1005448, 1005449, 1005450, 1005451, 1005452, 1005453, 1005455, 1008087, 1008089, 1008090, 1008091, 1008092, 1008094, 1008095, 3000211, 3000222, 3000223
03-08-2009 MuadDib
Fixed Spacing for all titles and name for mobs in Tooltips and Paperdoll. Also added the mob.title_guild in the Tooltips string for names of mobiles.
03-08-2009 Nando
Added New privilege "moveanydist", will allow moving items regardless of distance (by now, the only limit to this priv is the client.)
03-07-2009 MuadDib
Changed Setting of title_prefix, title_suffix, title_race, title_guild will no trigger an obj cache to be sent to tooltip enabled clients for updates of tooltips client side. This does not affect paperdolls. Paperdolls not being updated until Double Clicking again is an issue client-side.
Added AOS Extended Statbar members such as followers, followers_max, tithing, and luck will now cuase the Update packet to be sent to AOS enabled accounts when changed.
Changed Handling of packet 0x07 (Pick Up Item Request). On success, core now checks for if the item was equipped on yourself, and refreshes ar and sends stats. If was in a container not on your character, only refreshes stats. If item was on the ground, only stats. If on a mobile other than yourself, only stats. If item was inside your own worn items, it does nothing (since not worn, and no additional weight to send to client). The big Difference here, was client use to ALWAYS refresh the ar of character and statmsg. This will eliminate at the least, over 50 loops per pickup when it's not needed, and packets not being sent, when not needed.
03-06-2009 MuadDib
Added Elemental Damage properties added for items and mobiles. These follow the same rules as all the AOS Resistances. Same details for itemdesc, GetItemDescriptor(), etc.
Mobile.damage_fire, damage_cold, damage_energy, damage_poison, damage_physical R/O
Mobile.damage_fire_mod, etc. R/W
Item.damage_fire, etc. R/O
Item.damage_fire_mod, etc R/W
Itemdesc.cfg: FireDamage, ColdDamage, EnergyDamage, PoisonDamage, PhysicalDamage
ItemDesc entries accept Dice Strings just like resistances.
NPCDesc.Cfg: FireDamage, etc just like ItemDesc.cfg
03-05-2009 Nando
Changed Core will no longer spam "out-of-sequence gump command" when closing.
Changed CloseGump(who, pid, response := 0) will now accept any object to be returned, and will send '0' as the buttonid in close gump packet.
Added Statlock change (Extended Stats, 0xBF sub 0x1A) will be handled if CoreHandledLocks is enabled. It will now send statlock (Extended Stats, 0xBF sub 0x19) on every status update.
03-04-2009 Nando
Added UO::CloseGump(who, pid, response := 0), closes gump by sending 0xBF's CLOSE_GUMP, and returns 'response' for the gump script. 'response' is a LONG. 'pid' is from the script that issued the SendGumpDialog() command.
03-03-2009 MuadDib
Changed Item and Character members for AOS Resistances now report the total of resist and resist_mod.
03-02-2009 MuadDib
Fixed eScript's Internal "move" command causing items to get misplaced in wrong realms on move failed MoveItem* Commands in eScript.
03-02-2009 Nando
Fixed When running out of memory, the creation of new threads is not possible. Core will now check if the thread was properly created to (probably) solve the symptom of zombie threads. The problem of not having enought memory to create thread is not solved, though. There will still be logs of this error.
03-01-2009 MuadDib
Fixed Issue with Mount Objtype 0xF021 and EquipItem() ignoring setting it's Layer.
Added Complete packethook support with Clients 6.0.1.7 and higher. This is handled via the earlier added Is6017 uopacket.cfg entry. This will allow you to specify a packethook to be triggered ONLY if the client involved is 6.0.1.7 and higher. It does not have to be a different packet size for this to work, only the client.
Added "KR" for expansion type. This includes sending the 0x86DB with packet 0xB9.
02-28-2009 MuadDib
Changed UO::DestroyItem(). Now sends a Destroy Item packet to the script controller for the item destroyed. This is in addition to sending in range of the item. Reason for this, is for Storage Containers across realms.
Added New flag for uopacket.cfg of "Is6017 0/1". This is show the defined packet entry is explicity for a 6.0.1.7 and higher packet type. Will let you define packethooks for the same packet, that is different based on client version.
Added Character.followers = int. This is for storage for the Followers byte in statmsg packet.
Added ML Expansion statmsg packet support. If Expansion for account is ML or higher, and client version is 5.0 or higher (or is KR), sends ML Info Flag and data.
Added Special Verbose messages (with POL.CFG::Verbose=1) for 6.0.5.0+ crypt seed packets and the UOKR 0xFF Seed Packet.
02-27-2009 MuadDib
Fixed Clothing on corpses. COMPLETELY! This age old bug is now 100% fixed. If it was equipped at time of death, it will be on the corpse until the on remove script check for the corpse is triggered for taking the item out (on remove, not can)
Added Base 6.0.1.7 and up Incoming Packet Handling ability to core.
Changed Packets 0x3C updated for supporting clients 6.0.1.7. and newer.
Changed Grid index support (KR and 6.0.1.7) for Drop item Packet and sending. Grid Index is still not set on Container Add by scripts and core yet (since this is only truly needed for KR support for slotted bags).
Changed Updated Secure Trade Drop Item packet to support 6.0.1.7 and newer clients.
Changed Updated sending of packet 0x25 to support 6.0.1.7 and newer clients.
02-26-2009 Nando
Fixed Bug where a player / npc moving in a diagonal direction 'd' wasn't blocked by items on direction 'd+1' and 'd-1'. (For example, moving in direction NE while having items blocking on N and E was allowed by core, while disallowed by client)
02-26-2009 Turley
Added uo::CheckLosBetween( x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM ) Same like uo::CheckLosAt and uo::CheckLineOfSight
02-25-2009 Nando
Added New attributes.em functions: SetAttributeLock(who, attrname, lockstate) and GetAttributeLock(who, attrname). With new constants: ATTRIBUTE_LOCK_UP, ATTRIBUTE_LOCK_DOWN, ATTRIBUTE_LOCK_LOCKED. This works for any attribute.
02-25-2009 MuadDib
Added Support for UOKR Poisoned Status bar updates. Core will now update UOKR clients correctly when poisoned set to true or false for a character.
Changed Packets 0x3C updated for sending UOKR Grid Index.
Added Base UOKR Incoming Packet Handling ability to core. Will Begin adding UOKR specific packets such as Drop Item and so on, very soon.
02-24-2009 MuadDib
Changed SendPacket() now returns an error if packet string passed is not valid size (Divisible by 2).
Added SendPacket() buffer size now allows max packet size. No more need to worry bout length.
Fixed Issue where equipped spellbooks would not open to the correct bookmarked page when opened.
Added Support of 0x25 Packet (Send item in container) with Client version >= 6.0.1.7.
Added Support for Grid Index with Trade Container Packet sending.
02-22-2009 MuadDib
Changed Updating of worn items will be handled by sending Delete Item packet to those in range, then sending the worn item packets. This is to address an issue with client not updating worn items on other players when graphics.color.etc are changed.
Removed Saving of base AOS Resistances to pcs.txt. This is not truly needed, as core will handle updating these live based on the armor etc. resist mods only thing needing saved now at this point. Just like AR. Same with Items.
02-22-2009 Nando
Added New servspecopt.cfg option: CoreHandledLocks, default to false. If enabled, core will handle the change of skill locks and stat locks from the client (setting the attribute locks).
Added Every Attribute now have a lock state. Later, this lock state will be read/changed via eScripts methods.
02-21-2009 MuadDib
Added Ability to use Dice strings for AOS Resistances in itemdesc.cfg entries.
Fixed Bug allowing two players to open trade window, walk away, and continue trading. If players get more than 4 tiles away, it will now cancel the trade upon walking to 5th tile away.
Added ServSpecOpt::AllowMovingTrade=0/1(default 0). 0 = Disable moving more than 4 tiles with an open trade window. If you move more than 4 tiles from who trading with, cancels trade.
Removed UOClient::Listener::Statcap
Added Character.statcap = Replaces the Listener::Statcap. Default 225 r/w
Character.skillcap = This is for storage, of overall skillcap. Default 700 r/w
Character.followers_max = Max followers for statmsg packet. Default 0 r/w
Character.luck = Luck for statmsg packet. Default 0 r/w
Character.tithing = Tithing for statmsg packet. Default 0 r/w
Added Min/Max Damage added as per OSI Standards to Statmsg packet. This is done by the min and max of the dice roll for a weapon before any mods etc.
Fixed Now cannot request stats for chars not visible to you, concealed from you, and over 20 tiles away.
02-20-2009 MuadDib
Added Priv "plogany". Used with new startlog and stoplog commands to activate target cursor.
Changed Built-in textcommand .startlog and .stoplog for packet logging. If character has the plogany priv they get a target cursor to select who to set packet logging for.
02-18-2009 MuadDib
Fixed Fixed Physical Resist not showing correctly with AOS Resistances in Statbar in place of AR.

POL098 Beta #4

02-18-2009 Turley
Fixed ..Boat Fix Drunken Coder syndrome?
02-17-2009 MuadDib
Fixed Instances where core uses UO::ClearGottenItem() type code caused ghosted item on client cursor. Will require more feedback from users after publish for remaining instances where this still occurs (outside of ClearGottenItem()).

POL098 Beta #3

02-16-2009 Turley
Fixed Hold again part of boat multi
02-07-2009 Turley
Removed SystemFindObjectBySerial() flag SYSFIND_SEARCH_STORAGE_AREAS (was obsolete since years)
02-05-2009 MuadDib
Added UOClient::Listener::AOSResistances 0/1. This flag aids in deciding which version of Armor to send in the StatMsg packets. With this enabled, a client who uses an account with AOS Expansion enabled will see their Physical Resist instead of AR member.
02-03-2009 MuadDib
Added Character.resist_fire_mod/resist_cold_mod/resist_energy_mod/resist_poison_mod/resist_physical_mod as R/W.
Added Item.resist_fire_mod/resist_cold_mod/resist_energy_mod/resist_poison_mod/resist_physical_mod as R/W.
Changed GetItemDescriptor() Handles new AOS Resistance Entries.
Added POL Debug Port has access to Mobile/Item resist members.
02-02-2009 MuadDib
Added Anytime AR will get refreshed (armor damaged, equip/unequip, etc), Resistances for Character will also get updated based on the items worn.
Noted UO::EquipItem() and UO::EquipItemFromTemplate() trigger the same Equip Code in core as dropping it on your paperdoll. So should be up to date with new resistance code in equipping also.
Noted AOS Physical Resist is NOT the same as AR. Keep that in mind, when writing syshooks for combat, equip scripts, spells, etc. Eventually Core Combat will differentiate between these based on Expansion (on which to use for a client or npc). But as of right now, they will always use AR for combat, etc.
02-01-2009 MuadDib
Added Character.resist_fire/resist_cold/resist_energy/resist_poison/resist_physical members as R/O. All these are for is storage. No core implementation for resists is present. These ARE sent with the Full Stat Msg packet also, based on Expansion. These are also stored to pcs.txt.
Added Item.resist_fire/resist_cold/resist_energy/resist_poison/resist_physical members as R/O. This was added at item level, to cover armor, weapons, clothing, containers, etc for broad spectrum use on any item class that could be equipped. Such as Quivers and Totems in AOS.
Added NPC.resist_fire/resist_cold/resist_energy/resist_poison/resist_physical members as R/O.
Added NPCTemplate::FireResist/ColdResist/EnergyResist/PoisonResist/PhysicalResist. These work just like NPCTemplate::AR. You CAN use diceroll strings for these just like AR, or a set number for it's amount.
Noted These are only written to file if the amount is != 0.
Added Itemdesc FireResist/ColdResist/EnergyResist/PoisonResist/PhysicalResist.
01-29-2009 MuadDib
Added NPC.saveonexit 0/1. Same as for Items. When set to 0 (1 default), the NPC and all items contained within it's wornitems container are IGNORED during save.
Fixed Parry will now only refresh the AR if a shield is equipped, as was intended.
Removed Some ... Drunken Coder syndromes. :)
01-28-2009 MuadDib
Changed Rewrote ObjCache Building. Now constructs the packet for uokr/aos once when sending to a group (send to in range). Previous method built this packet per client requiring it. Should improve handling in populated areas.
Fixed Client bug where AOS Expansion accounts could not see normal magery books without UOFeatureEnable 0x20 bit set. Although this IS a client bug, found a way to fix this VERY common bug server-side. As a feature of this fix, you can now have the AOS features that do NOT require 0x20 (tooltips etc), AND the magery books work without packet hooks.
01-28-2009 Turley
Changed Optional parameter flags:=FACE_NORMAL/FACE_FORCE added to TurnToward(), TurnAwayFrom(), TurnTowardLocation(), TurnAwayFromLocation()
Fixed servspecopt option HiddenTurnsCount check readded in facing change
Fixed Privilege "freemove" can now also be used for NPCs
01-27-2009 MuadDib
Changed uoclient.cfg::General::Statcap is deprecated now. Please change to now use uoclient.cfg::Listener::Statcap. This is for the new upcoming Listener Seperate settings. This new step in POL will allow custom settings for clients based on the Listener (uoclient.cfg) they are connecting through. Upcoming changes (but not yet done) will include such things as UOFeatureEnable, TotalStatsAtCreation, ItemColorMask, and so on. This is to make it so you can configure different ports for different client configurations and expansions. One use of this, is to allow both 2.0.0 clients on your shard, AOS Clients with Tooltips, ML Clients without tooltips, and so on. The possibilities will be good, and really expand the support you can give with your scripts.
Fixed Magery Books will now be viewable for AOS enabled accounts on servers that do NOT have the UOFeatureEnable 0x20 bitflag to enable AOS style books. This was implemented to fix a CLIENT BUG. But, since so many people do not seem to realize you MUST have 0x20 on for AOS style book handling on AOS activated accounts, we must do this. Boo to you :(
01-27-2009 Turley
Changed math::Min/Max now accepts Array as first parameter, if given returns the biggest/lowest Integer/Double entry (second parameter is ignored).
Errors: "Array empty"&"No Integer/Double elements"
Second parameter has now default value of 0
01-25-2009 MuadDib
Changed Rewrote entire core handling of config/bannedips.cfg This should address a small memory leak caused by the cfg system (leak still exists I just changed how it is done with this file). It also will increase POL speed for login/account verification. Remember, the larger your bannedips.cfg, the longer it takes for the loginserver to verify the client IP is not banned.
Added ReloadConfiguration() will cause the bannedips.cfg to get reloaded. YAY.
Added Item.saveonexit member. Does what it says. All items default to 1. If you set this to 0 the item and (if container, it's contents) will NOT be saved to datafile.
01-23 Nando
Changed polcore().bytes_sent and polcore().bytes_received are now Doubles. This will fix some problems with negative values after some time... (internally they are now 64 bit integers).
Note Lots of small leaks fixed, and more to come. Too much to list here, but you will feel the difference.
01-16 Turley
Fixed Filled PolCore().iostats.received with sense
01-16 Nando
Fixed UOConvert was always reading map0.mul when uomapid is 1. It will now try to read map1.mul, and if not found read map0.mul. (The same for staidx1 and statics1)

POL098 Beta #2

01-07 MuadDib
Added Due to Ecompile always breaking for single file and right click compile useage when no absolute path is given in the ecompile.cfg, added redundant code to verify drive letter path in Windows environments. (aka, if you use "scripts" for include directory instead of "c:\pol\scripts"). This should help in most cases. (Win32 Cores only right now)
Noted This works by checking if the core simply looked for "ecompile.cfg" or if it used the -C <path to config> and handled accordingly. If you pass -C <path> it uses that to append to the beginning of the dir structure in the config. Otherwise it appens the structure based on the location of ecompile.exe being executed (since it's looking there for the cfg).
Noted In case people never realized. If you set the Evironment Variable called ECOMPILE_CFG_PATH to point directly to the path where ecompile.cfg is kept, Ecompile.exe will use this to locate your config file (Read core-changes people :D )
Added ECompile.exe Flag "-E<path to ecompile cfg>". Correct, no space between them just like the -Ppath Option. This is for Windows machines. It sets/changes the ECOMPILE_CFG_PATH Environment Variable via the commandline so no need to add/edit it via the System Properties of the machine. Remember, you must be logged in with Admin rights to change Environment Variables and this won't show in the System Properties until Reboot. But it IS accessible WITHOUT rebooting.
01-03 MuadDib
Added Ability to send two commands to the POL Service via SCM (Service Control Manager). Command 1200 is a Beep (just for Nando), and 1201 will initial POL Shutdown just like via Script or clicking on Stop on the POL System Tray Icon. More to come later.
Fixed Drunken coder syndrome in the AOS Tooltip handling and oldschool Tooltip code too.
Removed Logging/Reporting of empty Attack Request Packets. Useless information that is unreliable.
Removed References to unused portions of POL.cfg (things no longer supported that was still being checked for).
01-02 Turley
Changed Scriptname & PC info in .setprop log entry "wtf, setprop w/ an error"
12-26 MuadDib
Added Ecompile.exe flag -xt defined in /? output.
Added Ecompile.exe flag -Au added. This is same as -A but to only compile Updated Src.
Added Ecompile.exe flag -s to Display Summary if -q is not set.
Added Ecompile.exe flag -D to create .dep files (Dependency information).
12-20 Turley
Added new char member .clientver_detail returns struct of ints {major;minor;rev;patch} new char method .compareversion(string) returns 1 if clientversion is >= then given version string else 0 or error "Not enough parameters"/"Invalid parameter type"/"No client attached"
Added new ssopt "ForceNewObjCachePackets" default false
Added support for new ObjectCacheInfos introduced in 5.0.0
old behavior: Server sends 0xBF Sub 0x10 per object ->Client response also with 0xBF Sub 0x10 per item
new behavior: Server sends 0xDC per object -> Client response with 0xD6 (there can be more then one serial up to ~16)
intern check is
if ((ssopt.ForceNewObjCachePackets) || (isUOKR) || (clientversion.major>=5))
since the client sends his clientversion not instantly the first few ObjCacheInfos are sent the old way (thats why the new ssopt is added)
Noted since client 6.0.5.0 the clientversion is instantly known (new seed packet)
Added support of new seed packet (>=6.0.5.0)
Noted right now no new packet is implementend (some packetsizes have changed)
12-19 Turley
Changed Extended PerformAction() it is now:
PerformAction(character,action,framecount:=5,repeatcount:=1, backward:=ACTION_DIR_FORWARD, repeatflag:=ACTION_NOREPEAT, delay:=1);
12-18 MuadDib
Changed Aux Client now sends "Connection closed" to a client that attempts to connect from an invalid IP according to IPMATCH settings before closing the socket.
12-18 Turley
Added Setting for servspecopt.cfg 'PrivacyPaperdoll' Default is disabled. if enabled, Paperdoll gives only char name for others (See Luth 09-28)
12-17 MuadDib
Fixed Item.layer gets reset to 0 when unequipped.
Fixed When loading Realms, POL will shutdown if it cannot find any realms and say so.
Added Item.tile_layer returns the Layer setting in the Tiles.cfg/Tiledata. This was added to always give the layer it uses, while leaving the internal handling both of Core and Scripts that utilize the fact of "if layer is set, it's equipped". This is ALWAYS set from the tile info at server load. So changing your tiledata, re-creating tiles.cfg will auto update your items.
Note Item.layer gets internally reset on server load if it is equipped, via tiles.cfg entry as well.
12-16 MuadDib
Added AuxSvc Configs now accept an IPMATCH entry identical to /config/servers.cfg. This is only an additional security feature, and not required to be in the .CFG :) The illegal ip will be treated by immediately closing the connection.
12-14 Nando
Fixed Characters/Starting Location packet wasn't sending the correct characters number. This was causing problems when enabling the 6th & 7th slot (or limiting to 1 slot). Characters number will now be set to Max(CharacterSlot, 5). The number of CharacterSlots shown will depend on the acct expansion. (If it's more than AOS, it'll send > 6, else 5).
Added Flags in the Characters/Starting Location packet and the Enable Features (0xB9) are now being set according to the CharacterSlots option in pol.cfg. It only works now with 1, 5, 6 and 7 slots, as this is a client limitation. You can hook the 0xB9 packet to change this in the future.
12-10 Nando
Removed POL's Windows-systray-icon beep when right-clicking is now gone.
Changed Region's internal tile zone is now 4x4 (was 32x32).
12-05 Luth
Fixed A bug in Run_Script caused when a Parent script ended before the child script.
10-29 Luth
Changed PrintTextAbove*() now takes one more optional parameter, journal_print, with acceptible values:
JOURNAL_[UC_]PRINT_NAME: In the journal, it prints the item's description / npc's name, colon, the message (POL standard)
JOURNAL_[UC_]PRINT_YOU_SEE: In the journal, it prints "You see: " followed by the message (UO standard) This does not affect the text that is printed above the item, ONLY what is shown in the Journal.
Fixed OnRemoveScript and OnInsertScript now called with all appropriate parameters
program onremovescript(character, container, item, item_amount, movetype)
program oninsertscript(character, container, movetype, inserttype, adding_item, existing_stack, amount_to_add)
10-28 Luth
Changed Set_Script_Option() now returns the previous value that was set for that option
09-28 Luth
Added npc::Face( direction );
Added mobile.SetFacing( direction, flags := FACE_NORMAL );
Noted mobile.facing := [0-7]; is the same as calling: mobile.SetFacing( [0-7], FACE_NORMAL );
Added MOVEOBJECT_IGNOREMOVALBE flag to move an object regardless of its .movable property
Fixed Paperdolls now give all information for self, and less information for others

POL098 Beta #1

09-23 Turley
Added uo::PlaySoundEffectXYZ( x, y, z, effect, realm := _DEFAULT_REALM );
09-17 Turley
Added uo::CreateNPCFromTemplate param override_properties can now contain .CProps Dictionary (key=cpropname value=cpropvalue)
09-08 Turley
Added uo::UpdateMobile(mob) Sends to mobiles in visual range UpdatePlayer packet of mob, for example to inform of notority changes
Added Packet 0xC Functions:
uo::PlayMovingEffectEx( source, target, effect, speed, duration := 0, hue := 0, render := 0, fixeddirection := 0, explode := 0, effect3d := 0, effect3dexplode := 0, effect3dsound := 0 );
uo::PlayMovingEffectXYZEx( srcx, srcy, srcz, dstx, dsty, dstz, realm := _DEFAULT_REALM, effect, speed, duration := 0, hue := 0, render := 0, fixeddirection := 0, explode := 0, effect3d := 0, effect3dexplode := 0, effect3dsound := 0 );
uo::PlayObjectCenteredEffectEx( center, effect, speed, duration := 0, hue := 0, render := 0, layer := 0, effect3d := 0 );
uo::PlayStationaryEffectEx( x, y, z, realm := _DEFAULT_REALM, effect, speed, duration := 0, hue := 0, render := 0, layer := 0, effect3d := 0 );
layer,effect3d,effect3dexplode,effect3dsound are only interpreted by the 3D client
(current known) render values are:
0 no change
1 It becomes dark
2 It becomes bright
3 Bright color is emphasized and dark color is converted transparently
4 The translucency (transparency is high)
5 The translucency (it is close to primary color)
6 Negative positive reversal
7 The background which is transparent negative positive reversal
layer values are:
0 Head
1 RightHand
2 LeftHand
3 Waist
4 LeftFoot
5 RightFoot
7 CenterFeet
effect3dexplode and effect3dsound are only interpreted if explode is set effect3d and effect3dexplode values can be found in client/particles dir
Examples:
CastAnimation only seen by 3D clients:
PlayObjectCenteredEffectEx( chr, 0, 10, 5, 0, 0, 1, 9041 ); //firesparkle on right hand
PerformAction(chr,0xCB); // moves with char
Fireball with explosion and sound:
PlayMovingEffectEx( chr,tar,0x36d4,7,0,0,0,0,1,9502,4019,0x160);
Changed StatRequest 0x34 checks if target is visible to char (e.g. Injection exploit)
08-29 Turley
Added uo::GetGlobalPropertyNames()
Changed uo::FindSubstance( container, objtype, amount, makeinuse := 0 );
to FindSubstance( container, objtype, amount, makeinuse := 0, flags := 0 );
flags are:
FINDSUBSTANCE_IGNORE_LOCKED : Find matches in locked containers
FINDSUBSTANCE_ROOT_ONLY : Do not find matches in sub-containers
FINDSUBSTANCE_FIND_ALL : Find all matches ignoring given amount
Added new Char methods:
.attack_once([opp])
attacks once without modifing the swingtimer if no opp is given attacks current attackable opponent, else attacks given opponent (and but checks if opponent is attackable
.setswingtimer(time)
if opponent is set sets swingtimer to given ms time
.kill([killer])
kills character ignoring invul, if killer is set repsys:OnDamage is called
Added new Char members:
.hitchance_mod +-int in thousandth
additive modificator of the hitchance from the attacker
.evasionchance_mod +-int in thousandth
subtractive modificator of the hitchance from the defender
Added new privilages:
"firewhilemoving" : swingtimer will not be reset if char is moving with projectile weapon
"attackhidden" : char can attack hidden opponents
"hiddenattack" : char can attack while hidden
Added new systemhook script 'HitMiss'
function HitMiss(attacker, defender)
is called if hitchance check fails no overriding of corefunctions or resultcheck

POL097.4

03-19-2009 MuadDib
Fixed Crash in reporting of leftover objects during Shutdown.
02-28-2009 VeNdOr
Fixed Crash involving Auxconnection.ip.
Fixed NPC events ENTEREDAREA and LEFTAREA were both fired even when one of them was eanbled.
02-28-2009 MuadDib
Fixed NPC.ar bug where ar was not reading intrinsic ar correctly when using ar_mod for the NPC.
02-25-2009 Nando
Fixed Removed a stray '\n' that was being sent at the end of a binary transfer in browser, causing some images to be corrupted. (This will finally solve the problem with some 'blank' images)
02-22-2009 Nando
Fixed Internal webserver will now handle binary files correctly. This was causing sporadic fails when loading a webpage which had images, stylesheets or any other of those fancy things...

POL097.3

01-31-2009 MuadDib
Added POL.Cfg::MiniDumpType=variable. This is a new DMP file version. For now, I HIGHLY RECOMMEND USING THIS IF YOU EXPERIENCE A LOT OF CRASHES OR ONES YOU CAN'T FIGURE OUT! The reason for this, is it is a small dump PLUS it stores all variable information from internal core functions in relation to the crash. This is information that could be VERY crucial to us Core Developers when you send the DMP file to the forums. So please, try to start using this one (We know the large option can be horendous. This is an alternative to that).
Fixed Null Package fix (Luth did this one a while back in 098)
01-14 Nando
Changed Highest allowed mobile graphic is now 0x800 (2048). Was 1024 since POL070.. wow... :)

POL097.2

01-05 Turley
Fixed URL percent decoding (like %2F= '/')
12-31 Nando
Fixed Internal webserver's threads weren't being reported in case there were threads hanging when shutting down. This might not solve the "zombie connections" bug, but will at least change it's name to "internal webserver bug", I'm hoping.
12-30 MuadDib
Added POL.Cfg::ReportMissingConfigs 0/1 (Default 1). Handles if Missing Config File reports are printed to the Debug.Log file. These are reports for example, when you use :*:npcdesc to open all npcdesc files in a script but not all packages of course will have this file.
Changed Weapons now have a Default Speed of 35 if no entry for Speed is in the itemdesc.cfg file if Delay is used. If no Delay, then will still throw an error and fail to load.
Fixed Typo on spellbook reports.
12-17 MuadDib
Fixed Possible memory leak with AOS Tooltips.
12-16 MuadDib
Fixed Memory leak in Packet Class using .Setxxxx Methods on Variable Length Packets.
Added Error Struct "Offset value out of range on a fixed length packet" when trying to use packet.Setxxxx() whose value is out of range in a fixed length packet.

POL097.1

09-17 Turley
Changed To simplify usage util::RandonIntMinMax() now accepts negative Integers and if parameters in wrong order swaps them
09-12 Turley
Fixed Memoryleak in PathFind
Fixed If only PacketHook SendFunction is defined on receive default handler is called if exists
09-09-2008 Austin
Fixed Usernames and passwords will accept all characters except control characters '\t','\f','\v','\n','\r' the characters '{' '}' and spaces.