hey its me again.

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Avenging Angel
Neophyte Poster
Posts: 33
Joined: Sat Aug 19, 2006 12:47 pm

hey its me again.

Post by Avenging Angel »

I needed to ask how hard is it to upgrade from 95 to 96? I dont even know how to do that if someone could tell me how to upgrade to 96 i would really like it please.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

The first place to start is the corechanges.txt file.

One of the biggest things is the addition of the realm parameter to functions that require it. The following is an excerpt from corechanges.txt that describes those functions and where to add the reakm parameter in the function calls.
const _DEFAULT_REALM := "britannia";
CreateItemAtLocation( x, y, z, objtype, amount := 1, realm := _DEFAULT_REALM );
CreateItemCopyAtLocation(x, y, z, item, realm := _DEFAULT_REALM);
boat.move_offline_mobiles(int x, int y, int z[, string realm]);
(If realm is not set, Boat-realm is used.)
CreateMultiAtLocation( x, y, z, objtype, flags := 0, realm := _DEFAULT_REALM );
CreateNpcFromTemplate( template, x, y, z, override_properties := 0, realm := _DEFAULT_REALM);
FindPath( x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM, mobilesblock := 0, searchskirt := 5 );
GetHarvestDifficulty( resource, x, y, tiletype, realm := _DEFAULT_REALM );
GetMapInfo( x, y, realm := _DEFAULT_REALM );
GetRegionString( resource, x, y, propertyname, realm := _DEFAULT_REALM );
GetStandingHeight( x, y, startz, realm := _DEFAULT_REALM );
GetWorldHeight( x, y, realm := _DEFAULT_REALM );
HarvestResource( resource, x, y, b, n, realm := _DEFAULT_REALM ); // returns b*a where 0 <= a <= n
ListGhostsNearLocation( x, y, z, range, realm := _DEFAULT_REALM );
ListItemsAtLocation( x, y, z, realm := _DEFAULT_REALM );
ListItemsNearLocation( x, y, z, range, realm := _DEFAULT_REALM );
ListItemsNearLocationOfType( x,y,z, range, objtype, realm := _DEFAULT_REALM );
ListItemsNearLocationWithFlag( x,y,z, range, flags, realm := _DEFAULT_REALM );
ListMobilesNearLocation( x, y, z, range, realm := _DEFAULT_REALM );
ListMobilesNearLocationEx( x,y,z, range, flags, realm := _DEFAULT_REALM );
ListObjectsInBox( x1,y1,z1, x2,y2,z2, realm := _DEFAULT_REALM );
ListMultisInBox( x1,y1,z1, x2,y2,z2, realm := _DEFAULT_REALM );
PlayMovingEffectXYZ( srcx, srcy, srcz, dstx, dsty, dstz, effect, speed, loop := 0, explode := 0, realm := _DEFAULT_REALM );
PlayStationaryEffect( x, y, z, effect, speed, loop := 0, explode := 0, realm := _DEFAULT_REALM );




10-17 Austin
Added : Added uo::MoveObjectToLocation( object, x, y, z, realm := _DEFAULT_REALM, flags := MOVEOBJECT_NORMAL );
Function will replace MoveCharacterToLocation(), MoveItemToLocation(), and MoveObjectToRealm()
Currently moves boats, mobiles, and items.
You should change all MoveItemToLocation() and MoveCharacterToLocation() to MoveObjectToLocation() function calls. The first two are deprecated in POL 97 I believe and will generate a compile error if not changed.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Next after going through all your scripts and updating the above function calls to include the realm parameter, you will need to make the following changes to your itemdesc.cfg file where 'spellbook' is defined:
AOS Spellbook packets are supported. For this, change you spellbook's
itemdesc.cfg type from Container to Spellbook. Paladin and Necromancer
spellbooks are supported by the new Spellbook itemdesc type property
"SpellType" which is one of these strings: "Magic", "Paladin", "Necro".

Recognized scroll objects are: Magic: 0x1F2D - 0x1F6C, Necro 0x2260 - 0x226F,
Paladin: 0x2270 - 0x227C. Sorry this is hardcoded :P
As things come to mind I will try to post them here but those two are the biggest ones.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

RTFM

Core-Changes.txt will tell you all the changes between 095 and 096, required and optional
Avenging Angel
Neophyte Poster
Posts: 33
Joined: Sat Aug 19, 2006 12:47 pm

Post by Avenging Angel »

thx
Post Reply