Ultima Online en Español
Bienvenido a Ultima Online en Español. Por favor, regístrate o entra con tu cuenta.

Saludos.

El equipo del Foro.

Unirse al foro, es rápido y fácil

Ultima Online en Español
Bienvenido a Ultima Online en Español. Por favor, regístrate o entra con tu cuenta.

Saludos.

El equipo del Foro.
Ultima Online en Español
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Últimos temas
» Inception busca scripter.
Libro Necro EmptyJue 31 Dic 2015 - 2:20 por Lethal

» Equipo para Servidor
Libro Necro EmptyMar 3 Nov 2015 - 13:39 por Kork

» Busco un buen scripter para proyecto server pvp
Libro Necro EmptyDom 19 Jul 2015 - 3:57 por rastrero

» Ultima Azteca
Libro Necro EmptyLun 29 Jun 2015 - 3:31 por chronoMx

» AYUDA SCRIPT
Libro Necro EmptyMar 3 Mar 2015 - 3:35 por rastrero

» NuevaUO (BUSCA COLABORADORES)
Libro Necro EmptyLun 6 Oct 2014 - 10:46 por pushim

» Ultima Alianza
Libro Necro EmptySáb 26 Jul 2014 - 14:32 por Jecht

» Versiones de Cliente
Libro Necro EmptyMar 22 Jul 2014 - 2:52 por Lethal

» Insane World
Libro Necro EmptySáb 19 Jul 2014 - 18:00 por Lethal

Staff
Admin Oupman [Fundador]
Lethal [Administrador] Inferno Networks
Rastrero [Administrador]
Mr.H (Moderador)
Servidores

Libro Necro

3 participantes

Ir abajo

Libro Necro Empty Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 21:50

Usmeando por ahi, encontre un foro donde habia colgado un libro de necro que nunca lo hise funcionar bien xD. A ver si ustedes pueden hacerlo!.:

SpellBook

Código:
[ITEMDEF 02253]
defname=i_libro_necro
type=t_spellbook_necro
name=Necromancy Spellbook
weight=1
resources=80 i_parchment,1 i_hide, 1 i_cloth
layer=1

ON=@Create
  ATTR=attr_magic|attr_newbie
  morez=100
  TAG.SPELLNECRO1=0
  TAG.SPELLNECRO2=0
  TAG.SPELLNECRO3=0
  TAG.SPELLNECRO4=0
  TAG.SPELLNECRO5=0
  TAG.SPELLNECRO6=0
  TAG.SPELLNECRO7=0
  TAG.SPELLNECRO8=0
  TAG.SPELLNECRO9=0
  TAG.SPELLNECRO10=0
  TAG.SPELLNECRO11=0
  TAG.SPELLNECRO12=0
  TAG.SPELLNECRO13=0
  TAG.SPELLNECRO14=0
  TAG.SPELLNECRO15=0
  TAG.SPELLNECRO16=0
     
CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Necromancers
DESCRIPTION=Necromancy Spellbook

On=@Click
  MESSAGE @023 Necromancy Spellbook
  RETURN 1

ON=@Dclick
sdialog d_necro 1
RETURN 1

ON=@DROPON_SELF

IF (<ARGO.TYPE>==t_scroll)
  IF (<ARGO.MORE1> == 01) && (<TAG0.SPELLNECRO1> == 0)
    TAG0.SPELLNECRO1 = 1
    MORE1 = <ARGO.MORE1> + 01
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.MORE1> == 02) && (<ARGO.TAG0.SPELLNECRO2> == 0)
    TAG0.SPELLNECRO2 = 1
    MORE1 = <ARGO.MORE1> + 02
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.MORE1> == 04) && (<ARGO.TAG0.SPELLNECRO3> == 0)
    TAG0.SPELLNECRO3 = 1
    MORE1 = <ARGO.MORE1> + 04
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.MORE1> == 08) && (<ARGO.TAG0.SPELLNECRO4> == 0)
    TAG0.SPELLNECRO4 = 1
    MORE1 = <ARGO.MORE1> + 08
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.MORE1> == 010) && (<ARGO.TAG0.SPELLNECRO5> == 0)
    TAG0.SPELLNECRO5 = 1
    MORE1 = <ARGO.MORE1> + 010
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.MORE1> == 020) && (<ARGO.TAG0.SPELLNECRO6> == 0)
    TAG0.SPELLNECRO6 = 1
    MORE1 = <ARGO.MORE1> + 020
    SFX 058
    ARGO.CONSUME 1   
    RETURN 1 
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 040) && (<ARGO.TAG0.SPELLNECRO7> == 0)
      TAG0.SPELLNECRO7 = 1
      MORE1 = <ARGO.MORE1> + 040
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 080) && (<ARGO.TAG0.SPELLNECRO8> == 0)
      TAG0.SPELLNECRO8 = 1
      MORE1 = <ARGO.MORE1> + 080
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 0100) && (<ARGO.TAG0.SPELLNECRO9> == 0)
      TAG0.SPELLNECRO9 = 1
      MORE1 = <ARGO.MORE1> + 0100
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 0200) && (<ARGO.TAG0.SPELLNECRO10> == 0)
      TAG0.SPELLNECRO10 = 1
      MORE1 = <ARGO.MORE1> + 0200
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 0400) && (<ARGO.TAG0.SPELLNECRO11> == 0)
      TAG0.SPELLNECRO11 = 1
      MORE1 = <ARGO.MORE1> + 0400
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll) 
    IF (<ARGO.MORE1> == 0800) && (<ARGO.TAG0.SPELLNECRO12> == 0)
      TAG0.SPELLNECRO12 = 1
      MORE1 = <ARGO.MORE1> + 0800
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 01000) && (<ARGO.TAG0.SPELLNECRO13> == 0)
      TAG0.SPELLNECRO13 = 1
      MORE1 = <ARGO.MORE1> + 01000
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 02000) && (<ARGO.TAG0.SPELLNECRO14> == 0)
      TAG0.SPELLNECRO14 = 1
      MORE1 = <ARGO.MORE1> + 02000
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 04000) && (<ARGO.TAG0.SPELLNECRO15> == 0)
      TAG0.SPELLNECRO15 = 1
      MORE1 = <ARGO.MORE1> + 04000
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

  IF (<ARGO.TYPE>==t_scroll)
    IF (<ARGO.MORE1> == 08000) && (<ARGO.TAG0.SPELLNECRO16> == 0)
      TAG0.SPELLNECRO16 = 1
      MORE1 = <ARGO.MORE1> + 08000
      SFX 058
      ARGO.CONSUME 1   
      RETURN 1 
    ENDIF
  ENDIF

ENDIF

[dialog d_necro]
197,185

TAG.MNECRO = <MORE1>

page 0

page 1

IF (<TAG0.SPELLNECRO1> == 1)
button 70 15 0106a 0106b 0 2 1
button 85 15 0106a 0106b 0 2 1
button 100 15 0106a 0106b 0 2 1
button 115 15 0106a 0106b 0 2 1
button 130 15 0106a 0106b 0 2 1
endif

 IF (<TAG0.SPELLNECRO2> == 1)
button 70 35 0106a 0106b 0 2 2
button 85 35 0106a 0106b 0 2 2
button 100 35 0106a 0106b 0 2 2
button 115 35 0106a 0106b 0 2 2
button 130 35 0106a 0106b 0 2 2
endif

 IF (<TAG0.SPELLNECRO3> == 1)
button 70 55 0106a 0106b 0 3 3
button 85 55 0106a 0106b 0 3 3
button 100 55 0106a 0106b 0 3 3
button 115 55 0106a 0106b 0 3 3
button 130 55 0106a 0106b 0 3 3
endif

 IF (<TAG0.SPELLNECRO4> == 1)
button 70 75 0106a 0106b 0 3 4
button 85 75 0106a 0106b 0 3 4
button 100 75 0106a 0106b 0 3 4
button 115 75 0106a 0106b 0 3 4
button 130 75 0106a 0106b 0 3 4
endif

 IF (<TAG0.SPELLNECRO5> = 1)
button 70 95 0106a 0106b 0 4 5
button 85 95 0106a 0106b 0 4 5
button 100 95 0106a 0106b 0 4 5
button 115 95 0106a 0106b 0 4 5
button 130 95 0106a 0106b 0 4 5
endif

 IF (<TAG0.SPELLNECRO6> == 1)
button 70 115 0106a 0106b 0 4 6
button 85 115 0106a 0106b 0 4 6
button 100 115 0106a 0106b 0 4 6
button 115 115 0106a 0106b 0 4 6
button 130 115 0106a 0106b 0 4 6
endif

 IF (<TAG0.SPELLNECRO7> == 1)
button 70 135 0106a 0106b 0 5 7
button 85 135 0106a 0106b 0 5 7
button 100 135 0106a 0106b 0 5 7
button 115 135 0106a 0106b 0 5 7
button 130 135 0106a 0106b 0 5 7
endif

 IF (<TAG0.SPELLNECRO8> == 1)
button 70 155 0106a 0106b 0 5 8
button 85 155 0106a 0106b 0 5 8
button 100 155 0106a 0106b 0 5 8
button 115 155 0106a 0106b 0 5 8
button 130 155 0106a 0106b 0 5 8
endif

 IF (<TAG0.SPELLNECRO9> >= 064)
button 225 15 0106a 0106b 0 6 9
button 240 15 0106a 0106b 0 6 9
button 255 15 0106a 0106b 0 6 9
button 270 15 0106a 0106b 0 6 9
button 285 15 0106a 0106b 0 6 9
endif

 IF (<TAG0.SPELLNECRO10> == 1)
