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
Skill to use
Author Message
victorstelzer
Journeyman
*

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



Post: #1
Skill to use
[ITEMDEF i_vulcan_bow]
ID=i_bow
NAME=Vulcan Bow
SKILLMAKE=SKILL_BOWCRAFT 100.0,SKILL_ARMSLORE 75.0
RESOURCES=12 ingot_vulcan,15 i_log
CATEGORY=New Colored Weapons
SUBSECTION=Vulcan
DESCRIPTION=Vulcan Bow
TEVENTS=T_PROPRIEDADES
DAM=18,25
REQSTR=80
TWOHANDS=N
SPEED=30
WEIGHT=7

I need to put skill of archery under 100 does not equip the bow

how to make the script?
07-02-2012 11:03 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

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



Post: #2
RE: Skill to use
Add this to the ITEMDEF itself:

Code:
ON=@EquipTest
   IF (<SRC.Archery> < 100.0)
      SRC.SYSMESSAGE You are not skilled enough to use this weapon!
      RETURN 1
   ENDIF
07-02-2012 11:12 AM
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: #3
RE: Skill to use
Thanks It worked
07-02-2012 01:09 PM
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)