Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vampire item's
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #6
RE: Vampire item's
try using this, it's a bit more performance optimized
Code:
[ITEMDEF i_vampire_knight_claw]
NAME=Vampire Knight Claw
...

ON=@AfterClick
IF (<TAG0.Charges>)
  LOCAL.ClickMsgText .= " (charged)"
ENDIF

ON=@Damage
TAG0.Charges ++
COLOR=0a4c
IF (<TAG0.Charges>==3)
  SRC.SAY Feel the hell blaze!
  SRC.SPELLEFFECT s_flamestrike 100 <TOPOBJ>
  TAG.Charges=
  COLOR=
ENDIF

Code:
[ITEMDEF i_sting_of_pain]
NAME=Sting of Pain
ID=03f12
...

ON=@Damage
IF (25 > <R100>) && !(<SRC.FINDID.i_bleeding_delay>)
  SRC.SYSMESSAGE @38 You fell Bleeding effect
  SERV.NEWITEM i_bleeding_delay
  NEW.EQUIP <SRC>
ENDIF

[ITEMDEF i_bleeding_delay]
NAME=Bleeding delay
ID=i_memory
TYPE=t_eq_script

ON=@Equip
SRC.EVENTS=+e_bleeding_effect
TIMER={1 3}

ON=@Unequip
SRC.EVENTS=-e_bleeding_effect

ON=@Timer
REMOVE
return 1

[EVENTS e_bleeding_effect]
//I dont understood what you want here, I will assume it has 50% chance to fail the spell
ON=@SpellCast
IF (50 > <R100>)
  ACTDIFF=-1000 //difficulty of the action, 1000 will always succeed and -1000 will always fail
ENDIF
08-09-2013 03:53 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vampire item's - an0n!m0use - 08-04-2013, 02:07 AM
RE: Vampire item's - an0n!m0use - 08-07-2013, 01:07 AM
RE: Vampire item's - darksun84 - 08-07-2013, 02:07 AM
RE: Vampire item's - an0n!m0use - 08-07-2013, 08:46 PM
RE: Vampire item's - Alaric - 08-07-2013, 03:25 AM
RE: Vampire item's - Coruja - 08-09-2013 03:53 PM

Forum Jump:


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