SphereServer BugTracker - SphereServer
View Issue Details
0002297SphereServerexecutable - windows buildpublic28-03-14 00:4009-05-14 18:53
Coruja 
XuN 
normalminoralways
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
None
1809
0002297: @[Fame/Karma]Change is called even when there's no value to change
I dont know if it's really a bug, but @FameChange / @KarmaChange triggers are called even when the fame/karma changed value is 0.
So there's nothing to change on fame/karma but the trigger is called anyway
An easy way to test this is add this event on player and kill some monsters which has FAME=0 or KARMA=0

[EVENTS e_test]
ON=@FameChange
SYSMESSAGE Fame changed: <ARGN1>

ON=@KarmaChange
SYSMESSAGE Karma changed: <ARGN1>
No tags attached.
Issue History
28-03-14 00:40CorujaNew Issue
28-03-14 10:00matexNote Added: 0002011
28-03-14 10:01matexNote Edited: 0002011bug_revision_view_page.php?bugnote_id=0002011#r586
28-03-14 10:01matexAssigned To => matex
28-03-14 10:01matexStatusnew => feedback
28-03-14 17:34CorujaNote Added: 0002015
28-03-14 17:34CorujaStatusfeedback => assigned
09-05-14 18:53XuNNote Added: 0002167
09-05-14 18:53XuNStatusassigned => resolved
09-05-14 18:53XuNFixed in Version => 0.56c Nightly
09-05-14 18:53XuNResolutionopen => fixed
09-05-14 18:53XuNAssigned Tomatex => XuN

Notes
(0002011)
matex   
28-03-14 10:00   
(edited on: 28-03-14 10:01)
I dont consider this a real bug. The trigger fires when someone accesses some Stat for writing. You can calculate <argn3> - <argn2> and see what happens.

(0002015)
Coruja   
28-03-14 17:34   
I already fixed on script here, just reported because I think it doesnt make sense fire a trigger for -fame/karma change- if there's no fame/karma being changed. Not really a bug, but doesnt make sense :P

ON=@FameChange
IF (<ARGN1> != 0)
 SRC.something
ENDIF
(0002167)
XuN   
09-05-14 18:53   
Fixed it.