View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002245SphereServerexecutable - windows buildpublic22-11-13 18:1323-11-13 19:48
ReporterCoruja 
Assigned ToBen 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002245: "Undefined keyword 'Luck'" when delete the char/account
Description[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
TagsNo tags attached.
Nightly VersionAutomated (specify build number)
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0001782)
Ben (manager)
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

- Issue History
Date Modified Username Field Change
22-11-13 18:13 Coruja New Issue
23-11-13 19:48 Ben Note Added: 0001782
23-11-13 19:48 Ben Status new => closed
23-11-13 19:48 Ben Assigned To => Ben
23-11-13 19:48 Ben Resolution open => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker