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
Provisions Magic Weapon question
Author Message
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #1
Provisions Magic Weapon question
Howdy there this question could be really easy for some but hard for me :/

I dont quite understand what in the script decides what makes the attribute of a magical weapon +3 +6 +9 ect. Could someone explain it?

Also would it be possible to make weapons with a similar attribute? Example: +17 Boxing Gloves of Vanq (just an example Tongue)
03-10-2013 09:22 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: Provisions Magic Weapon question
The wiki explains a little bit how built-in typedef's are implemented... for example:

Quote:t_weapon_mace_smith 11 This type is used for macefighting weapons that can also be used by blacksmiths to forge items. It leverages the following properties:

MORE1L = Max hitpoints
MORE1H = Current hitpoints
MOREY = Attack bonus (percentage), but only if ATTR & attr_magic

The following overrides can be set on a per item basis:

TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does
TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits
TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses

...so to set the +3 +9 etc, you'r weapon needs to have attr_magic and it needs a number in MOREY...

There are undocumented properties as well that are not in the wiki (yet):

MORE2 = Charges (only if the item is a wand?)
MOREX = Spell imbued in the item
MOREY = Level of the spell (0-1000)
MOREZ = Poison level (0-100)
03-10-2013 11:32 AM
Find all posts by this user Like Post Quote this message in a reply
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #3
RE: Provisions Magic Weapon question
Thanks great help Big Grin works like a charm Smile
03-10-2013 11:11 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)