Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mob
- Skill
- verb
- Atirar(mob/M as mob in oview(15))// The spells name. ALso sets how far away the enemy can be.8.
- desc = "Deals damage to an enemy and heals you with it!"// A short Description.
- var/damage = usr.Mana_Power
- if(usr.MP>=8)
- view() << "<b> Você atirou uma flecha no [M]!"
- M.overlays += 'Etc.dmi'
- spawn(20)
- M.overlays -= 'Etc.dmi'
- M << "<b>\red Yoou slowly feel your life drained as [usr.name] casts inervation on you!"//Tell the mosnter or whoever you use it on what happened.
- M.HP -= damage
- usr.HPCHECK()
- usr.MP -= 0
- M.Death()
- usr.Check()
- else
- usr << "<b> You need for MP to use this spell!"
- mob
- proc
- HPCHECK()//Another proc which makes sure yor HP is over your MaxHP Bar thingy.
- if(usr.HP<=usr.MaxHP)//checks
- usr.HP = usr.MaxHP// if so sets your HP back to your Max HP!
- else
- return
- mob
- var
- action = 0
- Speed = 4
- proc
- Movecycle()
- if(src.action)
- sleep(12 - src.Speed)
- step(src,action)
- src.action = NULL
- spawn(1) Movecycle()
- mob
- Skill
- verb
- Run
- desc = "DUHH MAKES YOU RUN"
- if(src.Speed == 4)
- src.Speed = 8
- view() << "<b> You start running!</b>"
- else
- src.Speed = 4
- src << "<b> You stop running!</b>"
- Login()
- spawn(1) src.Movecycle()
- client
- North()
- mob.action = NORTH
- mob.dir = NORTH
- South()
- mob.action = SOUTH
- mob.dir = SOUTH
- East()
- mob.action = EAST
- mob.dir = EAST
- West()
- mob.action = WEST
- mob.dir = WEST
- Northeast()
- mob.action = NORTHEAST
- mob.dir = NORTHEAST
- Northwest()
- mob.action = NORTHWEST
- mob.dir = NORTHWEST
- Southeast()
- mob.action = SOUTHEAST
- mob.dir = SOUTHEAST
- Southwest()
- mob.action = SOUTHWEST
- mob.dir = SOUTHWEST
- //////////////////////////
- mob/NPC/Teacher
- icon = 'Icons.dmi'
- icon_state = "39"
- HP = 999//This makes it to even when the player attacks it, it wont die for a long time :)
- verb/Talk()
- set src in oview(1)
- switch(alert("Sou o batman, quer ficar fodao?","hi","Sim","Não"))
- if("Sim")
- var/s = input("Please select a skill/spell to learn")in list("Atirar","Correr")
- if(s=="Atirar")
- if(usr.Class=="Arqueiro")
- alert("Use com sabedoria seu arco!.","","Ok")
- if(usr.sp>=20)
- usr << sound('Magic.wav')
- usr << "<b> Você aprendeu Inervation!"
- usr.verbs+=typesof(/mob/Skill/verb/Atirar)
- usr.sp -= 20
- return
- if(usr.Class=="Velocista")
- alert("Corra!.","","Ok")
- if(usr.sp>=20)
- usr << sound('Magic.wav')
- usr << "<b> Você aprendeu Correr!"
- usr.verbs+=typesof(/mob/Skill/verb/Run)
- usr.sp -= 20
- return
- else
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement