AFFECT APPLY_AC Bug Log

For builders to discuss and ask building questions.
Post Reply
Lathander
Staff
Staff
Posts: 3629
Joined: Tue Jul 15, 2003 9:30 pm
Location: The Eastern Sky

AFFECT APPLY_AC Bug Log

Post by Lathander » Thu Oct 06, 2011 10:13 pm

I’m getting this bug log on the test port with one of my items and don’t know the fix. Please help.

Log: [*****] BUG: Affect_modify: an object with an APPLY_AC vnum
Lathander,
Commander of Creativity
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: AFFECT APPLY_AC Bug Log

Post by Harroghty » Fri Oct 07, 2011 1:04 am

Post the complete code for the object, please?

It should look something like this:
#1234
sweet metal hat~
{60}sweet metal hat~
{60}A sweet metal hit abides here.~
ITEM_TYPE_ARMOR
FLAG_MAGIC|FLAG_MASTERWORK
CAN_WEAR_TAKE|CAN_WEAR_HEAD
QUALITY_HIGH MATERIAL_STEEL COND_PERFECT SIZE_MEDIUM
0 BODY_HUMANOID LAYER_ARMOR ARMOR_TYPE_FULL_PLATE 0 0
A
APPLY_AC_ARMOUR 1
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Lathander
Staff
Staff
Posts: 3629
Joined: Tue Jul 15, 2003 9:30 pm
Location: The Eastern Sky

Re: AFFECT APPLY_AC Bug Log

Post by Lathander » Fri Oct 07, 2011 7:15 pm

Here ya go!

Code: Select all

#7917
dragon dragonhide hide red rich vest~
{90}a rich red dragonhide vest~
{90}A rich red dragonhide vest lies here.~
~
ITEM_TYPE_ARMOR
FLAG_MAGIC|FLAG_MASTERWORK|FLAG_PROTOTYPE
CAN_WEAR_TAKE|CAN_WEAR_BODY
QUALITY_HIGH MATERIAL_DRAGON_HIDE COND_PERFECT SIZE_MEDIUM
0 BODY_HUMANOID LAYER_ARMOR ARMOR_TYPE_LEATHER 0 0
A
APPLY_SAVE_VS_FIRE 2
A
APPLY_AC 1
E
dragon hide dragonhide rich red vest~
{90}This long, thick vest is made from the hide of a red dragon.
All of the scales have been removed and the remaining hide
worked into a supple leather. It gives off a small amount of
warmth and retains some of the dragon's innate protection from
fire.
~
Lathander,
Commander of Creativity
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: AFFECT APPLY_AC Bug Log

Post by Harroghty » Fri Oct 07, 2011 10:16 pm

Simple fix. Should be APPLY_AC_ARMOUR #, not APPLY_AC #.
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Post Reply