Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1.  
  2.  
  3.  
  4. mob
  5. Skill
  6. verb
  7. Atirar(mob/M as mob in oview(15))// The spells name. ALso sets how far away the enemy can be.8.
  8. desc = "Deals damage to an enemy and heals you with it!"// A short Description.
  9. var/damage = usr.Mana_Power
  10. if(usr.MP>=8)
  11. view() << "<b> Você atirou uma flecha no [M]!"
  12.  
  13. M.overlays += 'Etc.dmi'
  14. spawn(20)
  15. M.overlays -= 'Etc.dmi'
  16. 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.
  17. M.HP -= damage
  18. usr.HPCHECK()
  19. usr.MP -= 0
  20. M.Death()
  21. usr.Check()
  22. else
  23. usr << "<b> You need for MP to use this spell!"
  24. mob
  25. proc
  26. HPCHECK()//Another proc which makes sure yor HP is over your MaxHP Bar thingy.
  27. if(usr.HP<=usr.MaxHP)//checks
  28. usr.HP = usr.MaxHP// if so sets your HP back to your Max HP!
  29. else
  30. return
  31.  
  32.  
  33.  
  34. mob
  35. var
  36. action = 0
  37. Speed = 4
  38.  
  39. proc
  40. Movecycle()
  41. if(src.action)
  42. sleep(12 - src.Speed)
  43. step(src,action)
  44. src.action = NULL
  45. spawn(1) Movecycle()
  46. mob
  47. Skill
  48. verb
  49. Run
  50. desc = "DUHH MAKES YOU RUN"
  51. if(src.Speed == 4)
  52. src.Speed = 8
  53. view() << "<b> You start running!</b>"
  54. else
  55. src.Speed = 4
  56. src << "<b> You stop running!</b>"
  57. Login()
  58. spawn(1) src.Movecycle()
  59.  
  60.  
  61. client
  62. North()
  63. mob.action = NORTH
  64. mob.dir = NORTH
  65. South()
  66. mob.action = SOUTH
  67. mob.dir = SOUTH
  68. East()
  69. mob.action = EAST
  70. mob.dir = EAST
  71. West()
  72. mob.action = WEST
  73. mob.dir = WEST
  74. Northeast()
  75. mob.action = NORTHEAST
  76. mob.dir = NORTHEAST
  77. Northwest()
  78. mob.action = NORTHWEST
  79. mob.dir = NORTHWEST
  80. Southeast()
  81. mob.action = SOUTHEAST
  82. mob.dir = SOUTHEAST
  83. Southwest()
  84. mob.action = SOUTHWEST
  85. mob.dir = SOUTHWEST
  86.  
  87.  
  88.  
  89.  
  90. //////////////////////////
  91.  
  92.  
  93. mob/NPC/Teacher
  94. icon = 'Icons.dmi'
  95. icon_state = "39"
  96. HP = 999//This makes it to even when the player attacks it, it wont die for a long time :)
  97. verb/Talk()
  98. set src in oview(1)
  99. switch(alert("Sou o batman, quer ficar fodao?","hi","Sim","Não"))
  100. if("Sim")
  101. var/s = input("Please select a skill/spell to learn")in list("Atirar","Correr")
  102. if(s=="Atirar")
  103. if(usr.Class=="Arqueiro")
  104. alert("Use com sabedoria seu arco!.","","Ok")
  105. if(usr.sp>=20)
  106. usr << sound('Magic.wav')
  107. usr << "<b> Você aprendeu Inervation!"
  108. usr.verbs+=typesof(/mob/Skill/verb/Atirar)
  109. usr.sp -= 20
  110. return
  111. if(usr.Class=="Velocista")
  112. alert("Corra!.","","Ok")
  113. if(usr.sp>=20)
  114. usr << sound('Magic.wav')
  115. usr << "<b> Você aprendeu Correr!"
  116. usr.verbs+=typesof(/mob/Skill/verb/Run)
  117. usr.sp -= 20
  118. return
  119. else
  120. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement