Subir

Incidencia: Fallo de Stats

  1. issueid=364 07-Dec-2014 13:45
    Numero de Incidencias reportads por Calimero: 1
    Fallo de Stats
    Hombre rata

    Al convertirse en hombre rata, te da los 14 de armadura pero no te suben las stats, se quedan como si no fueras convertido.
Detalles
Nº Incidencia 364
Proyecto Fallos / Tareas
Categoría Habilidades
Estado Cerrado (Arreglado)
Prioridad 5 - Media
Afecta a la versión Servidor OFICIAL
Arreglado en la versión Servidor OFICIAL
Usuarios que pueden reproducir el fallo 1
Usuarios que no pueden reproducir el fallo 0
Usuarios asignados Terrikate
Etiquetas (ninguna)




  1. 07-Dec-2014 14:52
    El fallo esta en el sphere en la versión nueva, modificaron esto:

    Changed: Polymorph spell now doesn't change char status anymore. If needed, this behavior can be softcoded using @Success on Polymorph spell (ACTARG2 [read/write] is the new body ID)
    [sphere_spells.scp]: Added missing spellflag_noprecast and cancel functionality for polymorph spell. If used while already polymorphed, it will remove the polymorph effect.
  2. 09-Dec-2014 18:45
    Una Solución Posible: ( Los valores me los he inventado por poner algo, no me acuerdo como iba antes )


    En el Sphere_spells, modificamos el hechizo añadiéndole un on=@Sucess

    Código:
    [SPELL 56]
    DEFNAME=s_polymorph
    NAME=Polymorph
    SOUND=snd_spell_polymorph
    RUNES=VYR
    CAST_TIME=2.0
    RESOURCES=i_reag_blood_moss,i_reag_mandrake_root,i_reag_spider_silk
    RUNE_ITEM=i_rune_polymorph
    SCROLL_ITEM=i_scroll_polymorph
    FLAGS=spellflag_playeronly|spellflag_noprecast
    EFFECT_ID=0
    EFFECT=0
    DURATION=5*60.0,8*60.0
    MANAUSE=40
    SKILLREQ=MAGERY 70.0
    INTERRUPT=100.0,100.0
    ON=@Select
       IF (<FLAGS> & statf_polymorph)
        IF (<MANA> < <SERV.SPELL.s_polymorph.MANAUSE>)
         SYSMESSAGE <DEFMSG.spell_try_nomana>
        ELSE
         MANA -= <SERV.SPELL.s_polymorph.MANAUSE>
         FINDID.<SERV.SPELL.s_polymorph*******NE_ITEM>.REMOVE
        ENDIF
        return 1
       ENDIF
    
    ON=@Success
    if <ACTARG2> == 0d0 // C_chicken ; Gallina
    SRC.POLYCUSTOM 0 150 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 0d9 // C_dog ; perro
    SRC.POLYCUSTOM 100 150 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 0e9 // c_bull_brown_dk ; Toro
    SRC.POLYCUSTOM 0 -10 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 03 // C_zombie ; Zombie
    SRC.POLYCUSTOM 38 107 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 02a // C_ratman ; Hombre Rata 
    SRC.POLYCUSTOM 100 100 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 015 // c_snake_giant
    SRC.POLYCUSTOM 150 50 100 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 02 // C_Ettin ;Ettin
    SRC.POLYCUSTOM 50 50 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 01 // c_ogre ; Ogro
    SRC.POLYCUSTOM 100 150 0 // Fuerza, Destreza, Intelegicencia 
    ENDIF
    if <ACTARG2> == 036 // c_troll ; Troll
    SRC.POLYCUSTOM 50 40 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 016 // C_garzer ; Garzer
    SRC.POLYCUSTOM 0 0 150 // Fuerza, Destreza, Intelegicencia 
    ENDIF
    if <ACTARG2> == 02f // C_reaper ; Reaper
    SRC.POLYCUSTOM 120 0 150 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 0e // c_elemental_earth_summoned ; Elemental tierra
    SRC.POLYCUSTOM 60 20 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 0f // c_elemental_fire_summoned ; Elemental Fuego
    SRC.POLYCUSTOM 60 20 0 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 010 // c_elemental_water_summoned ; Elemental Agua
    SRC.POLYCUSTOM 50 0 50 // Fuerza, Destreza, Intelegicencia
    ENDIF
    if <ACTARG2> == 048 //c_terathan_matriarch ; Matriarca terantar
    SRC.POLYCUSTOM 100 0 150 // Fuerza, Destreza, Intelegicencia 
    ENDIF
    IF <TAG0.PolySTR> || <TAG0.PolyDEX> || <TAG0.PolyINT>
    MODSTR += <TAG.PolySTR>
    MODDEX += <TAG.PolyDEX>
    MODINT += <TAG.PolyINT>
    ENDIF
    
    [FUNCTION POLYCUSTOM]
    TAG.PolySTR <argn1>
    TAG.PolyDEX <argn2>
    TAG.PolyINT <argn3>

    En el sphere_item_magic_magery.scp o donde este el DEFNAME=i_rune_polymorph

    Código:
    [ITEMDEF 020b7]
    DEFNAME=i_rune_polymorph
    NAME=polymorph
    TYPE=t_spellicon
    on=@destroy
    IF <cont.TAG0.PolySTR> || <cont.TAG0.PolyDEX> || <cont.TAG0.PolyINT>
    cont.modstr -= <cont.TAG.PolySTR>
    cont.moddex -= <cont.TAG.PolyDEX>
    cont.modint -= <cont.TAG.PolyINT>
    cont.TAG.PolySTR
    cont.TAG.PolyDEX
    cont.TAG.PolyINT
    ENDIF
    CATEGORY=Spell Icons
    SUBSECTION=Magery Seventh Circle
  3. 04-Jan-2015 20:08
    Admin UA-Sphere
    Arreglado.

    Gracias por la idea.

    Para obtener las STATS hemos accedido a la información global de los npcs. Stats que varian con cada reinicio del servidor (pues son variables) pero que nos sirven como referencia para no tener que ir npc por npc indicando cuales han de modificarse y con qué valor.

    Para que te hagas una idea:

    Código:
    TAG.STR_POLY=<EVAL <SERV.CHARDEF.<ACTARG2>.STR>-<STR>>
    TAG.INT_POLY=<EVAL <SERV.CHARDEF.<ACTARG2>.INT>-<INT>>
    TAG.DEX_POLY=<EVAL <SERV.CHARDEF.<ACTARG2>.DEX>-<DEX>>
+ Responder

YoutubeFbChat IRCTwit