[FIXED] Refresh-issue with Teleport JS function

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Refresh-issue with Teleport JS function

Post by Xuri »

When a character is teleported to another facet/world using the JS function char.Teleport( x, y, z, worldnum), he will not vanish from the screen of anyone standing nearby and who should see him getting teleported away from their world (in other words: vanish from their screen.)

Tested using UOX3 0.98-3.7m.
Last edited by Xuri on Tue Jan 20, 2009 12:24 am, edited 1 time in total.
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

I'll have a look at it during the weekend.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Still valid in UOX3 0.98-4.0 using client 6.0.12.3.
Testcase:
1. Login with two characters on two seperate clients
2. Move both characters to the same location ingame, so they can see the other character on their screen.
3. Setup a small test-script containing the following javascript code, then give it an ID in jse_fileassociations.scp:

Code: Select all

function onUseChecked( pUser, iUsed )
{
	pUser.Teleport( pUser.x, pUser.y, pUser.z, 1)
	return false;
}
4. Reload the JS engine by pressing * followed by 8 in the UOX3 console window.
5. 'SETSCPTRIG <scriptID> on an item ingame
6. Let one of the players doubleclick the item to get teleported away from the other
7. Verify that the character double-clicking on the teleportation-object was indeed teleported away
7. Observe, on the client of the character who remained behind, that the character who was teleported will not have vanished from the screen.
-= Ho Eyo He Hum =-
Post Reply