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: #6
RE: Shield of Flame Strike
(07-22-2013 07:43 AM)an0n!m0use Wrote:  
(07-21-2013 02:55 PM)xwerswoodx Wrote:  ...
Thx you very much Veryhappy

You are wellcome but I can do something for you.

If you use typedef you can do your recharging potion or deed like this.
Code:
[ITEMDEF i_recharging_potion]
Name=Recharging Potion
ID=i_bottle_3
WEIGHT=1
Type=t_recharge

CATEGORY=Races
SUBSECTIOn=Races Items
DESCRIPTIOn=Recharging Potion

On=@Create
MOREX=10

[Itemdef i_recharging_deed]
Name=Recharging Deed
ID=i_deed
Weight=1
Type=t_recharge

CATEGORY=Races
SUBSECTIOn=Races Items
DESCRIPTIOn=Recharging Deed

On=@Create
MOREX=20 //MoreX is the amount of charge which will be added to item's moreX!

Is that easy for you? (:

Code:
[Typedef t_recharge]
On=@Click
message @63 <name>
message (Charges: <dmorex>)

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!
ELIF !(<dMOREX>)
src.sysmessage This item don't have charge.
ELSE
REF1.MOREX +=<dmorex>
MOREX=0 //If you want to remove you don't need this.
//REMOVE //Do you want to remove after charge?
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

BUT note that: In that case the weapons use MOREY for DAMAGE for magical weapons. So I fix your items with "moreX"

Code:
[ITEMDEF i_shield_of_flame]
NAME=Shield of Flame Protector
ID=i_shield_kite_metal
TYPE=t_shield
ARMOR=60
CAN=CAN_I_RECHARGE

On=@Create
HITPOINTS=-1
COLOR=0446
MOREX=1

On=@Click
message @63 <name>
message (Charges: <DMOREX>)
return 1

On=@EquipTest //@Equiptest is more good than @Equip
if (<dMOREX> < 1)
src.events -e_shield_of_flame
removefromview
remove
return 1
else
src.events +e_shield_of_flame
endif
    
On=@UnEquip
src.events -e_shield_of_flame

CATEGORY=Races
SUBSECTIOn=Races Items
DESCRIPTIOn=Shield of Flame Protector
(This post was last modified: 07-22-2013 10:38 PM by xwerswoodx.)
07-22-2013 10:29 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: 3 Guest(s)