[SKILL 46]
DEFNAME=SKILL_MEDITATION
KEY=Meditation
TITLE=Stoic
DELAY=5.0,2.0
STAT_STR=150
STAT_INT=150
STAT_DEX=150
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=150
BONUS_STATS=20
ADV_RATE=1.0,5.0,15.0,30.0,50.0,75.0,100.0 //,10.0,20.0,25.0,35.0,50.0
ON=@SUCCESS
if !(<src.restest 1 i_mem_meditationgain>)
src.flags &= ~statf_freeze
endif
ON=@FAIL
src.sysmessage @021,3,1 You fail to meditate.
SRC.SKILLGAIN MEDITATION 1
src.consume 5 i_mem_meditationgain
src.flags &= ~statf_freeze
ON=@ABORT
SRC.SYSmessage @,3,1 You broke your meditative.
src.consume 5 i_mem_meditationgain
src.flags &= ~statf_freeze
ON=@Start
if (<src.mana><<src.maxmana>)
SRC.SKILLGAIN MEDITATION 1
src.consume 5 i_mem_meditationgain
src.newitem i_mem_meditationgain
new.equip
src.emote are trying to enter into meditation.
src.flags |= statf_freeze
endif
[ITEMDEF i_mem_meditationgain]
ID=i_gold
TYPE=t_eq_script
NAME=meditation
ON=@Create
color 0480
ATTR=010
TIMER=2
ON=@Timer
if (<cont.maxmana>><cont.mana>)
if <eval <cont.mana>+<eval <cont.meditation>/100>+<eval <cont.maxmana>/20>>><cont.maxmana>
cont.mana = <cont.maxmana>
cont.flags &= ~statf_freeze
remove
return 1
else
cont.mana += <eval <cont.meditation>/100> + <eval <cont.maxmana>/20>
cont.skillgain meditation 1
timer 2
return 1
endif
cont.mana=<cont.maxmana>
cont.flags &= ~statf_freeze
remove
return 1
else
cont.flags &= ~statf_freeze
remove
return 1
endif