button 225 35 0106a 0106b 0 6 10
button 240 35 0106a 0106b 0 6 10
button 255 35 0106a 0106b 0 6 10
button 270 35 0106a 0106b 0 6 10
button 285 35 0106a 0106b 0 6 10
endif

 IF (<TAG0.SPELLNECRO11> == 1)
button 225 55 0106a 0106b 0 7 11
button 240 55 0106a 0106b 0 7 11
button 255 55 0106a 0106b 0 7 11
button 270 55 0106a 0106b 0 7 11
button 285 55 0106a 0106b 0 7 11
endif

 IF (<TAG0.SPELLNECRO12> == 1)
button 225 75 0106a 0106b 0 7 12
button 240 75 0106a 0106b 0 7 12
button 255 75 0106a 0106b 0 7 12
button 270 75 0106a 0106b 0 7 12
button 285 75 0106a 0106b 0 7 12
endif

 IF (<TAG0.SPELLNECRO13> == 1)
button 225 95 0106a 0106b 0 8 13
button 240 95 0106a 0106b 0 8 13
button 255 95 0106a 0106b 0 8 13
button 270 95 0106a 0106b 0 8 13
button 285 95 0106a 0106b 0 8 13
endif

 IF (<TAG0.SPELLNECRO14> == 1)
button 225 115 0106a 0106b 0 8 14
button 240 115 0106a 0106b 0 8 14
button 255 115 0106a 0106b 0 8 14
button 270 115 0106a 0106b 0 8 14
button 285 115 0106a 0106b 0 8 14
endif

 IF (<TAG0.SPELLNECRO15> == 1)
button 225 135 0106a 0106b 0 9 15
button 240 135 0106a 0106b 0 9 15
button 255 135 0106a 0106b 0 9 15
button 270 135 0106a 0106b 0 9 15
button 285 135 0106a 0106b 0 9 15
endif

 IF (<TAG0.SPELLNECRO16> == 1)
button 225 155 0106a 0106b 0 9 16
button 240 155 0106a 0106b 0 9 16
button 255 155 0106a 0106b 0 9 16
button 270 155 0106a 0106b 0 9 16
button 285 155 0106a 0106b 0 9 16
endif

button 5 95 0106a 0106b 0 10 33
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO1> == 1)
button 320 9 089E 089E 0 2 34
endif

 IF (<TAG0.SPELLNECRO1> == 1)
dtext 70 20 0 Animate Dead
endif

 IF (<TAG0.SPELLNECRO2> == 1)
dtext 70 40 0 Exorcism
endif

 IF (<TAG0.SPELLNECRO3> == 1)
 dtext 70 60 0 Corpse Skin
endif

 IF (<TAG0.SPELLNECRO4> == 1)
dtext 70 80 0 Curse Weapon
endif

 IF (<TAG0.SPELLNECRO5> == 1)
dtext 70 100 0 Evil Omen
endif

 IF (<TAG0.SPELLNECRO6> == 1)
dtext 70 120 0 Horrific Beast
endif

 IF (<TAG0.SPELLNECRO7> == 1)
dtext 70 140 0 Lich transformation
endif

 IF (<TAG0.SPELLNECRO8> == 1)
dtext 70 160 0 Mind Rot
endif

 IF (<TAG0.SPELLNECRO9> == 1)
dtext 225 20 0 Pain Strike
endif

 IF (<TAG0.SPELLNECRO10> == 1)
dtext 225 40 0 Poison Strike
endif

 IF (<TAG0.SPELLNECRO11> == 1)
dtext 225 60 0 Strangle
endif

 IF (<TAG0.SPELLNECRO12> == 1)
dtext 225 80 0 Summon Familiar
endif

 IF (<TAG0.SPELLNECRO13> == 1)
dtext 225 100 0 Vampiric Embrace
endif

 IF (<TAG0.SPELLNECRO14> == 1)
dtext 225 120 0 Vengful Spirit
endif

 IF (<TAG0.SPELLNECRO15> == 1)
dtext 225 140 0 Wither
endif

 IF (<TAG0.SPELLNECRO16> == 1)
dtext 225 160 0 Wraith Form
endif

page 2 // Animate Dead y Exorcism

button 5 95 0106a 0106b 0 10 33  //Minimizar Libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO1> == 1)
  button 90 15 05000 05000 1 0 17    //Animate Dead (icono)
  dtext 90 75 color_ice Animate Dead
  dtext  90 120 0489 Grave Dust
  dtext  90 135 0489 Daemon Blood
ENDIF
IF (<TAG0.SPELLNECRO2> == 1)
  dtext 245 75 color_ice Exorcism  //Exorcism (icono)
  button 245 15 05001 05001 1 0 18
  dtext  245 120 0489 DESHABILITADO
ENDIF

button 45 9 089D 089D 0 1 42      //Primer Pagina

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 320 9 089E 089E 0 3 88      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 320 9 089E 089E 0 4 88      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 320 9 089E 089E 0 5 88      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 320 9 089E 089E 0 6 88      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 320 9 089E 089E 0 7 88      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 3 // Corpse Skin y Curse Weapon

button 5 95 0106a 0106b 0 10 33  //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO3> == 1)
  button 90 15 05002 05002 1 0 19  //Corpse Skin (icono)
  dtext 90 75 color_ice Corpse Skin
  dtext  90 120 0489 Dead Wood
  dtext  90 135 0489 Daemon Blood
  dtext  90 150 0489 Blackmoor
ENDIF
IF (<TAG0.SPELLNECRO4> == 1)
  dtext 245 75 color_ice Curse Weapon  //Curse Weapon (icono)
  button 245 15 05003 05003 1 0 20
  dtext  245 120 0489 Pig Iron
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 320 9 089E 089E 0 4 88      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 320 9 089E 089E 0 5 88      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 320 9 089E 089E 0 6 88      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 320 9 089E 089E 0 7 88      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 4 // Evil Omen y Horrific Beast

button 5 95 0106a 0106b 0 10 33  //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO5> == 1)
  button 90 15 05004 05004 1 0 21  //Evil Omen (icono)
  dtext 90 75 color_ice Evil Omen
  dtext 90 120 0489 Bat Wing
  dtext 90 135 0489 Nox Crystal
ENDIF
IF (<TAG0.SPELLNECRO6> == 1)
  dtext 245 75 color_ice Horrific Beast
  button 245 15 05005 05005 1 0 22  //Horrific Beast (icono)
  dtext 245 120 0489 Bat Wing
  dtext 245 135 0489 Daemon Blood
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 320 9 089E 089E 0 5 88      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 320 9 089E 089E 0 6 88      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 320 9 089E 089E 0 7 88      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 5 // Lich Transformation y Mind Rot

button 5 95 0106a 0106b 0 10 33      //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO7> == 1)
  button 90 15 05006 05006 1 0 23      //Lich Transformation (icono)
  dtext 70 75 color_ice Lich Transformation
  dtext 90 120 0489 Grave Dust
  dtext 90 135 0489 Blood Vial
  dtext 90 150 0489 Nox Crystal
ENDIF
IF (<TAG0.SPELLNECRO8> == 1)
  dtext 245 75 color_ice Mind Rot
  button 245 15 05007 05007 1 0 24  //Mind Rot (icono)
  dtext 245 120 0489 Bat Wing
  dtext 245 135 0489 Blood Vial
  dtext 245 150 0489 Pig Iron
ENDIF

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 45 9 089D 089D 0 4 99      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 320 9 089E 089E 0 6 88      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 320 9 089E 089E 0 7 88      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 6 // Pain Strike y Poison Strike

button 5 95 0106a 0106b 0 10 33      //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO9> == 1)
  button 90 15 05008 05008 1 0 25
  dtext 90 75 color_ice Pain Strike  //Pain Strike (icono)
  dtext 90 120 0489 Grave Dust
  dtext 90 135 0489 Pig Iron
ENDIF
IF (<TAG0.SPELLNECRO10> == 1)
  dtext 245 75 color_ice Poison Strike  //Poison Strike (icono)
  button 245 15 05009 05009 1 0 26
  dtext 245 120 0489 Nox Crystal
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 45 9 089D 089D 0 5 99      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 45 9 089D 089D 0 4 99      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 320 9 089E 089E 0 7 88      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 7 // Strangle y Summon Familiar

button 5 95 0106a 0106b 0 10 33      //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO11> == 1)
  button 90 15 0500a 0500a 1 0 27      //Strangle (icono)
  dtext 90 75 color_ice Strangle
  dtext 90 120 0489 Daemon Blood
  dtext 90 135 0489 Nox Crystal
ENDIF
IF (<TAG0.SPELLNECRO12> == 1)
  dtext 245 75 color_ice Summon Familiar 
  button 245 15 0500b 0500b 1 0 28  //Summon Familiar (icono)
  dtext 245 120 0489 Bat Wing
  dtext 245 135 0489 Grave Dust
  dtext 245 150 0489 Daemon Blood
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 45 9 089D 089D 0 6 99      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 45 9 089D 089D 0 5 99      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 45 9 089D 089D 0 4 99      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 320 9 089E 089E 0 8 88      //Septima Pagina
ELIF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////


page 8 // Vampiric Embrace y Vengeful Spirit

