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

Distro Developer
Posts: 2824
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas

Two missing files from lockpicking

Post by Yukiko » Fri Aug 28, 2009 3:56 am

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;
    var diff := CInt(text);
    if( !diff)
   		SendSysMessage(who, "The difficulty defaults to 1.");
		diff := 1;

    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;
	return 1;
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
	Maintainer	POL Distro Team

	#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.

POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Two missing files from lockpicking

Post by Tomi » Fri Aug 28, 2009 7:15 am

Added to 098 distro.