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
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: Trying to make a "gift chest"
honestly I don't know if TEMPLATEs works fine with triggers because I never had used triggers on templates, but anyway you can try using @PickUp_Self trigger, just add it on your current script

you don't need to create another container again because the worldgem bit will already do it later automatically

Code:
//Remove the container after someone pick an item inside it
//PS: TIMERF is needed because @PickUp_Self is called before the item is picked, so if you delete the container before the player pick the item, it will delete the item too
ON=@PickUp_Self
TIMERF 1,REMOVE

//Prevent drop more items inside the container
//PS: not really needed, but this will avoid players losing items if for some reason someone drop an item inside the container
ON=@DropOn_Self
return 1
05-01-2017 04:20 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
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" - 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)