button 5 95 0106a 0106b 0 10 33      //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO13> == 1)
  button 90 15 0500c 0500c 1 0 29      //Vampiric Embrace (icono)
  dtext 90 75 color_ice Vampiric Embrace
  dtext 90 120 0489 Bat Wing
  dtext 90 135 0489 Pig Iron
  dtext 90 150 0489 Nox Crystal
ENDIF
IF (<TAG0.SPELLNECRO14> == 1)
  dtext 245 75 color_ice Vengeful Spirit
  button 245 15 0500d 0500d 1 0 30  //Vengeful Spirit (icono)
  dtext 245 120 0489 Bat Wing
  dtext 245 135 0489 Grave Dust
  dtext 245 150 0489 Pig Iron
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 45 9 089D 089D 0 7 99      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 45 9 089D 089D 0 6 99      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 45 9 089D 089D 0 5 99      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 45 9 089D 089D 0 4 99      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

//////// PAGINA A LA DERECHA ///////////

IF (<TAG0.SPELLNECRO15> == 1) || (<TAG0.SPELLNECRO16> == 1)
  button 320 9 089E 089E 0 9 88      //Octava Pagina
ENDIF

/////////////////////////////////////////

page 9 // Wither y Wraith Form

button 5 95 0106a 0106b 0 10 33      //Minimizar libro
gumppic 0 0 02B00

IF (<TAG0.SPELLNECRO15> == 1)
  button 90 15 0500d 0500d 1 0 31      //Wither (icono)
  dtext 90 75 color_ice Wither
  dtext 90 120 0489 Grave Dust
  dtext 90 135 0489 Daemon Blood
  dtext 90 150 0489 Pig Iron
ENDIF
IF (<TAG0.SPELLNECRO16> == 1)
  dtext 245 75 color_ice Wraith Form  //Wraith Form (icono)
  button 245 15 0500f 0500f 1 0 32
  dtext 245 120 0489 Nox Crystal
  dtext 245 135 0489 Pig Iron
ENDIF

//////// PAGINA A LA IZQUIERDA ///////////

IF (<TAG0.SPELLNECRO13> == 1) || (<TAG0.SPELLNECRO14> == 1)
  button 45 9 089D 089D 0 8 99      //Septima Pagina
ELIF (<TAG0.SPELLNECRO11> == 1) || (<TAG0.SPELLNECRO12> == 1)
  button 45 9 089D 089D 0 7 99      //Sexta Pagina
ELIF (<TAG0.SPELLNECRO9> == 1) || (<TAG0.SPELLNECRO10> == 1)
  button 45 9 089D 089D 0 6 99      //Quinta Pagina
ELIF (<TAG0.SPELLNECRO7> == 1) || (<TAG0.SPELLNECRO8> == 1)
  button 45 9 089D 089D 0 5 99      //Cuarta Pagina
ELIF (<TAG0.SPELLNECRO5> == 1) || (<TAG0.SPELLNECRO6> == 1)
  button 45 9 089D 089D 0 4 99      //Tercer Pagina
ELIF (<TAG0.SPELLNECRO3> == 1) || (<TAG0.SPELLNECRO4> == 1)
  button 45 9 089D 089D 0 3 99      //Segunda Pagina
ELIF (<TAG0.SPELLNECRO1> == 1) || (<TAG0.SPELLNECRO2> == 1)
  button 45 9 089D 089D 0 2 99      //Primer Pagina
ELSE
  button 45 9 089D 089D 0 1 99      //Indice
ENDIF

/////////////////////////////////////////

 
page 10 //LIBRO MINIMIZADO
button 0 0 0106a 0106b 0 1 33
button 0 15 0106a 0106b 0 1 33
button 15 0 0106a 0106b 0 1 33
button 15 15 0106a 0106b 0 1 33
gumppic 0 0 02B03


[dialog d_necro button]
on=17
src.cast s_animate_dead
return 2

on=18
src.cast s_exorcism
return 2

on=19
src.cast s_corpse_skin
return 2

on=20
src.cast s_curse_weapon
return 2

on=21
src.cast s_evil_omen
return 2

on=22
src.cast s_horrific_beast
return 2

on=23
src.cast s_lich_transformation
return 2

on=24
src.cast s_mind_rot
return 2

on=25
src.cast s_pain_strike
return 2

on=26
src.cast s_poison_strike
return 2

on=27
src.cast s_strangle
return 2

on=28
src.cast s_summon_familiar
return 2

on=29
src.cast s_vampiric_embrace
return 2

on=30
src.cast s_vengeful_spirit
return 2

on=31
src.cast s_wither
return 2

on=32
src.cast s_wraith_form
return 2

[EOF]

Spells

Código:
[ITEMDEF 8800]
DEFNAME=i_scroll_animate_dead
NAME=Animate Dead
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_volcanic_ash, i_reag_daemon_bone
SKILLMAKE=INSCRIPTION 50.0, NECROMANCY 40.0

ON=@CREATE
ATTR=attr_magic
MORE1=01
MOREX=s_animate_dead
MOREY={50 80}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Animate Dead

[ITEMDEF 8801]
DEFNAME=i_scroll_blood_oath
NAME=Blood Oat
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_blood_vial
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@Create
ATTR=attr_magic
MORE1=02
MOREX=s_blood_oath
MOREY={50 80}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Blood Oath


[ITEMDEF 8802]
DEFNAME=i_scroll_corpse_skin
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_volcanic_ash, i_reag_batwing
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@CREATE
ATTR=attr_magic
MORE1=04
MOREX=s_corpse_skin
MOREY={20 20}
NUMNECRO=999

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Corpse Skin


[ITEMDEF 8803]
DEFNAME=i_scroll_curse_weapon
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 5.0, NECROMANCY 0.1

ON=@CREATE
ATTR=attr_magic
MORE1=08
MOREX=s_curse_weapon
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Curse Weapon


[ITEMDEF 8804]
DEFNAME=i_scroll_evil_omen
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_batwing, i_reag_serpent_scale
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@CREATE
ATTR=attr_magic
MORE1=010
MOREX=s_evil_omen
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Evil Omen

[ITEMDEF i_scroll_exorcism]
NAME=Exorsism
DEFNAME=i_scroll_exorcism
ID=8804
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_volcanic_ash, i_reag_serpent_scale
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@CREATE
ATTR=attr_magic
MORE1=03
MOREX=s_exorcism
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Evil Omen


[ITEMDEF 8805]
DEFNAME=i_scroll_horrific_beast
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_daemon_bone, i_reag_batwing
SKILLMAKE=INSCRIPTION 50.0, NECROMANCY 40.0

