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
SkillMakeItem Trigger
Author Message
kn4tseb
Master
**

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



Post: #5
RE: SkillMakeItem Trigger
uhmmm.. i still dont get it

if i have i_sewing_kit_special1 and i_sewing_kit_special2 both items have charges (uses)

and when i craft an item i want that a specified one to be its charges decrease by one, how would i be able to make a reference of it?.

this is what i have at the moment.

Code:
ON=@SkillMakeItem
IF strmatch(*t_armor_leather*,<act.type>)
forconttype t_sewing_kit
   if <baseid> == i_sewing_kit_runic_spined || <baseid> == i_sewing_kit_runic_horned || <baseid> == i_sewing_kit_runic_barbed
      ref1 = <uid>
   endif
endfor
IF <REF1>
   ref1.tag0.uses -= 1
   ref1.update
   ref1.<runicarmorsattr> // function
ENDIF

But the thing is what if i have more than one of those items or more than one of this special items... with this code, its not totally accure to specify the item i want to be used..
(This post was last modified: 08-06-2014 09:08 AM by kn4tseb.)
08-06-2014 08:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
SkillMakeItem Trigger - kn4tseb - 08-06-2014, 07:03 AM
RE: SkillMakeItem Trigger - Skul - 08-06-2014, 07:58 AM
RE: SkillMakeItem Trigger - kn4tseb - 08-06-2014, 08:34 AM
RE: SkillMakeItem Trigger - Skul - 08-06-2014, 08:48 AM
RE: SkillMakeItem Trigger - kn4tseb - 08-06-2014 08:59 AM
RE: SkillMakeItem Trigger - Skul - 08-06-2014, 09:34 AM
RE: SkillMakeItem Trigger - Ben - 08-06-2014, 01:04 PM
RE: SkillMakeItem Trigger - kn4tseb - 08-06-2014, 02:35 PM
RE: SkillMakeItem Trigger - XuN - 08-06-2014, 05:09 PM
RE: SkillMakeItem Trigger - kn4tseb - 08-07-2014, 08:32 AM

Forum Jump:


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