Jump to content
  • 0

Command return npc sprite id


CaioVictor

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   0
  • Joined:  05/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   0
  • Joined:  05/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

None script command return the class of the npc. You must make a source mod

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   0
  • Joined:  05/26/12
  • Last Seen:  

Ok! =\

 

Thanks for all your attention.

 

Att,

CaioVictor.

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