ID:150410
 
verb
ice(mob/M in oview(6))
set category="Spells"
Ice()
mpgain()
DeathCheck()
Levelup()
obj/Ice
icon='IceSpell.dmi'
icon_state="IceSpell"
obj/Heal
icon='HealSpell.dmi'
icon_state="Heal"
obj/blizzard
icon='Blizzard.dmi'
icon_state="Blizzard"
mob/proc/Ice(mob/M in oview(6))
usr<<"You get ready to cast the spell."
if(usr.owner==src.owner)
usr<<"You can't attack a brother!"
del(src)
if(usr.lvl==1)
usr.MP-=10
if(usr.lvl==2)
usr.MP-=20
if(usr.lvl==3)
usr.MP-=30
if(usr.lvl==4)
usr.MP-=40
if(usr.lvl>=5)
usr.MP-=50
usr.overlays+=/obj/overlays/IceStart
sleep(40)
usr.overlays-=/obj/overlays/IceStart
sleep(10)
missile(/obj/Ice,usr,M.loc)
var/damage=10*usr.lvl
M.overlays+=/obj/overlays/IceEnd
sleep(10)
M.overlays-=/obj/overlays/IceEnd
M.HP-=damage
usr.xp+=5
obj/overlays
IceStart
icon='IceSpell.dmi'
icon_state="Start"
layer=MOB_LAYER+1
IceEnd
icon='IceSpell.dmi'
icon_state="End"
layer=MOB_LAYER+1

what am I doing wrong here?
It keeps making me lose connection, and when it doesn't make me lose connection, it justdoesn't work or show
JonSnow13 wrote:
verb
ice(mob/M in oview(6))
set category="Spells"
Ice()
mpgain()
DeathCheck()
Levelup()
obj/Ice
icon='IceSpell.dmi'
icon_state="IceSpell"
obj/Heal
icon='HealSpell.dmi'
icon_state="Heal"
obj/blizzard
icon='Blizzard.dmi'
icon_state="Blizzard"
mob/proc/Ice(mob/M in oview(6))
usr<<"You get ready to cast the spell."
if(usr.owner==src.owner)
usr<<"You can't attack a brother!"
del(src)
if(usr.lvl==1)
usr.MP-=10
if(usr.lvl==2)
usr.MP-=20
if(usr.lvl==3)
usr.MP-=30
if(usr.lvl==4)
usr.MP-=40
if(usr.lvl>=5)
usr.MP-=50
usr.overlays+=/obj/overlays/IceStart
sleep(40)
usr.overlays-=/obj/overlays/IceStart
sleep(10)
missile(/obj/Ice,usr,M.loc)
var/damage=10*usr.lvl
M.overlays+=/obj/overlays/IceEnd
sleep(10)
M.overlays-=/obj/overlays/IceEnd
M.HP-=damage
usr.xp+=5
obj/overlays
IceStart
icon='IceSpell.dmi'
icon_state="Start"
layer=MOB_LAYER+1
IceEnd
icon='IceSpell.dmi'
icon_state="End"
layer=MOB_LAYER+1

what am I doing wrong here?
It keeps making me lose connection, and when it doesn't make me lose connection, it justdoesn't work or show

Im not sure if I want to answer this..im really not.But, heres a hint: Deleting yourself usually gives that reaction(Ie, disconnection)

Alathon
if(usr.owner==src.owner)
del(src)

Here's a hint: the usr is the object that calls a proc, the src is the object that owns the proc. Given that, could you name a situation in which any of the usr's variables for this proc would not == the src's variable?