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
attr_can_decay help
Author Message
Osi
Apprentice
*

Posts: 4
Likes Given: 4
Likes Received: 0 in 0 posts
Joined: Jan 2015
Reputation: 0



Post: #1
Question attr_can_decay help
[ITEMDEF i_test2]
NAME=Super Duper Wand of Fire and Brimstone !turbo!
ID=i_wand_1
TYPE=t_wand

RESOURCES=i_wand,10 i_scroll_flamestrike
ERROR:(test.scp,359)Undefined symbol 'i_wand'
ERROR:(test.scp,359)Bad resource list id 'i_wand,10 i_scroll_flamestrike' ??

RESOURCES=i_wand_1,10 i_scroll_flamestrike what I did and why its working Lol ?


ON=@Create
ATTR=attr_magic
MOREX=s_flamestrike
MOREY=50.0
MORE2=10

Code:
on=@Timer
ATTR=attr_can_decay 10 (10 sec?)
IF (<@equip <src.timer <= 0> remove.src.i_test2>)
&&
Code:
ON=@Create
ATTR=attr_magic|attr_decay
MOREX=s_flamestrike
MOREY=50.0
MORE2=10
timer 100

on=@equip
timer 10

on=@timer
RETURN 1
(This post was last modified: 02-10-2015 08:58 AM by Osi.)
02-09-2015 10:05 PM
Find all posts by this user Like Post Quote this message in a reply
Jim
Apprentice
*

Posts: 28
Likes Given: 1
Likes Received: 12 in 4 posts
Joined: Jan 2015
Reputation: 0



Post: #2
RE: attr_can_decay help
You can use "i_wand_1", because there is a item that use "i_wand_1" as the DEFNAME in your script pack.
But there is NOT a item that use "i_wand" as the DEFNAME in your script pack.
Unless you define a new item and use the "i_wand" as the defname.

And about the decay, if you use the "RETURN 1" in @timer trigger, then item will NOT decay when the timer reach Zero
02-10-2015 04:53 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Jim's post
Post Reply 


Forum Jump:


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