Issue information

Issue ID
#7833
Status
Fixed
Severity
None
Started
GrumpyPanda
Nov 18, 2013 2:06
Last Post
Ind
Nov 25, 2013 21:40
Confirmation
N/A

GrumpyPanda - Nov 18, 2013 2:06

1.) When using the optional parameters to attach a map to an instance

instance_attachmap("payon", .@instance, [b]1, "awesomemap"[/b]), it only works the first time someone creates an instance until server restart. (instance destroyed between tries)

[font=arial, helvetica, sans-serif]Attempts to[/font] create that instance again causes an error:[code=auto:0][Error]: instance_add_map: trying to create instanced map with existent name 'awesomemap'[Error]: buildin_instance_attachmap: instance creation failed (prontera): -2[/code]

awesomemap should get deleted from the map list when instance is destroyed.
(Would also be nice if it wasnt required to get a distinct variable for the parameter if theres an instance using "awesomemap" already and it would function like official instance maps 0011@def01-0021@def01)
(I personally feel like its easier/better/faster to just create an instance map client side as long as its required to do this.)

This post has been edited by GrumpyPanda on Nov 19, 2013 7:54

Ind - Nov 25, 2013 21:40

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