ToiletMaster Posted February 18, 2013 Group: Members Topic Count: 76 Topics Per Day: 0.02 Content Count: 276 Reputation: 7 Joined: 08/11/12 Last Seen: January 26, 2018 Share Posted February 18, 2013 Hi guys, This is a funny request as... currently if let's say you're 5 cells away from the NPC. It'll state "you're not close enough" but once you're 5 cells within the npc, it'll state something else. Is it possible to make this up? Thanks! Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 18, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 18, 2013 try this getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 ); getmapxy( .@player_map$,.@player_x,.@player_y,0 ); if( distance( .@npc_x,.@npc_y,.@player_x,.@player_y ) > 5 ){ mes "You are 5 cells away..come closer."; }else{ mes "You are near to me.."; } close; refer getmapxy , distance Quote Link to comment Share on other sites More sharing options...
Question
ToiletMaster
Hi guys,
This is a funny request as... currently if let's say you're 5 cells away from the NPC.
It'll state "you're not close enough"
but once you're 5 cells within the npc,
it'll state something else.
Is it possible to make this up? Thanks!
Link to comment
Share on other sites
1 answer 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.