Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Weap with spelleffect lightning
|
Author |
Message |
Extreme
Grandmaster Poster
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity
|
|
08-27-2014 10:42 AM |
|
|
Aeldaven
Apprentice
Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Aug 2014
Reputation: 0
|
RE: Weap with spelleffect lightning
Working now ^_^ ty
Code:
ON=@Damage
IF !<R3>
SRC.SpellEffect=s_lightning,100.0,<CONT.uid>
//SRC.effect 1,1 //uncomment make double lightning effect
SRC.SOUND=snd_SPELL_LIGHTNING
//SRC.MESSAGE Test OK! //don't work
Return 1
Endif
@XuN
i have try with @hit trig, but not work
Code:
ON=@Hit
IF !<R3>
SRC.SpellEffect=s_lightning,100.0,<CONT.uid>
//SRC.effect 1,1
SRC.SOUND=snd_SPELL_LIGHTNING
Return 1
Endif
Tnx all for helping!!!
|
|
08-27-2014 05:21 PM |
|
|
Rizz
Master
Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0
|
RE: Weap with spelleffect lightning
(08-27-2014 05:21 PM)Aeldaven Wrote: Working now ^_^ ty
Code:
ON=@Damage
IF !<R3>
SRC.SpellEffect=s_lightning,100.0,<CONT.uid>
//SRC.effect 1,1 //uncomment make double lightning effect
SRC.SOUND=snd_SPELL_LIGHTNING
//SRC.MESSAGE Test OK! //don't work
Return 1
Endif
@XuN
i have try with @hit trig, but not work
Code:
ON=@Hit
IF !<R3>
SRC.SpellEffect=s_lightning,100.0,<CONT.uid>
//SRC.effect 1,1
SRC.SOUND=snd_SPELL_LIGHTNING
Return 1
Endif
Tnx all for helping!!!
http://wiki.sphere.torfo.org/index.php/@Hit
This trigger fires when a character hits someone using a combat skill.
So you have to use @hit inside an [EVENTS] and add it to all of your chars.
(This post was last modified: 08-27-2014 05:59 PM by Rizz.)
|
|
08-27-2014 05:58 PM |
|
|
Aeldaven
Apprentice
Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Aug 2014
Reputation: 0
|
RE: Weap with spelleffect lightning
@Rizz tnx better now.
Code:
[events e_light_weap]
ON=@Hit
IF !<R3>
SRC.SpellEffect=s_lightning,100.0,<CONT.uid>
//SRC.effect 1,1
SRC.SOUND=snd_SPELL_LIGHTNING
Return 1
Endif
[ITEMDEF i_light_Halberd]
ID=i_halberd
DEFNAME=i_light_Halberd
TYPE=t_weapon_sword
DAM=25,50
FLIP=1
SKILL=Swordsmanship
SPEED=25
VALUE=50000
WEIGHT=14.0
TWOHANDS=Y
RESOURCES=20 i_ingot_iron,2 i_board
SKILLMAKE=Blacksmithing 75.0
ON=@Create
HITPOINTS=100
COLOR = 05d
NAME=Halberd of Lightning
MOREY=60.0
ATTR=attr_magic
ON=@Equip
src.message Il potere del Fulmine scorre nelle tue mani!
src.events +e_light_weap
ON=@unequip
src.events -e_light_weap
CATEGORY=+Helios+ Items
SUBSECTION=Armi Light
DESCRIPTION=Halberd
tnx tnx tnx ^_^
|
|
08-27-2014 11:31 PM |
|
The following 1 user Likes Aeldaven's post:1 user Likes Aeldaven's post
Extreme (08-28-2014)
|
User(s) browsing this thread: 2 Guest(s)