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
ON=@ITEMDROPON_GROUND
Author Message
Deathangel592
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #1
ON=@ITEMDROPON_GROUND
Hello. I have problem with ON=@ITEMDROPON_GROUND trigger.
I need that for example someone drops item on the groud no matter where and this item dissapears after 20 seconds, can someone help me with that?
And when item is dropped on the ground it showes on the item Item will dissapear in 20 seconds.
10-01-2012 09:40 PM
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: #2
RE: ON=@ITEMDROPON_GROUND
Code:
on=@itemdropon_ground
if !( <act.attr> & attr_move_never ) && !( <act.attr> & attr_static )
  act.attr |= attr_decay
  act.p=<args>
  act.timer=20
  act.message This item will decay in 20 seconds.
  return 1
endif

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
10-01-2012 10:28 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Deathangel592
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: ON=@ITEMDROPON_GROUND
(10-01-2012 10:28 PM)Skul Wrote:  
Code:
on=@itemdropon_ground
if !( <act.attr> & attr_move_never ) && !( <act.attr> & attr_static )
  act.attr |= attr_decay
  act.p=<args>
  act.timer=20
  act.message This item will decay in 20 seconds.
  return 1
endif

Thanks mate. It worked. Smile
10-10-2012 05:56 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: ON=@ITEMDROPON_GROUND
timer can cause some problems, since lot of script using @timer trigger. you can replace timer=20 line with argn1=200

http://wiki.sphere.torfo.org/index.php/@DropOn_Ground
(This post was last modified: 10-10-2012 07:29 AM by Shaklaban.)
10-10-2012 07:28 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #5
RE: ON=@ITEMDROPON_GROUND
If you use, timer or argn1 I think they don't check if it's static or move_never when the timer finish.
Code:
[Function f_item_decay]
ref1=<uid>
if !(<ref1.cont>) && !(<ref1.attr>&attr_static) && !(<ref1.attr>&attr_move_never) && !(<ref1.attr>&attr_owned)
ref1.remove
endif

In your player event;
Code:
On=@ItemDropOn_Ground
src.sysmessage This item will decay in 20 seconds.
act.timerf 20,f_item_decay

On=@ItemPickUp_Ground
act.timerf clear
02-16-2013 01:46 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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