ON=@CREATE
ATTR=attr_magic
MORE1=020
MOREX=s_horrific_beast
MOREY={10 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Horrific Beast


[ITEMDEF 8806]
DEFNAME=i_scroll_lich_transformation
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank,i_reag_volcanic_ash, i_reag_serpent_scale, i_reag_daemon_bone
SKILLMAKE=INSCRIPTION 80.0, NECROMANCY 70.0

ON=@CREATE
ATTR=attr_magic
MORE1=040
MOREX=s_lich_form
MOREY={}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Lich transformation


[ITEMDEF 8807]
DEFNAME=i_scroll_mind_rot
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_batwing, i_reag_daemon_bone, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 40.0, NECROMANCY 30.0

ON=@CREATE
ATTR=attr_magic
MORE1=080
MOREX=s_mind_rot
MOREY={10 10}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Mind Rot


[ITEMDEF 8808]
DEFNAME=i_scroll_pain_spike
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_volcanic_ash, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@CREATE
ATTR=attr_magic
MORE1=0100
MOREX=s_pain_Spike
MOREY={20 60}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Pain Spike


[ITEMDEF 8809]
DEFNAME=i_scroll_poison_strike
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_serpent_scale
SKILLMAKE=INSCRIPTION 60.0, NECROMANCY 50.0

ON=@CREATE
ATTR=attr_magic
MORE1=0200
MOREX=s_poison_strike
MOREY={20 50}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Poison Strike


[ITEMDEF 8810]
DEFNAME=i_scroll_strangle
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_daemon_bone, i_reag_serpent_scale
SKILLMAKE=INSCRIPTION 75.0, NECROMANCY 65.0

ON=@CREATE
ATTR=attr_magic
MORE1=0400
MOREX=s_strangle
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Strangle


[ITEMDEF 8811]
DEFNAME=i_scroll_summon_familiar
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_batwing, i_reag_volcanic_ash, i_reag_daemon_bone
SKILLMAKE=INSCRIPTION 40.0, NECROMANCY 30.0

ON=@CREATE
ATTR=attr_magic
MORE1=0800
MOREX=s_summon_familiar
MOREY={20 60}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Summon Familiar


[ITEMDEF 8812]
DEFNAME=i_scroll_vampiric_embrace
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_batwing, i_reag_pig_iron, i_reag_serpent_scale
SKILLMAKE=INSCRIPTION 100.0, NECROMANCY 99.0

ON=@CREATE
ATTR=attr_magic
MORE1=01000
MOREX=s_vampiric_embrace
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Vampiric Embrace


[ITEMDEF 8813]
DEFNAME=i_scroll_vengeful_spirit
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_batwing, i_reag_volcanic_ash, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 90.0, NECROMANCY 80.0

ON=@CREATE
ATTR=attr_magic
MORE1=02000
MOREX=s_vengeful_spirit
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Vengeful Spirit


[ITEMDEF 8814]
DEFNAME=i_scroll_wither
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_volcanic_ash, i_reag_serpent_scale, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 70.0, NECROMANCY 60.0

ON=@CREATE
ATTR=attr_magic
MORE1=04000
MOREX=s_wither
MOREY={20 20}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Wither


[ITEMDEF 8815]
DEFNAME=i_scroll_wraith_form
TYPE=t_scroll
WEIGHT=1
RESOURCES=i_scroll_blank, i_reag_daemon_bone, i_reag_pig_iron
SKILLMAKE=INSCRIPTION 30.0, NECROMANCY 20.0

ON=@CREATE
ATTR=attr_magic
MORE1=08000
MOREX=s_wraith_form
MOREY={20 60}

CATEGORY=Provisions - Alchemy & Magic
SUBSECTION=Srolls - Necromancy
DESCRIPTION=Wraith Form


[events E_mind_rot2]
ON=@SpellCast
IF !(RAND(2))
message "Pierdes la Concentracion"
sfx 01e1
EFFECT 3,i_fx_curse,16,16,0
mana=<mana>-15
RETURN 1
else
message Te costo recordar el hechizo!

[events E_mind_rot]
ON=@SpellCast
VAR.TEMP=<EVAL <argn>/8>+1
DAMAGE <EVAL <VAR.TEMP>*20>
EFFECT 3,i_fx_curse,16,16,0
RETURN 1

[itemdef i_beast_fx]
defname=i_beast_fx
name=beast fx
id=i_fx_smoke


on=@create
color=00480

[itemdef i_wraith_fx]
defname=i_wraith_fx
name=wraith fx
id=i_fx_smoke

on=@create
color=00afd

[events e_Hbeast]
on=@spellcast
if (<ARGN>==106)
else
src.message No puedes hacer nada en tu estado
return 1
endif
on=@death
src.tag.Hbeast=0
src.events -e_Hbeast


[EVENTS E_WRAITH]
IF (<FLAGS> & statf_poisoned)
SAY @1023 An Nox
FINDLAYER.42.REMOVE
FLAGS=<FLAGS> & ~statf_poisoned
EFFECT 2,i_fx_heal_effect,5,16,0
else
endif
on=@spelleffect
elif (<ARGN>==28)|| (<ARGN>==18)|| (<ARGN>==51)|| (<ARGN>==43)|| (<ARGN>==69)
damage=20
ON=@HIT
SRC.SPELLEFFECT 31 1000
on=@spellcast
if (<ARGN>==32)
src.mana=<src.mana> +11
on=@death
src.tag.wraith=0
src.events -e_wraith


[events e_corpse]
on=@gethit
hits=<src.hits> +<eval <argn1> /2>
on=@spelleffect
IF (<ARGN>==20)|| (<ARGN>==38)
src.sysmessage "Eso no te hace efecto"
elif (<ARGN>==28)|| (<ARGN>==18)|| (<ARGN>==51)|| (<ARGN>==43)|| (<ARGN>==69)
damage=20
endif

[itemdef i_lich_fx]
defname=i_lich_fx
name=lich fx
id=i_fire_column
type=t_script

on=@create
color=001

[itemdef i_strangle_fx]
defname=i_stragle_fx
name=Strangle fx
id=i_fx_heal_effect

on=@create
color=001

[itemdef i_frost_wither]
defname=i_frost_wither
name=Frost
id=i_fx_curse

on=@create
color=1265
on=@step
src.damage=20
src.FLAGS=<src.flags> +STATF_FREEZE

[itemdef i_posion_cloud]
defname=i_poison_cloud
name=Poison Cloud
id=i_fx_smoke

on=@create
color=1155

on=@clienttooltip
return 1

on=@step
src.spelleffect 20 750
src.damage=25

[itemdef i_posion_cloud2]
defname=i_poison_cloud2
name=Poison Cloud
id=i_fx_smoke

on=@create
color=1155

on=@clienttooltip
return 1

on=@EQUIP
src.spelleffect 20 500

[spell 101]
defname=s_animate_dead
name=Animate Dead
sound=snd_SPELL_ANIMATE_DEAD
runes=UC
cast_time=4.0
resources=i_reag_dead_wood, i_reag_blood_vial, i_reag_blackmoor
rune_item=
scroll_item=
flags=SPELLFLAG_TARG_OBJ | SPELLFLAG_FX_TARG
effect_id=i_fx_smoke
effect=1
duration=0.0
manause=13
skillreq=necromancy 40.0
interrupt=100.0,1.0

ON=@effect

IF !(<ARGO.TYPE>==t_corpse)
SRC.SYSMESSAGE @032 Eso no es un cuerpo.
RETURN 1
ENDIF
IF !(<LINK>==04fffffff)
SRC.SYSMESSAGE @032 No puedes animar el cuerpo de un Player.
RETURN 1
ENDIF

VAR.POS=<P>
REMOVE
IF (<AMOUNT>==030) || (<AMOUNT>==01c) || (<AMOUNT>==0317) || (<AMOUNT>== 0313)
SRC.summon_pet c_mound_maggots
ELSE
IF (<AMOUNT>==0190) || (<AMOUNT>== 0191)
SRC.summon_pet c_zombie
ELSE
IF (<AMOUNT>==0ca) || (<AMOUNT>==085) || (<AMOUNT>==086) || (<AMOUNT>== 015) || (<AMOUNT>== 05d) || (<AMOUNT>== 050) || (<AMOUNT>== 0e8) || (<AMOUNT>== 0e9) || (<AMOUNT>== 0e7) || (<AMOUNT>== 0d8)
SRC.summon_pet c_zombie
ELSE
SRC.summon_pet c_patchwork_skeleton
ENDIF

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 01)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 01)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

//Patchwork Skeleton
//Zombie
//

[spell 102]
defname=s_blood_oath
name=Blood Oath
sound=01e9
runes=VQ
cast_time=3.0
resources=i_reag_blood_vial
rune_item=
scroll_item=i_scroll_blood_oath
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG| SPELLFLAG_RESIST
effect_id=i_fx_curse
effect=0
DURATION=0
manause=13
skillreq=necromancy 20.0
interrupt=100.0,1.0

on=@effect
serv.newitem i_oath_check
new.equip

on=@success
say "In Jux Mani Xen"
src.tag.bloodoath=1
serv.newitem i_bloodoath_timer
src.act.new.equip

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 02)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 02)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

[spell 103]
defname=s_CORPSE_SKIN
name=Corpse Skin
sound=015C
runes=RCY
cast_time=20
resources=i_reag_volcanic_ash, i_reag_BATWING // wood & dirt
rune_item=
scroll_item=i_scroll_corpse_skin
flags=SPELLFLAG_RESIST
effect_id=I_lich_fx
effect=0
duration=0.0
manause=11
skillreq=necromancy 20.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 04)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 04)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif


ON=@Start
return 2

on=@effect
serv.newitem=I_lich_fx
new.ATTR=attr_static|attr_decay
new.TIMER=2
new.P=<SRC.P>
IF !(<src.tag.CORPSE>)
src.tag.wraith=0
src.tag.liche=0
src.tag.hbeast=0
color=0059f
EVENTS +E_CORPSE
SRC.TAG.CORPSE=1
MODAR=<SRC.MODAR>+30
ELSE
COLOR=<OSKIN>
MODAR=0
EVENTS -E_CORPSE
SRC.TAG.CORPSE=0

[spell 104]
defname=s_curse_weapoN
name=Curse Weapon
sound=00fb
runes=
cast_time=60
resources=i_reag_pig_iron
rune_item=
scroll_item=i_scroll_curse_weapon
flags=SPELLFLAG_TARG_ITEM | SPELLFLAG_DIR_ANIM
effect_id=I_LICH_FX
effect=0
duration=0.0
manause=23
skillreq=necromancy 60.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 08)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 08)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@START
SRC.SAY "An Sanct Gra Char"
RETURN 2

ON=@SUCCESS
if (<ACT.TYPE> == T_WEAPON_MACE_STAFF) || (<ACT.TYPE> == T_WEAPON_MACE_PICK) || (<ACT.TYPE> == T_WEAPON_FENCE) || (<ACT.TYPE> == T_WEAPON_SWORD) || (<ACT.TYPE> == T_WEAPON_XBOW) || (<ACT.TYPE> == T_WEAPON_MACE_SMITH)
ACT.ATTR=ATTR_CURSED
else
src.sysmessage No Puedes hacer eso
return 1
endif
ENDIF

[spell 105]
defname=s_EVIL_OMEN
name=Evil Omen
sound=0245
runes=
cast_time=2.0
resources=i_reag_serpent_scale, i_reag_pig_iron
rune_item=
scroll_item=i_scroll_EVIL_OMEN
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG| SPELLFLAG_RESIST
effect_id=i_fx_curse
effect=0
DURATION=0
manause=11
skillreq=necromancy 20.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 010)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 010)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif


ON=@Start
return 2

on=@effect
src.say "Pas Tym An Sanct"
//on=@success
EVENTS +E_EVIL_OMEN

[EVENTS E_EVIL_OMEN]
on=@gethit
HITS=<HITS> -<ARGN1>
events -e_evil_omen

