Jump to content
  • 0
SaltyMoose

Instance problem

Question

I'm updating an old script to hercules format. I'm running into a problem as the instance isn't created. Snippet below:

set .@md_name$,"Faceworm's Nest";
set .@party_id,getcharid(1);
set .@instance, instance_create(.@md_name$, getcharid(1));
debugmes "InstanceID: " + .@instance;
if (.@instance < 0) 
{
  if(.@instance == -3)
  {
	dispbottom "Memorial Dungeon, '"+.@md_name$+"' is already in progress.",0xFFFFFF;
  }
  else
  {
	mes "[Magic Scholar]";
	mes "Opps, my hands are slip off. It is required to activate the craks again.";
	close;
  }
}
debugmes "Instance Map " + instance_attachmap("1@face", .@instance);
if( instance_attachmap("1@face", .@instance) == "" )
{
	mes "[Magic Scholar]";
	mes "Opps, my hands are slip off. It is required to activate the craks again.";
	instance_destroy(.@instance);
	close;
}
instance_init(.@instance);

close;

The instance Id gave me 0 so unless that is not valid, I don't know what went wrong. Did I forget to do something?

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.