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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to make a "gift chest"
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #10
RE: Trying to make a "gift chest"
try the chests without the worldgem bit.

.add i_loot_chest
open the chest
take the item
see what happens. With the 1st script it should go invisible (if you have .gm ON you will still see the chest. Type .gm and .update to test it properly) and with the 2nd script it should be removed.

If it doesnt work, change the script to (this should work as you want, with the worldgem bit and everything):

[ITEMDEF i_loot_chest]
ID=i_chest_metal_brass
NAME=Loot Chest
TYPE=t_container

ON=@CREATE
ATTR=attr_move_never|attr_decay
NEWITEM=i_bow_vanq
NEW.CONT=<UID>

ON=@PickUp_Self
TIMERF 1, f_loot_chest

[FUNCTION f_loot_chest]
IF (<COUNT>==0)
REMOVE
ENDIF
(This post was last modified: 05-03-2017 09:20 AM by pointhz.)
05-03-2017 09:19 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Trying to make a "gift chest" - Jozack - 04-30-2017, 02:50 PM
RE: Trying to make a "gift chest" - Jozack - 05-01-2017, 10:45 AM
RE: Trying to make a "gift chest" - Coruja - 05-01-2017, 04:20 PM
RE: Trying to make a "gift chest" - Jozack - 05-02-2017, 01:03 PM
RE: Trying to make a "gift chest" - Coruja - 05-03-2017, 03:10 AM
RE: Trying to make a "gift chest" - Jozack - 05-03-2017, 04:16 AM
RE: Trying to make a "gift chest" - Jozack - 05-03-2017, 08:54 AM
RE: Trying to make a "gift chest" - pointhz - 05-03-2017 09:19 AM
RE: Trying to make a "gift chest" - Jozack - 05-03-2017, 09:39 AM
RE: Trying to make a "gift chest" - Coruja - 05-03-2017, 10:48 AM

Forum Jump:


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