[spell 106]
defname=s_horrific_beast
name=Horrific Beast
sound=020f
runes=
cast_time=40
resources=i_reag_batwing, i_reag_blood_vial
rune_item=
scroll_item=i_scroll_horrific_beast
flags=SPELLFLAG_RESIST
effect_id=I_beast_fx
effect=0
duration=0.0
manause=11
skillreq=necromancy 40.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 020)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 020)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@success
src.say "Rel Xen Vas Bal"
on=@effect
if !(<src.tag.Hbeast>)
src.tag.wraith=0
src.tag.liche=0
body=0311
src.STR=<src.STR>+ 250
events +e_Hbeast
src.tag.HBeast=1
update
serv.newitem i_Beast_heal
src.act.new.equip
serv.newitem=I_beast_fx
new.ATTR=attr_static|attr_decay
new.TIMER=2
new.P=<SRC.P>
else
body=<obody>
src.STR=<src.STR>+ -250
serv.newitem=I_beast_fx
new.ATTR=attr_static|attr_decay
new.TIMER=2
new.P=<SRC.P>
src.flags=00
events -e_Hbeast
update
src.tag.Hbeast=0
endif

[spell 107]
defname=s_lich_form
name=Lich Form
sound=00fb
runes=RXCO
cast_time=60
resources=i_reag_volcanic_ash, i_reag_serpent_scale, i_reag_blood_vial
rune_item=
scroll_item=i_scroll_lich_transformation
flags=SPELLFLAG_RESIST
effect_id=I_lich_fx
effect=0
duration=0.0
manause=23
skillreq=necromancy 70.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 040)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 040)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@effect
serv.newitem=I_lich_fx
new.ATTR=attr_static|attr_decay
new.TIMER=1
new.P=<SRC.P>
if !(<src.tag.liche>)
src.tag.wraith=0
src.tag.hbeast=0
body=c_liche
src.tag.liche=1
serv.newitem i_liche_regen
new.equip
update
else
body=<obody>
update
src.tag.liche=0
endif


[spell 108]
defname=s_mind_rot
name=Mind Rot
sound=0213
runes=
cast_time=2.0
resources=i_reag_batwing, i_reag_pig_iron, i_reag_blood_vial
rune_item=i_rune_poison
scroll_item=i_scroll_mind_rot
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG| SPELLFLAG_RESIST
effect_id=i_fx_curse
effect=0
DURATION=0
manause=17
skillreq=necromancy 30.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 080)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 080)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif


ON=@Start
return 2

on=@success
say "Wis An Ben"
serv.newitem i_mind_rot
new.more1=<eval (<src.spiritspeak> /100) - (<MAGICRESISTANCE> /500) + 20>
src.act.new.equip

[spell 109]
defname=s_pain_Spike
name=Pain Spike
sound=snd_SPELL_DISPEL_FIELD
runes=
cast_time=7.0
resources=i_reag_volcanic_ash, i_reag_pig_iron
rune_item=i_rune_poison
scroll_item=i_scroll_pain_spike
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG| SPELLFLAG_RESIST
effect_id=i_fx_glow_spike
effect=0
DURATION=0
manause=80
skillreq=necromancy 20.0
interrupt=100.0,1.0

on=@effect
src.say "In Sar"
serv.newitem i_fx_glow_spike
new.ATTR=attr_static|attr_decay
new.TIMER=3
new.P=<P>

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 0100)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 0100)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@success
serv.newitem i_pain_spike
new.more1 =<eval <src.spiritspeak> / 10>
new.more2 =<eval <src.spiritspeak> / 100>
src.act.new.equip

[itemdef i_pain_spike]
ID=i_memory
name=Pain Spike
TYPE=t_eq_script

on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
timer=10
LINK.HITS=<LINK.HITS> -<MORE1>
ON=@TIMER
LINK.HITS=<LINK.HITS>+ <MORE1>
LINK.HITS=<LINK.HITS> -<MORE2>
REMOVE

[spell 110]
defname=s_poison_strike
name=Poison Strike
sound=snd_spell_explosion
runes=IVN
cast_time=2
resources=i_reag_serpent_scale
rune_item=i_rune_poison
scroll_item=i_scroll_poison_strike
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG| SPELLFLAG_RESIST
effect_id=i_poison_cloud
effect=0
DURATION=1.0,15.0
manause=17
skillreq=necromancy 50.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 0200)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 0200)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif


ON=@Start
return 2

on=@effect
damage=20
sound=snd_spell_explosion
spelleffect 20 1000
src.newitem I_poison_cloud
SRC.ACT.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<P>
new.MOVE n
serv.newitem I_poison_cloud
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<P>
new.MOVE s
serv.newitem I_poison_cloud
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<P>
new.MOVE e
serv.newitem I_poison_cloud
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<P>
new.MOVE w
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))> <EVAL(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))> <EVAL(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))> <EVAL(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))> <EVAL(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))> <EVAL(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))+-(RAND(6))> <EVAL(RAND(6))+-(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))+-(RAND(6))> <EVAL(RAND(6))+-(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))+-(RAND(6))> <EVAL(RAND(6))+-(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))+-(RAND(6))> <EVAL(RAND(6))+-(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>
new.MOVE <EVAL(RAND(6))+-(RAND(6))> <EVAL(RAND(6))+-(RAND(6))>
serv.newitem=i_poison_cloud2
new.ATTR=attr_static|attr_decay
new.TIMER=15
new.P=<P>

[spell 111]
defname=s_strangle
name=Strangle
sound=0214
runes=
cast_time=15.0
resources=i_reag_BLOOD_VIAL, i_reag_serpent_scale
rune_item=
scroll_item=i_scroll_STRANGLE
flags=Spellflag_targ_char|spellflag_harm|spellflag_playeronly|SPELLFLAG_FX_TARG
effect_id=
effect=0
duration=0.0
manause=40
skillreq=necromancy 65.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 0400)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 0400)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
SRC.SAY "In Bal Nox"
return 2

on=@Success
serv.newitem i_strangle
new.equip

on=@effect
sound=snd_spell_explosion
src.newitem I_poison_cloud
new.ATTR=attr_decay
new.TIMER=5
new.P=<P>
new.MOVE=<ARGO.P>

[ITEMDEF i_Strangle]
ID=I_MEMORY
TYPE=T_EQ_SCRIPT

ON=@CREATE
ATTR=ATTR_DECAY|ATTR_INVIS
MORE1=5
MORE2=<EVAL (<SRC.SPIRITSPEAK>/5) + (<ARGO.MAGICRESISTANCE>/2,5) *2,5>
TIMER=<more1>

ON=@TIMER
more1=<more1>-1
timer=<more1>
if (<more1> != 0)
LOCAL.MULTIPLIER=(<ARGO.STAM>/<ARGO.MAXSTAM>)*2
CONT.DAMAGE=(<MORE2>*<LOCAL.MULTIPLIER>)
remove
return 1
endif
return 1

[spell 112]
defname=s_summon_familiar
name=Summon Familiar
sound=0214
runes=
cast_time=20.0
resources=i_reag_batwing, i_reag_blood_vial, i_reag_volcanic_ash
rune_item=
scroll_item=i_scroll_summon_familiar
flags=spellflag_summon
effect_id=
effect=0
duration=2*60.0, 3*60.0
manause=50
skillreq=necromancy 60.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 0800)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 0800)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
SRC.SAY "Kal Xen Bal"
return 2

on=@effect
dialog d_summon_familiar
else
SRC.SYSMESSAGE Solo puedes tener un familiar.
endif

[spell 113]
defname=s_vampiric_embrace
name=Vampiric Embrace
sound=01eb
runes=RXAS
cast_time=10.0
resources=i_reag_serpent_scale,i_reag_pig_iron,i_reag_batwing
rune_item=
scroll_item=i_scroll_vampiric_embrace
FLAGS=SPELLFLAG_RESIST
effect_id=i_fx_smoke
effect=0
DURATION=0
manause=23
skillreq=necromancy 98
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 01000)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 01000)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@effect
if !(<src.tag.vampire>)
color=0835
src.STR=<src.STR>+ 100
events +e_vampire
src.tag.vampire=1
update

src.newitem I_FX_BLESS_EFFECT
SRC.ACT.COLOR=00B38
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=2
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE n
src.newitem I_FX_BLESS_EFFECT
SRC.ACT.COLOR=00B38
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=2
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE s
src.newitem I_FX_BLESS_EFFECT
SRC.ACT.COLOR=00B38
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=2
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE e
src.newitem I_FX_BLESS_EFFECT
SRC.ACT.COLOR=00B38
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=2
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE w
else
events -e_vampire
color=<oskin>
src.STR=<src.STR>+ -100
src.tag.vampire=0

src.newitem I_FX_smoke
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=2
SRC.ACT.P=<SRC.P>

[spell 114]
DEFNAME=s_vengeful_spirit
NAME=Vengeful Spirit
SOUND=019c
RUNES=
CAST_TIME=10
RESOURCES=i_reag_batwing, i_reag_blood_spawn, i_reag_obsidian
RUNE_ITEM=
SCROLL_ITEM=i_scroll_vengeful_spirit
FLAGS=spellflag_summon
EFFECT_ID=0
EFFECT=0
DURATION=2*60.0, 3*60.0
MANAUSE=70
SKILLREQ=Necromancy 80.0
INTERRUPT=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 02000)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 02000)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
src.say "Kal Xen Bal Beh"
return 2

on=@select
if !(<argn3>)
elseif (<argn3>==2)
summon {c_vengful_spirit}
new.tag.owner=<src.uid>
new.tag.victim=<act.uid>
new.p=<act.p>
new.move <eval(rand(6))+-(rand(6))>
local.npc=<new.uid>
new.more1=(<eval <src.spiritspeak>*80>/12)+10
endif

