Two missing files from lockpicking

Made a small change or new addition to the Distro that makes a difference? You can post the changes here in .patch or .diff file format, for others to use or even added to the official Distro SVN!

Moderators: POL Developer, Distro Developer

Locked
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Two missing files from lockpicking

Post by Yukiko »

My SVN Distro folder kept showing me a red exclamation point and upon examination I found out why. For some reason these two files didn't make it into the .patch file I submitted.

This one, createchest.src, belongs in \pkg\skills\lockpicking\commands\gm

Code: Select all

/*
 * $Id: createchest.src $
 *
 */

use uo;


program textcmd_Create(who, text)

	if ( !text )
		SendSysMessage(who, "Usage: .createchest <difficulty>");
		return 0;
    endif
    var diff := CInt(text);
    if( !diff)
   		SendSysMessage(who, "The difficulty defaults to 1.");
		diff := 1;
    endif

    SendSysMessage(who, "Where would you like it placed?");
	var targ := TargetCoordinates(who);
    var chest := 0x69f8;
    var created := CreateItemAtLocation(targ.x, targ.y, targ.z, chest, 1, who.realm);
	SetObjProperty(chest, "lockpicking", diff );
	SetObjProperty(chest,"spawnchest", 1);
	created.locked :=1;
    if ( !created )
        SendSysMessage(who, "Error: Could not create the chest.");
        return 0;
    elseif ( !targ )
        SendSysMessage(who, "Cancelled");
        return 0;
    endif
	return 1;
endprogram
And the other is just the icp.cfg file which belongs in the \lockpicking\config directory:

Code: Select all

ICP Register
{
	Name		Lockpicking
	Version		2.0
	Description	The POL 095 Distro Lockpicking skill converted to POL 098
	Description	Conversion done by Yukiko - Hope Lives Shard Project.

	Creator		POL Distro Team
	C_Email		distro@polserver.com
        
	Maintainer	POL Distro Team
	M_Email		distro@polserver.com

	#Script	cmdlevel path

	#TextCmd	cmdlevel	path
	
}
Tortoise didn't show me the file "createchest.src" when I added these to the SVN Distro folder and tried to create another patch file to add these two.
Thanks.
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Two missing files from lockpicking

Post by Tomi »

Added to 098 distro.
Locked