Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

Issue Confirmations

  • Yes (0)No (0)
Photo

instance map's mapflag gone upon @reloadscript

Posted by Emistry on 17 May 2014 - 02:59 PM

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.

pan 
changed status to: Unable To Reproduce

Posted Image

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.