[spell 115]
defname=s_wither
name=Wither
sound=0108
runes=dm
cast_time=25.0
resources=i_reag_volcanic_Ash, i_reag_serpent_scale, i_reag_pig_iron
rune_item=i_rune_weaken
scroll_item=i_scroll_wither
flags=SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_RESIST| SPELLFLAG_FX_TARG
effect_id=i_frost_wither
effect=0
duration=0.0
manause=100
skillreq=necromancy 60.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 04000)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 04000)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@success
src.say "Kal Vas An Flam"
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE n
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE s
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE e
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE w
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE n,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE s,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE e,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE w,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE n,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE s,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE e,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE w,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE n,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE s,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE e,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE w,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE ne
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE sw
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE se
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE nw
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE ne,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE sw,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE se,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE nw,2
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE ne,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE sw,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE se,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE nw,3
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE ne,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE sw,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE se,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.TIMER=5
new.P=<SRC.P>
new.MOVE nw,4

[spell 116]
defname=s_wraith_form
name=Wraith Form
sound=01d2
runes=dm
cast_time=2
resources=i_reag_pig_iron, i_reag_serpent_scale
rune_item=i_rune_weaken
scroll_item=i_scroll_wraith_form
flags=SPELLFLAG_RESIST|spellflag_dir_anim|
effect_id=I_wraith_fx
effect=0
duration=0.0
manause=17
skillreq=necromancy 20.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 08000)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 08000)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

on=@effect
src.say "Rel Xen Um"
serv.newitem=I_wraith_fx
new.ATTR=attr_static|attr_decay
new.TIMER=1
new.P=<SRC.P>
if !(<src.tag.wraith>)
src.tag.liche=0
src.tag.hbeast=0
body=c_m_wraith
events +e_wraith
src.tag.wraith=1
invis
update
else
color=<OSKIN>
flags=<FLAGS> &~STATF_INVISIBLE
events -e_wraith
body=<OBODY>
src.tag.wraith=0
UPDATE
endif

[spell 117]
defname=s_exorcism
name=Exorcism
sound=01d2
runes=dm
cast_time=2
resources=i_reag_volcanic_ash, i_reag_serpent_scale
rune_item=i_rune_weaken
scroll_item=i_scroll_exorcism
flags=SPELLFLAG_DISABLED
effect_id=I_wraith_fx
effect=0
duration=0.0
manause=17
skillreq=necromancy 20.0
interrupt=100.0,1.0

ON=@Spellselect
if (<argn1>=101) && (<findlayer.21.findtype.t_spellbook_necro.more1 |= 03)
return 2
endif
if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 03)
src.sysmessage No tienes este hechizo en tu spellbook!
return 1
endif

ON=@Start
return 2

[itemdef i_liche_regen]
ID=i_memory
name=liche regen
TYPE=t_eq_script
on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
timer=1
on=@timer
IF !<link.tag.liche>
remove
return 1
ELIF (<link.mana> <= <eval <link.int> - 2>)
link.mana=<eval <link.mana>+5>
link.hits=<eval <link.hits> -1>
timer=1
return 1
else
link.hits=<eval <link.hits> -1>
timer=1
return 1
endif

[itemdef i_Beast_heal]
ID=i_memory
name=beast Heal
TYPE=t_eq_script
on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
//LINK=<src.act.uid>
timer=1
on=@timer
IF !<link.tag.Hbeast>
remove
return 1
ELIF (<link.hits> <= <eval <link.str> - 2>)
link.hits=<eval <link.hits>+2>
timer=1
return 1
else
timer=1
return 1
endif

[itemdef i_mind_rot]
ID=i_memory
name=mind rot
TYPE=t_eq_script
on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
timer=<src.INT> + 20
link.events +e_mind_rot2
on=@timer
link.events -e_mind_rot2
remove
return 1

[itemdef i_bloodoath_timer]
ID=i_memory
name=blood oath
TYPE=t_eq_script
on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
timer=120
on=@timer
link.tag.bloodoath=0
remove
return 1

[itemdef i_oath_check]
ID=i_memory
name=oath check
TYPE=t_eq_script
on=@create
ATTR=attr_invis|attr_decay
LINK=<src.act.uid>
on=@equip
timer=120
link.events +e_blood_oath
on=@timer
link.events -e_blood_oath
remove
return 1

[events e_blood_oath]
on=@hit
IF !<src.tag.boodoath>
hits=<hits>-<argn1>
else
endif
on=@spellcast
IF !<ACT.tag.boodoath>
src.spelleffect <argn> 1000
else

endif

[events e_vampire]
on=@spellcast
IF (<ARGN>==02)| (<ARGN>==4)|(<ARGN>==7)|(<ARGN>==8) | (<ARGN>==11)|(<ARGN>==13)|(<ARGN>==15) | (<ARGN>==17)|(<ARGN>==19)|(<ARGN>==24)| (<ARGN>==25)|(<ARGN>==26)|(<ARGN>==27) | (<ARGN>==29)|(<ARGN>==34)|(<ARGN>==35) | (<ARGN>==36)|(<ARGN>==38)|(<ARGN>==41)| (<ARGN>==46)|(<ARGN>==54)|(<ARGN>==59)
src.damage=20

on=@spelleffect
IF (<ARGN>==38)| (<ARGN>==47)|(<ARGN>==20)|(<ARGN>==39)
return 1

on=@hit
if <eval <hits>+ <ARGN1>>><str>
hits=<str>
else
hits=<eval (<hits>+ <ARGN1>)>
SRC.NEWITEM=I_fx_vortex
SRC.ACT.ATTR=attr_static|attr_decay
SRC.ACT.TIMER=1
SRC.ACT.P=<SRC.P>
SRC.ACT.MOVE e
endif

[ITEMDEF i_ANIM_stone]
NAME=ANIM Stone
ID=i_gold

ON=@CREATE
COLOR=0200
ATTR=attr_decay|attr_can_decay

ON=@DCLICK
SRC.MESSAGE Elige el Blanco
TARGET
RETURN 1

ON=@TARGON_CHAR
SRC.TARG.spelleffect 66 1000
remove
RETurn 1
ENDIF

[function summon_pet]
SRC.newnpc=<ARGS>
SRC.act.p=<VAR.POS>
SRC.ACT.FIX
VAR.SUID=<ACT.UID>
SRC.act.flags=00c000000
SRC.act.newitem=i_memory
SRC.ACT.ACT.COLOR=02
SRC.act.act.cont=<VAR.SUID>
SRC.act.act.link=<SRC.uid>
SRC.act.act.more2=<SRC.uid>
SRC.act.act.timer=-1
SRC.ACT.NEWITEM=i_rune_summon_creature
SRC.ACT.ACT.LAYER=41
SRC.ACT.ACT.TYPE=t_spell
SRC.ACT.ACT.MORE2=1
SRC.ACT.ACT.MOREP=40,816
SRC.ACT.ACT.CONT=<VAR.SUID>
SRC.ACT.ACT.LINK=<SRC.UID>
SRC.ACT.ACT.TIMER={220-290}
SRC.ACT.ACT.ATTR=attr_decay

[CHARDEF C_vengful_spirit]
ID=C_ELEM_AIR
NAME=Revenant
ARMOR=40
DAM=45
CAN=MT_EQUIP|MT_RUN|MT_WALK|MT_USEHANDS

ON=@CREATE
NPC=BRAIN_MONSTER
WRESTLING=80.0
TACTICS=50.0
STR={120 250}
DEX={70 100}
INT={0 1}
KARMA={-5000 -10000}
COLOR=0489

[dialog d_summon_familiar]
0,0
page 0
resizepic 0 0 0DAC 450 210
dtext 20 30 1152 Summon Familiar
dtext 160 60 1152 Ver
dtext 190 60 1152 Crear
dtext 20 80 1152 Spirit Wisp 
dtext 20 100 1152 Dark Wolf
dtext 20 120 1152 Darknight Creeper
dtext 20 140 1152 Vampire Bat 
dtext 20 160 1152 Horde Minion 
button 190 80 02C89 02C88 1 0 1
button 190 100 02C89 02C88 1 0 2
button 190 120 02C89 02C88 1 0 3
button 190 140 02C89 02C88 1 0 4
button 190 160 02C89 02C88 1 0 5
button 160 80 02C93 02C92 0 2 6
button 160 100 02C93 02C92 0 3 7
button 160 120 02C93 02C92 0 4 8
button 160 140 02C93 02C92 0 5 9
button 160 160 02C93 02C92 0 6 10
resizepic 290 70 0BB8 80 80
page 2
tilepic 300 80 02100
page 3
tilepic 300 80 020EA
page 4
tilepic 300 80 0262D
page 5
tilepic 300 80 02631
page 6
tilepic 300 80 02611

[dialog d_summon_familiar Button]
ON=1 //summonea spirit wisp
SUMMON {c_Wisp}

ON=2 //summonea dark wolf
SUMMON {c_wolf_dark}

ON=3 //summonea death adder
SUMMON {c_DARKNIGHT_CREEPER}

ON=4 //summonea vampire bat
SUMMON {c_vampire_BAT}

ON=5 //summonea horde minion
SUMMON {c_horde_minion}

[CHARDEF C_WOLF_DARK]
DEFNAME=C_WOLF_DARK
ID=C_WOLF
NAME=Dark Wolf

on=@CREATE
NPC=BRAIN_ANIMAL
STR={100 130}
DEX={40 60}
INT={0 1}
KARMA={-100 -500}
WRESTLING=70.0
ANATOMY=100.0
COLOR=01

[EOF]

