Lord_Greywolf
Lord
creat a new variable in playermobile that is an intiger (int) called magersteps or what ever you want to call it
make sure you serialize/deserialize it properly (i believe there is a sticky for that to show you how that works)
then in the onmove section - add in a part for checking for the steps, and if there decrease them
then put in your check for if circel of magery and number of steps left to cancle the spell if true
(check to see how disturb works to cancel spells and use same method - i believe that is either in the "onhit" call in playermobile or in the spell system base directory)
make sure you serialize/deserialize it properly (i believe there is a sticky for that to show you how that works)
then in the onmove section - add in a part for checking for the steps, and if there decrease them
then put in your check for if circel of magery and number of steps left to cancle the spell if true
(check to see how disturb works to cancel spells and use same method - i believe that is either in the "onhit" call in playermobile or in the spell system base directory)