The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Craftable Lockables
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #1
Craftable Lockables
The original version of this was the 2nd script I ever made years ago.
This version is 90% smaller (I took out the items themselves) and just as effective

I never liked the scripts back then gave players a deed for a container that locked when they crafted them. So I did this instead.
Super small, Super simple.

Just add TEVENTS=t_keyed to whatever items you want to be players to be able to craft with a key, and add i_key_copper to the RESOURCES line for a bit more realism.

Code:
[TYPEDEF t_keyed]
ON=@DCLICK
IF (<eval <More2>> < 1)
    serv.newitem=i_key_copper
    new.more1=<uid>
    new.cont=<uid>
    more1=<uid>
    MORE2 += 1
ENDIF

[Image: 2nis46r.jpg]
10-06-2012 10:12 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #2
RE: Craftable Lockables
Now here's a challenge for you:
Alter the crafting system I showed you to have an extra section, like materials, for lock type. Have it list unlocked, and all the key types.

When a key type is chosen and a player is examing/crafting a container, tack the key on to the resources and add your even to the container. Use an override tag to alter key type. If unlocked is selected, just do the normal routine.

Also one related note... your system sets MORE2 for tracking, which is clever in a way but means that all your containers are going to be very easy to lockpick having 0.1 difficulty. I'd set MORE2 based on keytype and remove the event when it finishes, or keep your check since MORE2 will be >1. Removing it seems slightly more effiecient.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
10-06-2012 05:42 PM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #3
RE: Craftable Lockables
or better yet make more2 random higher the persons skill in lockpicking and skill required to craft the item the harder it is to lock pick?

[Image: htid.jpg]
10-06-2012 08:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)