function command_RESURRECT( socket, cmdString )
{
var targMsg = GetDictionaryEntry( 194, socket.Language );
socket.CustomTarget( 1, targMsg );
}
function onCallback1( socket, ourObj )
{
if( ourObj.isChar )
ourObj.Resurrect();
}
When trying to use it on a character, I get this in console:
| ERROR: JS script failure: Message (TypeError: ourObj has no properties), detai
led data is
| ERROR: Filename: d:/uox3/js/commands/targeting/kill.js
Line Number: 61
| ERROR: Erroneous Line: (null)
Token Ptr: (null)
More info on the bug. After closing the client and logging back in with my dead GM character, the resurrect command works. So there's apparently something that happens when my character dies which stops UOX3 from seeing the character as a valid target or something.
BTW, I added PACK as a shortcut for KILLing layer 0x15.
Xuri wrote:BTW, I added PACK as a shortcut for KILLing layer 0x15.
And that is what I love about JS
Well, basically that means that something is fudgy with it automatically calculating the serial sent as the target from the client. I'll have to look into it and see what is causing the issue.