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
Bag restock
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Bag restock
I'm trying to have a bag on the ground restock the items inside of it. I've tried making a template and spawning that with a max amount of 1. Everytime the gembit's timer runs out it just spawns another bag. How can I do this?
12-16-2016 03:45 PM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

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



Post: #2
RE: Bag restock
Dont use the gembit, just set a timer to the bag.
12-17-2016 07:30 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: Bag restock
Yeah I tried doing that but just couldn't figure out how to get the newly created item into the bag.

Code:
ON=@TIMER
newitem = i_test
//how do i get the dagger in the bag from here? set it's p? bounce it into the bag?
(This post was last modified: 12-17-2016 09:02 AM by Leonidas.)
12-17-2016 09:02 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Bag restock
Code:
ON=@TIMER
if (<rescount.i_reag_mandrake_root> < 50)
    serv.newitem i_reag_mandrake_root, <eval 50 - <rescount.i_reag_mandrake_root>>, <uid>, 0
endif

Grandmaster Localhost Admin
12-18-2016 08:00 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #5
RE: Bag restock
serv.newitem i_reag_mandrake_root, <eval 50 - <rescount.i_reag_mandrake_root>>, <uid>, 0

This way to put all in the same lane is a new feature? or old one? didnt know it. ty
12-19-2016 07:44 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #6
RE: Bag restock
(12-19-2016 07:44 AM)rastrero Wrote:  This way to put all in the same lane is a new feature? or old one? didnt know it. ty

http://wiki.sphere.torfo.org/index.php?t..._7#NEWITEM

Grandmaster Localhost Admin
12-19-2016 08:27 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #7
RE: Bag restock
Thanks man, that's working perfectly.
12-19-2016 01:58 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)