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
Armor Modify issue
Author Message
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #1
Armor Modify issue
Hi community

Quote:FIRST SORRY FOR MY VERY WEAK ENGLISH..

How do i upgrade the armor of an item?

Here is explanation ~

this is standard wooden kite shield and its haven't ARMOR option, its blocked somehow and when you wear, its doesnt give armor value.

PHP Code:
[ITEMDEF 01b78]
DEFNAME=i_shield_kite_wood
NAME
=tear kite shield
TYPE
=t_shield
FLIP
=1
//ARMOR=9 its blocked why ? idk
VALUE=36
WEIGHT
=9.0
RESOURCES
=7 i_ingot_iron,2 i_log
SKILLMAKE
=Blacksmithing 20.0,Armslore 20.0
CATEGORY
=Provisions Armor
SUBSECTION
=Shields
DESCRIPTION
=Tear Kite Shield
CanUse
=can_u_human|can_u_elf
ReqStr
=20
TEVENTS
=t_equipitem
DUPELIST
=01b79
ON
=@Create
   HITPOINTS
={36 48}
   
RESENERGY=


and here is my scripts to getting some armor value

PHP Code:
[ITEMDEF I_REGEN_KITE_SHIELD]
DEFNAME=REGEN_KITE
ID
=I_SHIELD_KITE_WOOD
NAME
=Magic Kite Shield
TYPE
=t_armor

CATEGORY
=!Magic Armor
SUBSECTION
=Regen Items
DESCRIPTION
=Magic Kite Shield

ON
=@CREATE
    MOREY
=200.0 // its not working with Wooden kite shield.
    
ATTR=ATTR_MAGIC
    HITPOINTS
=100
    COLOR
=COLOR_MAGIC_INVULNERABILITY

ON
=@EQUIP
    LINK
=<SRC.UID>
    
TIMER=1

ON
=@TIMER
    
IF (<LINK.HITPOINTS><<LINK.STR> )
    
LINK.HITS=<LINK.HITPOINTS>+2
    
ENDIF
    
TIMER=1
    
RETURN 

ON
=@UNEQUIP
    LINK
=04FFFFFFF
    TIMER
=-

PHP Code:
[ITEMDEF I_HEATER_SHIELD_BERSERKER]
ID=I_SHIELD_HEATER
NAME
=Berserker Shield
TYPE
=t_armor

CATEGORY
=!Magic Armor
SUBSECTION
=Berserker Set
DESCRIPTION
=Heater Shield Of Berserker

ON
=@CREATE
    COLOR
=07a0
    MOREY
=1000.0 // its not working with Heater Shield too..
    
ATTR=ATTR_MAGIC
    HITPOINTS
=60 

PHP Code:
[ITEMDEF I_PLATEMAIL_CHEST_BERSERKER]
ID=I_PLATEMAIL_CHEST
NAME
=Berserker Platemail
//RESOURCES=I_PLATEMAIL_CHEST,5 I_ENCHANT_ARMOR

CATEGORY=!Magic Armor
SUBSECTION
=Berserker Set
DESCRIPTION
=Chest Of Berserker

ON
=@CREATE
    COLOR
=07a0
    MOREY
=800.0 // its work with this item. yes and its give some armor
    
ATTR=ATTR_MAGIC
    HITPOINTS
=90 
01-16-2017 03:50 AM
Find all posts by this user Like Post Quote this message in a reply
zottolo
Journeyman
*

Posts: 87
Likes Given: 8
Likes Received: 12 in 11 posts
Joined: Dec 2015
Reputation: 0



Post: #2
RE: Armor Modify issue
//ARMOR=9 =====> ARMOR=9
01-16-2017 06:07 AM
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)