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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trash
Author Message
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #11
RE: Trash
this way also the item returned some

21:55: ERROR: (trashcan.scp, 19) Undefined keyword 'argo.timerf'
01-27-2014 10:02 AM
Find all posts by this user Like Post Quote this message in a reply
disayner
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #12
RE: Trash
Why use dclick triger
When dclick trashcan be always empty

GT-I9500 cihazımdan Tapatalk kullanılarak gönderildi

Sorry my english i want to say why dont use dclick triger

GT-I9500 cihazımdan Tapatalk kullanılarak gönderildi
(This post was last modified: 01-27-2014 12:15 PM by disayner.)
01-27-2014 12:12 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #13
RE: Trash
On=@DropOn_Self
ref1 <argo>
src.sysmessage O item sumira em 20 seconds.
ref1.timerf 20, f_item_decay


If he uses dclick he won't be able to open the trashcan to get the item out if he changes his mind before the timer expires.

[Image: 2nis46r.jpg]
01-27-2014 09:32 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #14
RE: Trash
This way he won't be able to change of mind too, the timer is going to take effect wether you pick it up or not.

ON=@PickUp_Self
ref1=<argo>
ref1.timerf STOP,f_item_decay
01-27-2014 11:05 PM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #15
RE: Trash
Could use this way, so that when the game on top of the item it removes the trash dumpster over the item.
So I need to fix On = Dropon_self not to remove the trash and only the item within

That way is not working

ON = @ CREATE
COLOR = 600
ATTR = attr_static
TIMER 15

On = @ DropOn_Self
cont.remove
remove
01-27-2014 11:45 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #16
RE: Trash
cont.remove will remove the cont of the default item on the trigger (in thise case is the trash can itself, so will try to remove the container holding it), if you readed the other posts you will see how the reference to the item being dropped on the container is retrieved via argo, so argo.remove will remove the item instantly after dropping it in the trash can.
01-28-2014 12:50 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #17
RE: Trash
Clearly there is some language barrier here.
So I am just gonna post this:

Code:
[ITEMDEF i_trashcan]
NAME=trashcan
ID=i_barrel_open
TYPE=t_container

ON=@CREATE
COLOR=0835

ON=@Dropon_Self
ref1=<argo>
src.sound=011e
ref1.remove
return 1


As for not stopping decay on an item picked up (if still doing the timer because I don't know what he is saying now), given a simple REMOVE command isn't being used, for whatever reason, the delete function could check that the container is still the trash can and if not, cancel the deletion.

[Image: 2nis46r.jpg]
01-28-2014 01:37 AM
Visit this user's website 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)