Issue information

Issue ID
#7329
Status
Fixed
Severity
None
Started
Angelmelody
Jun 6, 2013 16:58
Last Post
Ind
Jun 6, 2013 19:47
Confirmation
N/A

Angelmelody - Jun 6, 2013 16:58

this script alwyas crashes my server
[code=auto:0] - script test123 -1,{ end; OnInit: getmapxy (.@map$, .@x, .@y, 1); end; } [/code]

Xgear - Jun 6, 2013 17:58

You're trying to retrieve the coordinares of an NPC with no location and basically mapname is an empty string which the server didnt expect

Ind - Jun 6, 2013 19:43

Xgear is correct but this is not handled anyway, and it should

Ind - Jun 6, 2013 19:47

Fixed in [url="https://github.com/HerculesWS/Hercules/commit/6ff1728e17198fdba40f5edbee833ed500bf9ebc"]https://github.com/HerculesWS/Hercules/commit/6ff1728e17198fdba40f5edbee833ed500bf9ebc[/url]