ALLMOVE and HOUSEICONS

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

ALLMOVE and HOUSEICONS

Post by giwo »

I did a no-no ;)

Code: Select all

function command_ALLMOVE( socket, cmdString )
{
	var pUser = socket.currentChar;
	var value = (cmdString == "ON");
	var sysMessage;

	pUser.allmove = value;
	pUser.Teleport();
	if( value )
		sysMessage = GetDictionaryEntry( 39, socket.Language );
	else
		sysMessage = GetDictionaryEntry( 40, socket.Language );
	socket.SysMessage( sysMessage );
}

change this line

Code: Select all

	var value = (cmdString == "ON");
to this

Code: Select all

	var value = (cmdString.toUpperCase() == "ON");
That should work properly (I believe, can't test it here).

Do the same thing with houseicons and they should work again. ;)
Scott
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 »

Yup, works =)
-= Ho Eyo He Hum =-
Post Reply