![]() |
Shield of Flame Strike - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Shield of Flame Strike (/Thread-Shield-of-Flame-Strike) |
Shield of Flame Strike - an0n!m0use - 07-20-2013 01:26 AM This shield is protect you from flame strike ... When it is charged ... But a have one problem ... When the charges is ended, it still protect you ![]() PHP Code: [ITEMDEF i_shield_of_flame] PHP Code: [EVENTS e_shield_of_flame] RE: Shield of Flame Strike - darksun84 - 07-20-2013 02:54 AM The problem is when morey becomes 0, the protection continue to work because the item is still equipped. So you can add another condition to the spelleffect if PHP Code: if (<argn>==51) && (<FINDLAYER.2.BaseID>==i_shield_of_flame) && (<FINDLAYER.2.morey> > 0) RE: Shield of Flame Strike - an0n!m0use - 07-20-2013 09:31 PM (07-20-2013 02:54 AM)darksun84 Wrote: The problem is when morey becomes 0, the protection continue to work because the item is still equipped.Thx ![]() Can you help me with this recharging bottle ... For Flame Strike shield ... PHP Code: [ITEMDEF i_recharging_potion] RE: Shield of Flame Strike - xwerswoodx - 07-21-2013 02:55 PM 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] SO you will not check every item with if. Code: [ITEMDEF i_recharging_potion] RE: Shield of Flame Strike - an0n!m0use - 07-22-2013 07:43 AM (07-21-2013 02:55 PM)xwerswoodx Wrote: ...Thx you very much ![]() RE: Shield of Flame Strike - xwerswoodx - 07-22-2013 10:29 PM (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] Is that easy for you? (: Code: [Typedef t_recharge] 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] RE: Shield of Flame Strike - an0n!m0use - 07-22-2013 11:43 PM (07-22-2013 10:29 PM)xwerswoodx Wrote: Is that easy for you? (:Yep ![]() ![]() |