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
Itens Remove
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Itens Remove
Hi guys, I need your help for a little problem.

I need to remove all items that are spawnds during an event (Chests) when the event ends. I have try use this but not work :

Code:
FORITEMS 1000
    if <baseid> != tm_chest_hunger_games_t2
        REMOVE
    ENDIF
endfor

thx
(This post was last modified: 10-06-2014 12:12 AM by Van Glan Bloom.)
10-05-2014 11:31 PM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #2
RE: Itens Remove
i think you should add event for your event to give items for see are they created in events and then after events end remove them

tag.createdevent = 1

then
foritems 6500
if (dtag.createdevent == 1)
remove
endif
endfor

i think this will work Tongue
(This post was last modified: 10-06-2014 12:29 AM by azmanomer.)
10-06-2014 12:27 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: Itens Remove
You can not compare <baseid> to a template.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
10-06-2014 12:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #4
RE: Itens Remove
I have change the baseid and the script work. Thx guys =)
10-06-2014 08:27 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: Itens Remove
Code:
ARGS ITEMDEFNAME1,ITEMDEFNAME2,ITEMDEFNAME3........
FOR 0 <EVAL <ARGV>-1>
FORINSTANCES <ARGV[<dLOCAL._FOR>]>
REMOVE
ENDFOR
ENDFOR
(This post was last modified: 10-06-2014 01:22 PM by kn4tseb.)
10-06-2014 01:20 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)