Bueno el que lo puede resolver es un genio xD. Este libro lo hise en 2008 pero NUNCA lo pude hacer funcionar al 100%. Creo que hay que tener el feature aos en 02 tambien eh:P

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Admin OuPMaN Lun 13 Sep 2010 - 21:58

El error es lo que pones Spells son los scroll y todavía no está muy finalizado el sistema necro. Puedes encontrar todo hecho o casi hecho en

http://www.sphereserver.net/index.php?showforum=84

Saludos!
Admin OuPMaN
Admin OuPMaN
Admin

Mensajes : 214
Puntos : 5472
Reputación : 18
Fecha de inscripción : 03/04/2010
Edad : 27
Localización : Linares (España)
Empleo /Ocio : Estudiante, Pianista, Compositor y Diseñador de Webs

https://ayudasphereserver.forosactivos.net

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 21:59

Admin OuPMaN escribió:El error es lo que pones Spells son los scroll y todavía no está muy finalizado el sistema necro. Puedes encontrar todo hecho o casi hecho en

http://www.sphereserver.net/index.php?showforum=84

Saludos!

Me base ahí y en spherstatics creo que era. Pero mira el script y fiajte si hay sintaxis mal hecha!.
Si pero fijate que abajo de los scrolls estan los spells desarrollados.

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Admin OuPMaN Lun 13 Sep 2010 - 22:10

Usa este spellbook y estos scrolls y tiene que irte

http://www.sphereserver.net/index.php?showtopic=46221
Admin OuPMaN
Admin OuPMaN
Admin

Mensajes : 214
Puntos : 5472
Reputación : 18
Fecha de inscripción : 03/04/2010
Edad : 27
Localización : Linares (España)
Empleo /Ocio : Estudiante, Pianista, Compositor y Diseñador de Webs

https://ayudasphereserver.forosactivos.net

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 22:11

Gracias pero me gustaria arreglar el mio.

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Lethal Lun 13 Sep 2010 - 22:12

Es que esos numeros de spells, estan apartados para el necrobook hardcore. Para que te funcione tenes que activar en el ini, las features correspondientes ( necro, paladin book y tooltip ).
Lethal
Lethal
Admin

Mensajes : 623
Puntos : 5676
Reputación : 36
Fecha de inscripción : 03/09/2010
Edad : 39
Localización : Argentina

http://www.i-networks.com.ar

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 22:16

V8 escribió:Es que esos numeros de spells, estan apartados para el necrobook hardcore. Para que te funcione tenes que activar en el ini, las features correspondientes ( necro, paladin book y tooltip ).

Y como podría modificarlo para que funcione?

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Admin OuPMaN Lun 13 Sep 2010 - 22:19

FeatureAOS=01|02|04|08 en el sphere.ini (con el 02 sólo basta para los libros necro) (encima viene la explicación de cada uno)
Admin OuPMaN
Admin OuPMaN
Admin

Mensajes : 214
Puntos : 5472
Reputación : 18
Fecha de inscripción : 03/04/2010
Edad : 27
Localización : Linares (España)
Empleo /Ocio : Estudiante, Pianista, Compositor y Diseñador de Webs

https://ayudasphereserver.forosactivos.net

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 22:19

Osea que si pongo features 02 funciona el libro?, pero que tan feo se vera el uo xD?
Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Admin OuPMaN Lun 13 Sep 2010 - 22:21

Eso es lo que dice V8, yo no lo he probado con ese script, pero me pongo ahora para comprobarlo.
Admin OuPMaN
Admin OuPMaN
Admin

Mensajes : 214
Puntos : 5472
Reputación : 18
Fecha de inscripción : 03/04/2010
Edad : 27
Localización : Linares (España)
Empleo /Ocio : Estudiante, Pianista, Compositor y Diseñador de Webs

https://ayudasphereserver.forosactivos.net

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 22:24

De ultima si cambiamos el numero de spells y la imagen de los scrolls y el spellbook podría funcionar sin el feature 02 ?. La verdad es que me mate haciendo este script en el 2008 y no quiero rehacer uno de vuelta (1°pq no me acuerdo muchas cosas xD), (2°paja xD), ademas que quiero verlo funcioar :'(

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Lethal Lun 13 Sep 2010 - 22:28

Daedelus escribió:De ultima si cambiamos el numero de spells y la imagen de los scrolls y el spellbook podría funcionar sin el feature 02 ?. La verdad es que me mate haciendo este script en el 2008 y no quiero rehacer uno de vuelta (1°pq no me acuerdo muchas cosas xD), (2°paja xD), ademas que quiero verlo funcioar :'(

Atte. Daedelus BloodAxe

Si activas el tooltip funciona. Otros spells no podes utilizar, estan todos delimitados por sus correspondientes libros.

Con .gm lo vas a ver bien , incluso utilizar , pero como player convencional te va a decir que el spell no esta en el spellbook ( en este caso el necrobook ), es por esto que te digo.
Lethal
Lethal
Admin

Mensajes : 623
Puntos : 5676
Reputación : 36
Fecha de inscripción : 03/09/2010
Edad : 39
Localización : Argentina

http://www.i-networks.com.ar

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Lethal Lun 13 Sep 2010 - 22:31

Podes utilizar funciones:

Yo estaba armando algo similar ( me quede en el proceso ).

Código:


[PLEVEL 1]
necro2

//<-----------------------------------Spell Mind Rot
[FUNCTION necro2] 
if !(<src.isevent.e_casting_mind_rot>==1)
   if (<argn>==101) && (<findlayer.21.findtype.t_spellbook_necro.more1 !|= 080)
      src.newitem=i_mind_rot
      src.act.equip
      src.act.timer=15
   else
      src.message=No tienes el Hechizo en tu Necrobook.
      Return 1
   endif
else
   message The spell fizzles...
   effect 3,i_fx_smoke_small,6,15,1
   consume=50 i_mind_rot_delay
   events= -e_casting_mind_rot
   return 1
Endif

//<-----------------------------------Item Memory
[ITEMDEF i_mind_rot]
Id=i_memory
Name=Mind Rot
Weight=0
Type=t_eq_script

On=@create
Attr=attr_decay

On=@equip
target Selecciona a tu victima.
timer=10
return 1

On=@targon_char
if !(<SRC.ISEVENT.e_mind_rot>==1)
   if (<Src.Necromancy> >=30.0)
      if (<src.mana> >= 17)
         src.events=e_casting_mind_rot
         Src.anim=16
         src.mana=<eval <src.Mana> - 17>
         src.Say Wis An Ben
         src.newitem=i_mind_rot_Delay
         src.act.equip
         src.act.link=<src.targ.uid>
         src.act.timer=2
         src.newitem=i_mind_rot_effect_delay 
         src.act.equip
         src.act.timer=25
         src.act.link=<src.targ.uid>
         remove
         return 1
      else
         src.sysmessage No tienes la mana necesaria!.
         Return 1
      endif
   else
      src.sysmessage No tienes la habilidad necesaria para este spell.
      return 1
   endif
else
   src.sysmessage La victima ya sufre de este spell!.
   Return 1
endif
return 1

On=@timer
Remove
Return 0

//<-------------------------------------Events Casting
[Events e_casting_mind_rot]
On=@GetHit
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

On=@SpellEffect
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

//<------------------------------------Item Delay
[ItemDef I_mind_rot_Delay]
Id=I_memory
Name=Mind Rot Delay
Type=t_eq_script

On=@Create
Timer=1
Attr=attr_decay

On=@Timer
Cont.Sysmessage=Your enemy's mind sinks into a state of decay.
link.mind_rot_Spell_Anim
cont.events -e_casting_mind_rot
link.EVENTS e_mind_rot
Remove
return 1

//<----------------------------------Item Effect Delay
[ITEMDEF i_mind_rot_effect_delay]
NAME=Mind Rot Effect Delay
ID=i_memory
TYPE=t_eq_script

ON=@CREATE
ATTR=attr_decay

ON=@EQUIP
TIMER=60

ON=@TIMER
LINK.EVENTS -e_mind_rot
LINK.SYSMESSAGE You feel your mind regenerate it's lost powers.
CONT.SYSMESSAGE Your enemy's mind heals and returns to it's normal state.
REMOVE
RETURN 1

//<---------------------------------Events Mind Rot
[EVENTS e_mind_rot]
ON=@SpellSelect
If (<mana> >=10)
   mana -= {5 15}
   message Tu cerebro se desmorona!
else
   mana = 0
   message Tu cerebro se desmorona!
endif

ON=@Spelleffect
if (<argn> == 34) || (<argn> == 41)
  consume i_mind_rot
endif

//<--------------------------------Function Anim
[Function Mind_Rot_Spell_Anim]
if <act.restest i_mind_rot>
     act.consume i_mind_rot
     return 1
endif
serv.newitem=i_fx_curse
new.attr=attr_static|attr_decay
new.timer=1
new.p=<act.p>
serv.newitem i_mind_rot
new.timer=(<eval <src.spiritspeak>-<act.magicresistance>>/50)+30
act.equip <new>

[EOF]


Obviamente se complica el doble, usar chequeos de mas , timers, memorys etc.
Lethal
Lethal
Admin

Mensajes : 623
Puntos : 5676
Reputación : 36
Fecha de inscripción : 03/09/2010
Edad : 39
Localización : Argentina

http://www.i-networks.com.ar

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Lun 13 Sep 2010 - 22:33

V8 escribió:Podes utilizar funciones:

Yo estaba armando algo similar ( me quede en el proceso ).

Código:


[PLEVEL 1]
necro2

