Jump to content
  • 0

Instance help - instance not found?


Moooooon-Aisha

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

So I'm trying to make a few instances. First one I made, runs without any problems whatsoever. Second one has a really annoying bug that I can't seem to fix.

N1vkjJH.png

Any ideas? It says that the instance is created. But it's not recognizing the instance the announce is being called?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

1 minute ago, Disabled LOOLP said:

Intance or Instance ? ?

Pretty sure that one is generated via source error reporting so it must be a typo on their end.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

1 minute ago, Disabled LOOLP said:

"Intance is not found"

1@prt,1,1,0	script	PreInstance#ctl	123,{
end;
OnControl:
	sleep 1000;
	donpcevent instance_npcname("Prontera Knight#dum1::OnTalk");
	instance_announce 0,"1",1;

No typo on my end.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

1@prt,155,51,5	script	Captain#prelud	10180,6,6,{
	end;
OnTouch:
	'player = getcharid(3);
	message strcharinfo(0),"You will now be watching the battle between Adventurers and Baphomet!";
	sleep2 500;
	showscript "Troops! Let's head out!",getnpcid(0);
	sleep2 3000;
	warp instance_mapname("1@prt"),155,185;
	sleep2 1000;
	end;
	pre_instance = 1;
	donpcevent "PreInstance#ctl::OnControl";
end;
}

1@prt,152,49,5	script	Guard#prelu1	417,{
end;
}
1@prt,152,47,5	duplicate(Guard#prelu1)	Guard#prelu5	417
1@prt,152,45,5	duplicate(Guard#prelu1)	Guard#prelu6	417

1@prt,158,49,5	duplicate(Guard#prelu1)	Guard#prelu2	417
1@prt,158,47,5	duplicate(Guard#prelu1)	Guard#prelu3	417
1@prt,158,45,5	duplicate(Guard#prelu1)	Guard#prelu4	417

1@prt,1,1,0	script	PreInstance#ctl	123,{
end;
OnControl:
	sleep 1000;
	donpcevent "Prontera Knight#dum1::OnTalk";
	instance_announce 0,"1",1;
	sleep 600;
	donpcevent "Prontera Knight#dum2::OnTalk";
	instance_announce 0,"2",1;
	sleep 600;
	donpcevent "Prontera Knight#dum3::OnTalk";
	instance_announce 0,"3",1;
	sleep 600;
	donpcevent "Baphomet#dum4::OnTalk";
	instance_announce 0,"4",1;
	sleep 600;
	goto OnMonsterSpawn;
end;
OnMonsterSpawn:
	hideonnpc "Prontera Knight#dum1";
	hideonnpc "Prontera Knight#dum2";
	hideonnpc "Prontera Knight#dum3";
	hideonnpc "Baphomet#dum4";
	end;
	sleep 150;
	monster	instance_mapname("1@prt"),151,188,"Prontera Knight",1002,strnpcinfo(0)+"::OnGuardDeath";
	'pk_1 = $@mobid[1];
	monster instance_mapname("1@prt"),155,188,"Prontera Knight",1002,strnpcinfo(0)+"::OnGuardDeath";
	'pk_2 = $@mobid[1];
	monster instance_mapname("1@prt"),159,188,"Prontera Knight",1002,strnpcinfo(0)+"::OnGuardDeath";
	'pk_3 = $@mobid[1];
	monster	instance_mapname("1@prt"),156,192,"Baphomet",1003,strnpcinfo(0)+"::OnBaphoDeath";
	'bp_1 = $@mobid[1];
	sleep 50;
	unitattack 'pk_1,'bp_1;
	unitattack 'pk_2,'bp_1;
	unitattack 'pk_3,'bp_1;
	sleep 3000;
	unitattack 'bp_1,'pk_2;
	sleep 300;
	unitattack 'bp_1,'pk_3;
	sleep 300;
	unitattack 'bp_1,'pk_1;
end;
OnGuardDeath:
	'death++;
	if('death == 3){
		attachrid('player);
		warp "agogo",0,0;
		party_destroy(getcharid(1));
		instance_destroy;
	}
end;
OnBaphoDeath:
end;
}

/* dummies */
1@prt,151,188,5	script	Prontera Knight#dum1	123,{ 
end;
OnTalk:
	npctalk "This is it, we're the only remaining force...";
end;
OnAction:
	
end;
}
1@prt,155,188,5	script	Prontera Knight#dum2	123,{ 
end;
OnTalk:
	npctalk "At arms! We die today, so others can flee this terror!";
end;
OnAction:
end;
}
1@prt,159,188,5	script	Prontera Knight#dum3	123,{ 
end;
OnTalk:
	npctalk "Is the evacuation even finished? We must hold this demon back!";
end;
OnAction:
end;
}
1@prt,155,192,5	script	Baphomet#dum4	124,{ 
end;
OnTalk:
	npctalk "Insignificant fools! Do you really think you can stop me?!";
end;
OnAction:
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

I believe you missed putting the instance id? I dunno if putting 0 would work but if your instance id is not 0, i will really throw an error. The instance id created in the mapserver shown is 1..so... That may be the cause. 

*instance_announce <instance id>,"<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}

 

 

Personally i use mapannounce instead. It is easier and less confusing to use. Just call the instance map name and proper instance id. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

2 hours ago, Disabled LOOLP said:

instance defined in db/re/instance ?

Yes.

 

1 hour ago, Mabuhay said:

I believe you missed putting the instance id? I dunno if putting 0 would work but if your instance id is not 0, i will really throw an error. The instance id created in the mapserver shown is 1..so... That may be the cause. 

*instance_announce <instance id>,"<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}

 

 

Personally i use mapannounce instead. It is easier and less confusing to use. Just call the instance map name and proper instance id. 

*instance_announce <instance id>,"<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}};

Broadcasts a message to all players in the <instance id> currently residing on
an instance map. If 0 is specified for <instance id>, the instance the script
is attached to is used.

Everything usually defaults to the instance the script is attached.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...