the only place in the code where on=@spellcast is used is under other skillclasses that shouldent be a problem right since its diffrent codes? or am i wrong about that?
yeah we put the time on 30 yesterday when you replied to see if that was the issue still no cooldown or errors tho.
im going to try the new code and see if that method works.
nothing works tried everything you told me and there still are no cooldown
am i doing something horrible wrong?
tested so everything loads into the server and i can spwn the memory scroll so that should be there.
the skillclass im using is correct, tested with the equipment restriction to make sure i was in right skillclass.
restarted the server a few times.
tried going out of .gm and .invul tried make a pure player character.
tried to manualy craft the scroll in game instead of spawning it in.
There are no errors in the console either not when the server is booting or when the scroll is being used.
This is all code i have revolving the scroll cooldown
(I commented out the scrollcooldown script under skillclass to test the new code you provided.) still no cooldown either.
Code:
[ITEMDEF i_memory_scroll_cooldown]
ID=i_memory
TYPE=t_eq_script
NAME=Memory scroll cooldown
ON=@Timer
REMOVE
RETURN 1
[ITEMDEF i_memory_scroll_cooldown]
ID=i_memory
TYPE=t_eq_script
NAME=Memory scroll cooldown
ON=@Timer
REMOVE
RETURN 1
////////
//test//
////////
[typedef t_scroll]
on=@DClick
if (<src.findlayer.layer_special.baseid> == i_memory_scroll_cooldown)
src.smsg You cannot use a scroll again til <src.findlayer.layer_special.baseid.i_memory_scroll_cooldown.timer> seconds.
return 1
endif
if (<morex> == s_flamestrike||s_fireball)
serv.newitem i_memory_scroll_cooldown,,<src.uid>
new.timer = 30
endif
if (<morex> == s_poison)
serv.newitem i_memory_scroll_cooldown,,<src.uid>
new.timer = 7
endif
[SKILLCLASS 23]
DEFNAME=Class_human_arch_mage
NAME=Arch Mage
//EVENTS=e_human_arch_mage
STATSUM=260
SKILLSUM=10000.0
STR=75
INT=95
DEX=90
Alchemy=100.0
Anatomy=100.0
AnimalLore=100.0
ItemId=100.0
ArmsLore=100.0
Parrying=100.0
Begging=100.0
Blacksmithing=100.0
Bowcraft=100.0
Peacemaking=100.0
Camping=100.0
Carpentry=100.0
Cartography=100.0
Cooking=100.0
DetectingHidden=100.0
Enticement=100.0
EvaluatingIntel=100.0
Healing=100.0
Fishing=100.0
Forensics=100.0
Herding=100.0
Hiding=100.0
Provocation=100.0
Inscription=100.0
LockPicking=100.0
Magery=100.0
MagicResistance=100.0
Tactics=100.0
Snooping=100.0
Musicianship=100.0
Poisoning=100.0
Archery=100.0
SpiritSpeak=100.0
Stealing=100.0
Tailoring=100.0
Taming=100.0
TasteId=100.0
Tinkering=100.0
Tracking=100.0
Veterinary=100.0
Swordsmanship=100.0
Macefighting=100.0
Fencing=100.0
Wrestling=100.0
Lumberjacking=100.0
Mining=100.0
Meditation=100.0
Stealth=100.0
RemoveTrap=100.0
Necromancy=100.0
Focus=100.0
Chivalry=100.0
Bushido=100.0
Ninjitsu=100.0
Spellweaving=100.0
Mysticism=100.0
Imbuing=100.0
Throwing=100.0
ON=@ItemEquipTest
if (<act.tdata3> == 1||3||4||5)
src.smsg You can't equip this armor.
return 1
endif
//on=@SpellCast
//if (<argo.type> == t_scroll)
//if (<findlayer.layer_special.baseid> == i_memory_scroll_cooldown)
// src.smsg You cannot use a scroll again til <findlayer.layer_special.baseid.i_memory_scroll_cooldown.timer> seconds.
// return 1
//endif
//if (<argn1> == s_flamestrike||s_fireball)
// serv.newitem i_memory_scroll_cooldown,,<uid>
// new.timer = 30
//endif
//if (<argn1> == s_poison)
// serv.newitem i_memory_scroll_cooldown,,<uid>
// new.timer = 30
//endif
//endif
and this is the spell script
Code:
[Spell 51]
DEFNAME=s_flamestrike
NAME=Flame Strike
SOUND=snd_SPELL_FLAMESTRIKE
RUNES=KVF
CAST_TIME=40
RESOURCES=i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_FLAMESTRIKE
SCROLL_ITEM=i_scroll_FLAMESTRIKE
FLAGS=SPELLFLAG_TARG_OBJ|SPELLFLAG_HARM|SPELLFLAG_FX_TARG|SPELLFLAG_RESIST|SPELLFLAG_DAMAGE
EFFECT_ID=03709
EFFECT=25,50
DURATION=0.0
MANAUSE=40
SKILLREQ=MAGERY 70.0
INTERRUPT=0.0,0.0
here is a link to our github:
https://github.com/FiveEYZ/SphereShadowRealm