Jump to content
  • 0

Question

Posted

Hi all ^^'

 

I have a question to the npc script, is there a command that returns the id of npc sprite?

Or is there some way to check the current npc sprite?

 

I'll be very grateful for any help.

 

Att,

CaioVictor.

4 answers to this question

Recommended Posts

Posted

This ?

*getnpcid(<type>{,"<npc name>"});

Retrieves IDs of the currently invoked NPC. If a unique npc name is
given, IDs of that NPC are retrieved instead. Type specifies what ID
to retrieve and can be one of the following:

    0 - Unit ID (GID)

If an invalid type is given or the NPC does not exist, 0 is returned.

Posted

Hi Capuche, thanks for answer ^^'

 

Not exactly, i want to know the sprite ID, as shown below:

map,x,y,1	script	My Name	465,{
    OnInit:
	announce "My sprite ID is 465!",bc_all;
    end;
}

But I do not know if there is a way to get the ID of the sprite =\

 

Anyway, thank you for helping me!

 

Att,

CaioVictor.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...