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
|
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
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 |
|
|
Messages In This Thread |
RE: Shield of Flame Strike - xwerswoodx - 07-22-2013 10:29 PM
|
User(s) browsing this thread: 3 Guest(s)