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-nmm6 (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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
proper use of 'remove'
Author Message
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #1
proper use of 'remove'
this has actually kicked my ass for a really long time, i saw something about it on the old forums, i think vjaka or furio explained it, but as we dont have any access to that anymore i cant remember the proper use, ill give some examples, once i get the proper useage i plane to update the damn wiki so its always there incase i forget again or incase someone else needs to know of course

ok, so to remove the obj that the script is running on i know already, its obvious really:

Code:
on=@timer
remove
return 1

but what if i need to remove some other item?

Code:
// lets assume for the moment that i am passing multiple UID's to this function

[function remove_me]
ref1=<argv[0]>
remove <ref1>

the above example doesnt seem correct at all to me, so:

Code:
// lets assume for the moment that i am passing multiple UID's to this function

[function remove_me]
ref1=<argv[0]>
ref1.remove

so is this proper? and if so, how would i work that in a @step trigger for example, on an item to remove a multi:

// lets assume for the moment that i am passing multiple UID's to this function

Code:
[itemdef i_remove_me]
id=i_gold
type=t_script
name=Remove the region

on=@step
region.remove // ????

so u can see, the damned remove function is haunting me, as many examples as i can get would be uber helpful

[Image: matts_siggy.gif]
(This post was last modified: 07-24-2013 04:11 AM by Rattlehead.)
07-24-2013 04:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
proper use of 'remove' - Rattlehead - 07-24-2013 04:10 AM
RE: proper use of 'remove' - Shaklaban - 07-24-2013, 04:26 AM
RE: proper use of 'remove' - Rattlehead - 07-24-2013, 04:55 AM
RE: proper use of 'remove' - amonvangrell - 07-24-2013, 08:18 AM
RE: proper use of 'remove' - RanXerox - 07-24-2013, 11:15 AM

Forum Jump:


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