SphereServer BugTracker - SphereServer
View Issue Details
0002132SphereServerexecutable - genericpublic03-02-13 15:5016-10-13 02:44
babidi 
RanXerox 
normalminoralways
closedfixed 
20-09-2009, 0.56b Prerelease 
 
Not Available
None
None
0002132: maxSTAT working bad with sphells and potions
if you set maxmana+2 bonus for a weapon on equip and then bless you the mana will be stuck on the bonus without bless effect, also if you then unequip the item with maxmana-2 the stat will be stucked on that value not raising or decrease with spell like curse or bless

i think best way to resolve this is improving modmaxSTAT

of course making bless and curse have effect on maxSTAT also can be a way but you left a hole on ho like to mantain fixed stats
No tags attached.
Issue History
03-02-13 15:50babidiNew Issue
22-03-13 22:01RanXeroxNote Added: 0001516
22-03-13 22:01RanXeroxNote Added: 0001517
22-03-13 22:01RanXeroxAssigned To => RanXerox
22-03-13 22:01RanXeroxStatusnew => feedback
16-10-13 02:44RanXeroxNote Added: 0001732
16-10-13 02:44RanXeroxStatusfeedback => closed
16-10-13 02:44RanXeroxResolutionopen => fixed

Notes
(0001516)
RanXerox   
22-03-13 22:01   
We need more details on how to reproduce this problem... on my server this seems to work fine by using the following event on the equipable item, then setting the appropriate TAG on that item:

[EVENTS e_equipitem]
ON=@Equip
   IF (<TAG0.HITS>)//hitpoint increase
      SRC.MODMAXHITS <TAG0.HITS>
   ENDIF
   IF (<TAG0.STAMINA>)//stamina increase
      SRC.MODMAXSTAM <TAG0.STAMINA>
   ENDIF
   IF (<TAG0.MANA>)//mana increase
      SRC.MODMAXMANA <TAG0.MANA>
   ENDIF
ON=@UnEquip
   IF (<TAG0.HITS>)//hitpoint increase
      SRC.MODMAXHITS -<TAG0.HITS>
   ENDIF
   IF (<TAG0.STAMINA>)//stamina increase
      SRC.MODMAXSTAM -<TAG0.STAMINA>
   ENDIF
   IF (<TAG0.MANA>)//mana increase
      SRC.MODMAXMANA -<TAG0.MANA>
   ENDIF

[FUNCTION MODMAXHITS]
LOCAL.Results=<EVAL <ARGS>>
IF (<ISEMPTY <ARGS>>)
   RETURN <EVAL <TAG0.MODMAXHITS>>
ELSE
   TAG.MODMAXHITS=<EVAL <TAG0.MODMAXHITS>+<LOCAL.Results>>
   IF !(<TAG0.MODMAXHITS>)
      TAG.MODMAXHITS=
      MAXHITS=
   ELSE
      MAXHITS=<EVAL <MAXHITS>+<LOCAL.Results>>
   ENDIF
ENDIF

[FUNCTION MODMAXSTAM]
LOCAL.Results=<EVAL <ARGS>>
IF (<ISEMPTY <ARGS>>)
   RETURN <EVAL <TAG0.MODMAXSTAM>>
ELSE
   TAG.MODMAXSTAM=<EVAL <TAG0.MODMAXSTAM>+<LOCAL.Results>>
   IF !(<TAG0.MODMAXSTAM>)
      TAG.MODMAXSTAM=
      MAXSTAM=
   ELSE
      MAXSTAM=<EVAL <MAXSTAM>+<LOCAL.Results>>
   ENDIF
ENDIF

[FUNCTION MODMAXMANA]
LOCAL.Results=<EVAL <ARGS>>
IF (<ISEMPTY <ARGS>>)
   RETURN <EVAL <TAG0.MODMAXMANA>>
ELSE
   TAG.MODMAXMANA=<EVAL <TAG0.MODMAXMANA>+<LOCAL.Results>>
   IF !(<TAG0.MODMAXMANA>)
      TAG.MODMAXMANA=
      MAXMANA=
   ELSE
      MAXMANA=<EVAL <MAXMANA>+<LOCAL.Results>>
   ENDIF
ENDIF
(0001517)
RanXerox   
22-03-13 22:01   
Need steps to reproduce...
(0001732)
RanXerox   
16-10-13 02:44   
Closing since no new information seems to be forthcoming...