Jump to content
  • 0
JHONDOMINIC

Can i change NPC to mob via mob_id?

Question

I try to random spawn monster by random mob_id store [email protected] and then want to change Test npc to

prentera,155,155,4     script     Test     [email protected],{

Above just for my question explain and want to know have any way to change npc to monster by mob_id.

Sorry for my English.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

@JHONDOMINICU can trigger a label at the specified npc and use setnpcdisplay(); like @cook1esaid. Like the disguise event does.

setnpcdisplay "Test",1002;

 

Rynbef~

Edited by Rynbef
  • MVP 1
Link to comment
Share on other sites

  • 0
50 minutes ago, JHONDOMINIC said:

I try to random spawn monster by random mob_id store [email protected] and then want to change Test npc to

prentera,155,155,4     script     Test     [email protected],{

Above just for my question explain and want to know have any way to change npc to monster by mob_id.

Sorry for my English.

this is kinda hilarious, you just need to put the monster id in the view data. as far of my understanding, this won't work, because we store the variable data inside the NPC script it self, which is writed after the open bracket and view data isn't part of the NPC Script.

unless you create NPC to store the global variable data ($variable) and using it the way you do. but, i never tested it my self.

Ex:

-	script	variable#test	-1,{
OnInit:
	$mobspawn = 1002;
	end;
}

prontera,155,155,3	script	Test	$mobspawn,{
	mes "Hello World!";
	close;
}

maybe this won't work either xD but hope you get my point. CMIIW.

Link to comment
Share on other sites

  • 0
On 1/31/2022 at 1:33 PM, Rynbef said:

@JHONDOMINICU can trigger a label at the specified npc and use setnpcdisplay(); like @cook1esaid. Like the disguise event does.

setnpcdisplay "Test",1002;

 

Rynbef~

Thank you so much and everybody sorry for late answer.

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...

Important Information

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