//<-----------------------------------Spell Mind Rot
[FUNCTION necro2] 
if !(==1)
   if (==101) && (      src.newitem=i_mind_rot
      src.act.equip
      src.act.timer=15
   else
      src.message=No tienes el Hechizo en tu Necrobook.
      Return 1
   endif
else
   message The spell fizzles...
   effect 3,i_fx_smoke_small,6,15,1
   consume=50 i_mind_rot_delay
   events= -e_casting_mind_rot
   return 1
Endif

//<-----------------------------------Item Memory
[ITEMDEF i_mind_rot]
Id=i_memory
Name=Mind Rot
Weight=0
Type=t_eq_script

On=@create
Attr=attr_decay

On=@equip
target Selecciona a tu victima.
timer=10
return 1

On=@targon_char
if !(==1)
   if ( >=30.0)
      if ( >= 17)
         src.events=e_casting_mind_rot
         Src.anim=16
         src.mana= - 17>
         src.Say Wis An Ben
         src.newitem=i_mind_rot_Delay
         src.act.equip
         src.act.link=
         src.act.timer=2
         src.newitem=i_mind_rot_effect_delay 
         src.act.equip
         src.act.timer=25
         src.act.link=
         remove
         return 1
      else
         src.sysmessage No tienes la mana necesaria!.
         Return 1
      endif
   else
      src.sysmessage No tienes la habilidad necesaria para este spell.
      return 1
   endif
else
   src.sysmessage La victima ya sufre de este spell!.
   Return 1
endif
return 1

On=@timer
Remove
Return 0

//<-------------------------------------Events Casting
[Events e_casting_mind_rot]
On=@GetHit
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

On=@SpellEffect
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

//<------------------------------------Item Delay
[ItemDef I_mind_rot_Delay]
Id=I_memory
Name=Mind Rot Delay
Type=t_eq_script

On=@Create
Timer=1
Attr=attr_decay

On=@Timer
Cont.Sysmessage=Your enemy's mind sinks into a state of decay.
link.mind_rot_Spell_Anim
cont.events -e_casting_mind_rot
link.EVENTS e_mind_rot
Remove
return 1

//<----------------------------------Item Effect Delay
[ITEMDEF i_mind_rot_effect_delay]
NAME=Mind Rot Effect Delay
ID=i_memory
TYPE=t_eq_script

ON=@CREATE
ATTR=attr_decay

ON=@EQUIP
TIMER=60

ON=@TIMER
LINK.EVENTS -e_mind_rot
LINK.SYSMESSAGE You feel your mind regenerate it's lost powers.
CONT.SYSMESSAGE Your enemy's mind heals and returns to it's normal state.
REMOVE
RETURN 1

//<---------------------------------Events Mind Rot
[EVENTS e_mind_rot]
ON=@SpellSelect
If ( >=10)
   mana -= {5 15}
   message Tu cerebro se desmorona!
else
   mana = 0
   message Tu cerebro se desmorona!
endif

ON=@Spelleffect
if ( == 34) || ( == 41)
  consume i_mind_rot
endif

//<--------------------------------Function Anim
[Function Mind_Rot_Spell_Anim]
if
     act.consume i_mind_rot
     return 1
endif
serv.newitem=i_fx_curse
new.attr=attr_static|attr_decay
new.timer=1
new.p=
serv.newitem i_mind_rot
new.timer=(->/50)+30
act.equip

[EOF]


Obviamente se complica el doble, usar chequeos de mas , timers, memorys etc.

Pero lo que yo digo, es lo siguiente, con este libro, le cambio la id, le pongo t_speelbook que se yo, le ponga la id de un speelbook comun, lo pinto de gris feo y los spells les pongo nuevos n umeros, osea customs... podria funcionar con el player convencional?. Es decir, en ves de empezar por el spell que se yo 102 empiezo por el 500 se puede ?

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Lethal Lun 13 Sep 2010 - 22:37

Daedelus escribió:
V8 escribió:Podes utilizar funciones:

Yo estaba armando algo similar ( me quede en el proceso ).

Código:


[PLEVEL 1]
necro2

//<-----------------------------------Spell Mind Rot
[FUNCTION necro2] 
if !(==1)
   if (==101) && (      src.newitem=i_mind_rot
      src.act.equip
      src.act.timer=15
   else
      src.message=No tienes el Hechizo en tu Necrobook.
      Return 1
   endif
else
   message The spell fizzles...
   effect 3,i_fx_smoke_small,6,15,1
   consume=50 i_mind_rot_delay
   events= -e_casting_mind_rot
   return 1
Endif

//<-----------------------------------Item Memory
[ITEMDEF i_mind_rot]
Id=i_memory
Name=Mind Rot
Weight=0
Type=t_eq_script

On=@create
Attr=attr_decay

On=@equip
target Selecciona a tu victima.
timer=10
return 1

On=@targon_char
if !(==1)
   if ( >=30.0)
      if ( >= 17)
         src.events=e_casting_mind_rot
         Src.anim=16
         src.mana= - 17>
         src.Say Wis An Ben
         src.newitem=i_mind_rot_Delay
         src.act.equip
         src.act.link=
         src.act.timer=2
         src.newitem=i_mind_rot_effect_delay 
         src.act.equip
         src.act.timer=25
         src.act.link=
         remove
         return 1
      else
         src.sysmessage No tienes la mana necesaria!.
         Return 1
      endif
   else
      src.sysmessage No tienes la habilidad necesaria para este spell.
      return 1
   endif
else
   src.sysmessage La victima ya sufre de este spell!.
   Return 1
endif
return 1

On=@timer
Remove
Return 0

//<-------------------------------------Events Casting
[Events e_casting_mind_rot]
On=@GetHit
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

On=@SpellEffect
message The spell fizzles...
effect 3,i_fx_smoke_small,6,15,1
consume=50 i_mind_rot_delay
events -e_casting_mind_rot

//<------------------------------------Item Delay
[ItemDef I_mind_rot_Delay]
Id=I_memory
Name=Mind Rot Delay
Type=t_eq_script

On=@Create
Timer=1
Attr=attr_decay

On=@Timer
Cont.Sysmessage=Your enemy's mind sinks into a state of decay.
link.mind_rot_Spell_Anim
cont.events -e_casting_mind_rot
link.EVENTS e_mind_rot
Remove
return 1

//<----------------------------------Item Effect Delay
[ITEMDEF i_mind_rot_effect_delay]
NAME=Mind Rot Effect Delay
ID=i_memory
TYPE=t_eq_script

ON=@CREATE
ATTR=attr_decay

ON=@EQUIP
TIMER=60

ON=@TIMER
LINK.EVENTS -e_mind_rot
LINK.SYSMESSAGE You feel your mind regenerate it's lost powers.
CONT.SYSMESSAGE Your enemy's mind heals and returns to it's normal state.
REMOVE
RETURN 1

//<---------------------------------Events Mind Rot
[EVENTS e_mind_rot]
ON=@SpellSelect
If ( >=10)
   mana -= {5 15}
   message Tu cerebro se desmorona!
else
   mana = 0
   message Tu cerebro se desmorona!
endif

ON=@Spelleffect
if ( == 34) || ( == 41)
  consume i_mind_rot
endif

//<--------------------------------Function Anim
[Function Mind_Rot_Spell_Anim]
if
     act.consume i_mind_rot
     return 1
endif
serv.newitem=i_fx_curse
new.attr=attr_static|attr_decay
new.timer=1
new.p=
serv.newitem i_mind_rot
new.timer=(->/50)+30
act.equip

[EOF]


Obviamente se complica el doble, usar chequeos de mas , timers, memorys etc.

Pero lo que yo digo, es lo siguiente, con este libro, le cambio la id, le pongo t_speelbook que se yo, le ponga la id de un speelbook comun, lo pinto de gris feo y los spells les pongo nuevos n umeros, osea customs... podria funcionar con el player convencional?. Es decir, en ves de empezar por el spell que se yo 102 empiezo por el 500 se puede ?

Atte. Daedelus BloodAxe

Testealo. Yo le busque todas las vueltas y no.

Pero es un error de sphere, tendrias que separar esas features. Tooltip por un lado y los Books por otros.
Lethal
Lethal
Admin

Mensajes : 623
Puntos : 5676
Reputación : 36
Fecha de inscripción : 03/09/2010
Edad : 39
Localización : Argentina

http://www.i-networks.com.ar

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Mar 14 Sep 2010 - 0:43

Y Como lo puedo hacer?.

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Daedelus Mar 14 Sep 2010 - 1:32

Cambie todo, numeros de spell, defname spells con otros nombresm el tipo del spellbook todo, y me sigue diciendo que no tengo el spell en el libro
:S.

Atte. Daedelus BloodAxe
Daedelus
Daedelus
Moderador

Mensajes : 117
Puntos : 5123
Reputación : 3
Fecha de inscripción : 06/09/2010

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Lethal Mar 14 Sep 2010 - 2:36

Daedelus escribió:Cambie todo, numeros de spell, defname spells con otros nombresm el tipo del spellbook todo, y me sigue diciendo que no tengo el spell en el libro
:S.

Atte. Daedelus BloodAxe

Por que es hardcore como te decia.
Lethal
Lethal
Admin

Mensajes : 623
Puntos : 5676
Reputación : 36
Fecha de inscripción : 03/09/2010
Edad : 39
Localización : Argentina

http://www.i-networks.com.ar

Volver arriba Ir abajo

Libro Necro Empty Re: Libro Necro

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.