CaioVictor Posted June 8, 2013 Posted June 8, 2013 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. Quote
Capuche Posted June 8, 2013 Posted June 8, 2013 This ? *getnpcid(<type>{,"<npc name>"});Retrieves IDs of the currently invoked NPC. If a unique npc name isgiven, IDs of that NPC are retrieved instead. Type specifies what IDto 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. Quote
CaioVictor Posted June 8, 2013 Author Posted June 8, 2013 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. Quote
Capuche Posted June 8, 2013 Posted June 8, 2013 None script command return the class of the npc. You must make a source mod Quote
CaioVictor Posted June 9, 2013 Author Posted June 9, 2013 Ok! =\ Thanks for all your attention. Att, CaioVictor. Quote
Question
CaioVictor
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.