SphereServer BugTracker - SphereServer
View Issue Details
0002245SphereServerexecutable - windows buildpublic22-11-13 18:1323-11-13 19:48
Coruja 
Ben 
normalminoralways
closedno change required 
 
 
Automated (specify build number)
None
None
0002245: "Undefined keyword 'Luck'" when delete the char/account
[ITEMDEF i_weapon_luck]
ID=i_katana
TEVENTS=t_weapon_props
TAG.Luck=100

[TYPEDEF t_weapon_props]
ON=@Equip
IF (<TAG0.STRBonus>)
 SRC.STR += <TAG0.STRBonus>
ENDIF
...
IF (<TAG0.Luck>)
 SRC.Luck += <TAG0.Luck>
ENIF

ON=@Unequip
IF (<TAG0.STRBonus>)
 SRC.STR -= <TAG0.STRBonus>
ENDIF
...
IF (<TAG0.Luck>)
 SRC.Luck -= <TAG0.Luck> //<-- line 666
ENIF


This item works fine, but if I delete the char/account (REMOVE 1 on char or "SERV.ACCOUNT lol DELETE" or "SERV.ACCOUNT UNUSED 666 DELETE") with this item equipped on the char being removed, it will return this console error:
02:29:ERROR:(lol.scp,666)Can't resolve <SRC.Luck>
02:29:ERROR:(lol.scp,666)Undefined keyword 'Luck'

Strangely all other properties (STR, DEX, INT, MAXHITS, etc) works fine, I get this error only on luck property
No tags attached.
Issue History
22-11-13 18:13CorujaNew Issue
23-11-13 19:48BenNote Added: 0001782
23-11-13 19:48BenStatusnew => closed
23-11-13 19:48BenAssigned To => Ben
23-11-13 19:48BenResolutionopen => no change required

Notes
(0001782)
Ben   
23-11-13 19:48   
this is caused by the fact that Luck is a player only property and when a char is not logged in, he is a char, not a player.
Simple way to do this is to do a simple ISPLAYER check in your script