Issue Information
-
#008204
-
0 - None Assigned
-
Unable To Reproduce
Issue Confirmations
-
Yes (0)No (0)
OnInit: setmapflag "<instance map>",<any mapflag>; end;when player enter the instance map .... do @reloadscript
use @mapinfo check ..... the mapflag gone....
mapflag is removed in duplicated instance maps....but remain in the original map that used for instance script.
I tried to reproduce this issue using the following script:
id = instance_create("testing", getcharid(1)); instance_attachmap("prontera", id, 1, "test_prt"); instance_init(id); warp "test_prt", 150,150; end; OnInit: setmapflag "prontera",mf_nosave; end;I used @mapinfo when warped, then used @reloadscript, then I warped back to the instance and all information was correct. Could you please provide more information on how to reproduce this issue? Thank you.
changed status to: Unable To Reproduce
as you can see from the image ....
after @reloadscript ...
the mapflag for both nomobloot and nomvploot gone...
both mapflag are set may script during @reloadscript using OnInit + setmapflag()
i think i found the problem source.... it's because setmapflag() isnt triggered yet when OnInstanceInit run so the mapflag isnt activated yet when the instance is reloaded.
to solve it..we have to add a minor delay for OnInstanceInit so that OnInit can initiate all the settings before OnInstanceInit run and reload the instance.
to solve it..we have to add a minor delay for OnInstanceInit so that OnInit can initiate all the settings before OnInstanceInit run and reload the instance.