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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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

Posts: 34
Likes Given: 15
Likes Received: 0 in 0 posts
Joined: Apr 2017
Reputation: 0



Post: #1
Trying to make a "gift chest"
Let me start by saying I'm VERY new at this scripting thing. I've gotten super help from other members here before, and have learned a lot. Sooooo, what I'm trying to do now is make a worldgem bit that spawns a chest with a random Vanquishing Weapon inside. I want this chest to be static when it spawns, and I want it to disappear after the item inside has been taken. The code below is what I have so far. It DOES work, except for the disappearing part. The code, as it is now, has a vanq_bow, but would rather it be a random weapon, which I think I can do. Just haven't bothered until I get the fool chest to work properly. Someone PLEASE help me!!

Code:
[DEFNAME i_loot_chest]
random_loot_test { i_bow_vanq }

[TEMPLATE i_loot_chest]
CATEGORY=Item Templates
SUBSECTION= New Loot Templates
DESCRIPTION=Vanq_bow_chest
container = i_chest_metal
ATTR=attr_can_decay
ATTR=attr_static
ATTR=attr_move_never
ITEM = i_bow_vanq
ON=@DClick
    ATTR=attr_decay 10
    TIMER={1 2}
ON=@Timer
   REMOVE
04-30-2017 02:50 PM
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" - 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)