Aeon Trag Posted August 9, 2009 Author Share Posted August 9, 2009 On death is there a way to get the map npc number or the index npc number???? if so whats the script?Thanks Link to comment Share on other sites More sharing options...
Diskmaster Posted August 10, 2009 Share Posted August 10, 2009 If NpcNum=### ThenI think that should check if a cirtain NPC dies (with u on the map) it will run the script under it (changing the ### to whatever NPC u want it to react to) I could be wrong, but I don't think I am. Link to comment Share on other sites More sharing options...
Owen F Posted August 11, 2009 Share Posted August 11, 2009 Diskmaster J, you are indeed correct.This runs from the order in which the NPC's are madetherefor the fifth NPC you make using NPC editor will be If NPCNum = 5 Then*run scripts* Link to comment Share on other sites More sharing options...
Diskmaster Posted August 11, 2009 Share Posted August 11, 2009 so,```Sub OnNPCDeath(index)If NPCNum= ### ThenCall PlayerMsg(index, "you just killed a-NPCNAMEHERE-on map"& GetPlayerMap(index)&"!", BRIGHTBLUE)End If```Starting from the If part, paste that under your sub OnNPCDeath(index) and change the NPC number to whatever # it is on the NPC editor and change -NPCNAMEHERE- to whatever the name of the NPC is like slime or whatever (you don't NEED the - - marks, they were just there to show u what section I was talking about and, you actually could get some sort of error if u keep them in because they are used as a minus sign in sadscript, I really hope this is what u wanted and if it isn't, then I can edit it! Link to comment Share on other sites More sharing options...
Aeon Trag Posted August 17, 2009 Author Share Posted August 17, 2009 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now