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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shield of Flame Strike
Author Message
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #4
RE: Shield of Flame Strike
ADD sphere_defs at [DEFNAME can_i_flags]
Code:
CAN_I_RECHARGE         020000    //Recharged items

And after add your items which is like i_shield_of_flame
Code:
CAN=CAN_I_RECHARGE

If you write CAN=CAN_I_RECHARGE on any items the potion which I will write, can recharge your item.

For example;
Code:
[Itemdef i_shield_asd]
ID=blabla
NAME=Asd Shield
CAN=CAN_I_RECHARGE
...

SO you will not check every item with if.

Code:
[ITEMDEF i_recharging_potion]
Name=Recharging Potion
ID=i_bottle_3
WEIGHT=1

On=@Create
MOREY=10

On=@Click
message @63 <name>
message (Charges: <dmorey>)

On=@Dclick
IF !(<TOPOBJ> == <SRC>)
src.sysmessage You can't reach that.
ELSE
TARGET What item do you want to recharge?
ENDIF
RETURN 1

ON=@TARGON_ITEM
REF1=<SRC.TARG>
IF !(<REF1.TOPOBJ> == <SRC>)
src.sysmessage You can't reach that.
ELIF !(<REF1.CAN>&CAN_I_RECHARGE)
src.sysmessage This can't be recharged!
ELSE
REF1.MOREY +=<dmorey>
ENDIF
RETURN 1

On=@TARGON_CHAR
src.sysmessage Are you joking with me?
return 1

On=@TARGON_GROUND
src.sysmessage Really! Do you want to waste it?
return 1
(This post was last modified: 07-21-2013 03:00 PM by xwerswoodx.)
07-21-2013 02:55 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Shield of Flame Strike - an0n!m0use - 07-20-2013, 01:26 AM
RE: Shield of Flame Strike - darksun84 - 07-20-2013, 02:54 AM
RE: Shield of Flame Strike - an0n!m0use - 07-20-2013, 09:31 PM
RE: Shield of Flame Strike - xwerswoodx - 07-21-2013 02:55 PM
RE: Shield of Flame Strike - an0n!m0use - 07-22-2013, 07:43 AM
RE: Shield of Flame Strike - xwerswoodx - 07-22-2013, 10:29 PM
RE: Shield of Flame Strike - an0n!m0use - 07-22-2013, 11:43 PM

Forum Jump:


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