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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shield with magic reflect @equip
Author Message
Aeldaven
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Aug 2014
Reputation: 0



Post: #1
Shield with magic reflect @equip
Hi, sorry for my easy question but i'm noob and i found no result in search.
i need to add magic reflect spell, @equip @dclick on order shield.

This is my shield


[ITEMDEF 01bc4]
DEFNAME=i_shield_order
TYPE=t_shield
VALUE=220000
FLIP=1
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
ARMOR=30
REQSTR=0
DUPELIST=01bc5

CATEGORY=Provisions - Armor
SUBSECTION=Shields
DESCRIPTION=Order Shield

ON=@Create
ATTR=attr_magic|attr_move_always // no smelting.
HITPOINTS={101 115}

ON=@EQUIP
TIMERD=1

ON=@TIMER
IF !(<TOPOBJ.NPC>) && (<TOPOBJ.ISCHAR>) && (0<TOPOBJ.UID>) && (0<CONT.UID>)
IF (<TOPOBJ.GM>)
RETURN 1
ENDIF
IF (0<TOPOBJ.MEMORYFINDTYPE.memory_guild.UID>)
IF (<TOPOBJ.MEMORYFINDTYPE.memory_guild.LINK.ALIGN>==1)
TOPOBJ.SOUND=SND_SPELL_EXPLOSION
ELSE
TOPOBJ.SOUND=SND_SPELL_LIGHTNING
TOPOBJ.EFFECT=1,1
VAR.X=<EVAL <TOPOBJ.HITPOINTS> /2>
TOPOBJ.DAMAGE=<VAR.X> 0001 <TOPOBJ.UID>
TOPOBJ.SYSMESSAGE=Your guild alignment must be Order to wear this shield.
CONT=<TOPOBJ.FINDLAYER.(21).UID>
ENDIF
ELSE
TOPOBJ.SOUND=SND_SPELL_LIGHTNING
TOPOBJ.EFFECT=1,1
VAR.X=<EVAL <TOPOBJ.HITPOINTS> /2>
TOPOBJ.DAMAGE=<VAR.X> 0001 <CONT.UID>
TOPOBJ.SYSMESSAGE=You need to be part of an Order guild to wear this shield.
CONT=<TOPOBJ.FINDLAYER.(21).UID>
ENDIF
RETURN 1
ENDIF

tnx all
08-07-2014 02:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Shield with magic reflect @equip - Aeldaven - 08-07-2014 02:01 PM
RE: Shield with magic reflect @equip - XuN - 08-07-2014, 05:28 PM
RE: Shield with magic reflect @equip - XuN - 08-07-2014, 08:30 PM

Forum Jump:


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