CaioVictor Posted June 8, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 75 Reputation: 0 Joined: 05/26/12 Last Seen: November 27, 2013 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted June 8, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
CaioVictor Posted June 8, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 75 Reputation: 0 Joined: 05/26/12 Last Seen: November 27, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted June 8, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted June 8, 2013 None script command return the class of the npc. You must make a source mod Quote Link to comment Share on other sites More sharing options...
CaioVictor Posted June 9, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 75 Reputation: 0 Joined: 05/26/12 Last Seen: November 27, 2013 Author Share Posted June 9, 2013 Ok! =\ Thanks for all your attention. Att, CaioVictor. Quote Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.