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
Cannot equip with LINK
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Cannot equip with LINK
Suggestions:

1. You don't need to link the timer to the character in a trigger, you can just look at the "container" the timer is in to find who has it equipped...
2. You don't have to equip the robe, you can just create it already equipped...
3. The item doesn't have to be an ID=i_memory... you can make it look like any tile if that helps (tip: always set the weight to 0)

Code:
[ITEMDEF i_gm_robe_enforcer]
ID=i_cloth_cut
NAME=GM Robe Enforcer
TYPE=t_eq_script
LAYER=layer_special
WEIGHT=0
ON=@Create
   COLOR=021//red
ON=@Equip
   TIMER=10//Start the timer when it's equipped
ON=@Timer
   IF ((<CONT.ACCOUNT.PLEVEL> >= 4) && (<LINK.FINDLAYER.layer_robe.BASEID> != i_robe_gm))
      CONT.SYSMESSAGE @00 Wear your GM robe.
      SERV.NEWITEM=i_robe_gm,1,<CONT>
   ENDIF
   TIMER=10//restart the timer
   RETURN 1
04-29-2013 03:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Cannot equip with LINK - mlyon83 - 04-29-2013, 02:00 PM
RE: Cannot equip with LINK - RanXerox - 04-29-2013 03:01 PM
RE: Cannot equip with LINK - mlyon83 - 04-29-2013, 03:44 PM
RE: Cannot equip with LINK - RanXerox - 04-29-2013, 05:14 PM

Forum Jump:


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