mob
proc
Fidchell_Trans()
if(!src.fidchell)
if(src.MP >= 50)
src.fidchell=1
src.underlays+= icon('Fidchell.dmi',"Fidchell")
src.tempstr = src.Strmax
src.tempdef = src.Def
src.tempmdef = src.MDef
src.formstatus="Fidchell Form"
view(src) << "<I><font color = yellow>[src]: Fidchell!</I></font color = yellow>"
src.Strmax += 20
src.Strmin = src.Strmax - 2
src.Def += 10
src.MDef+=5
src.inavatar=1
if(src.MP >= 0)
while(src.inavatar)
if(src.MP > 0)
src.MP -= 2
sleep(10)
if(src.MP < 0)
src.MP = 0
src.Fidchell_revert()
Fidchell_revert()
if(src.fidchell)
src.underlays-= icon('Fidchell.dmi',"Fidchell")
src.Strmax = src.tempstr
src.Strmin = src.Strmax - 2
src.Def = src.tempdef
src.MDef = src.tempmdef
src.formstatus="Normal"
view(src) << "<I><font color = yellow>[src] body goes back to normal</I></font color = yellow>"
src.tempstr = 0
src.tempdef = 0
src.tempmdef = 0
src.fidchell=0
src.inavatar=0
Problem description:
you run out of sp, the server crashes or freezes for some reason
do i add break anywhere? or do i remove the while proc and make the proc spawn a bunch of times until the sp runs out?
like
if(src.MP >= 40)
spawn(1) Fidchell_Revert()