Emotes?

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Emotes?

Post by stranf »

As many of you know, I've been working on some GM scripts that allow a GM to add/subtract, strength, hit points, karma, mp, dex, yadd yadda

and also to target NPCs and make them say things

Is there a javascript function that forces an emote?

There are more on the 3d client, but since I use 2d I can only think of 4


1-bow
2-salute
3-shrug 1
4- shrug 2


There might only be 1 shrug animation, I"m not sure.


So is there a function that can force these:

something along the lines of:

Code: Select all

  function CommandRegistration()
{
	RegisterCommand( "bow", 0, true );  
	var Text;
}
function command_NT( socket, cmdString )
{
	
	socket.CustomTarget( 0, "Select Target" );
	Text = cmdString;
	
}

function onCallback0( socket, ourObj )
{	
 ourObj.ForceBow();
	
}


If these functions don't exist, could they be easily exported from the .exe? Maybe Bowing is all handled by the client....that would stink, since all human NPCs use the same body, it shouldn't be stretch to make a human NPC bow just like a PC. It would also add more depth to the RP experience.

Thanks.
Maarc
Developer
Posts: 576
Joined: Sat Mar 27, 2004 6:22 am
Location: Fleet, UK
Has thanked: 0
Been thanked: 0
Contact:

Post by Maarc »

Code: Select all

someChar.DoAction( actionNumber );
A quick glimpse through the code sees these sorts of actions:

Horse combat
============
Bows 0x1B
XBows 0x1C
Swords 0x1A
2hnd 0x1D
============
Foot combat
============
Bows 0x12
XBows 0x13
1h weap 0x09 / 0x0A
maces 0x09 / 0x0b
2h weaps 0x0c / 0x0d
fencing 0x0a
2h fencing 0x0e
============
Resurrect 0x10
Death / EQ1 0x15
Earthquake 2 0x16
Summon Monster 0x0C
Bow (human) 0x20
Bow (other) 0x12
Salute (human) 0x21
Salute (other) 0x11

There'd be a number more, I'm sure. The InsideUO program might be able to tell you more
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thank you! It's my finals week, but I think I can implement that during some spare moments and post something useful for a change!
Post Reply