Drakiac Posted March 12, 2011 Author Share Posted March 12, 2011 I have scripted NPC's in EO and i was wondering how do you check the npcs location when you talk to him.I've tried this:```MapNpc(mapNum).Npc(mapNpcNum).Num```but It says mapNpcNum variable is not defined. I have all of this stored in a separate module called modQuest.bas, which is based off Richy's quest system.Thanks-Drakiac Link to comment Share on other sites More sharing options...
shadowwulf Posted March 12, 2011 Share Posted March 12, 2011 i believe itsnpc('use target to get npcnum').X and same for Y Link to comment Share on other sites More sharing options...
Drakiac Posted March 13, 2011 Author Share Posted March 13, 2011 I want to find the npcs map not its x-y coordinates… Link to comment Share on other sites More sharing options...
peekay Posted March 13, 2011 Share Posted March 13, 2011 Just curious… if your talking to him then u will know what map hes on anyway? Link to comment Share on other sites More sharing options...
zdearborn Posted March 13, 2011 Share Posted March 13, 2011 > mapNpcNum variable is not definedHm, then you haven't used Richy's code correctly..make sure mapNpcNum is a parameter in whatever sub you're using it in, or you have dimmed the variable and assigned to it the proper value Link to comment Share on other sites More sharing options...
Drakiac Posted March 13, 2011 Author Share Posted March 13, 2011 Oh my gosh… *facepalm*@peekay:> Just curious… if your talking to him then u will know what map hes on anyway? Link to comment Share on other sites More sharing options...
shadowwulf Posted March 13, 2011 Share Posted March 13, 2011 hence why i didnt even consider that… lol 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