hydro_ran Posted June 18, 2018 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 05/31/18 Last Seen: August 27, 2018 Share Posted June 18, 2018 Hello, I tried making an NPC move. It worked on a smaller scale but once I transferred it to another, bigger map, it stopped moving. Any luck? Quote odin_tem03,276,236,3 script Valkyrie Eir 1751,{ mes "Hello"; close; OnInit: set $valk_walkx,rand(100,299); //random x on map set $valk_walky,rand(100,230); //random y on map startnpctimer; npcspeed 200; end; OnTimer2000: npcwalkto $valk_walkx, $valk_walky; end; OnTimer10000: npcwalkto $valk_walkx, $valk_walky; end; OnTimer13000: stopnpctimer; initnpctimer; end; } I want it to move all over the map like a normal mob. Thanks Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 18, 2019 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 August 18, 2019 you need to reset the destination coordinate so that it could keep re-roll a new destination. odin_tem03,276,236,3 script Valkyrie Eir 1751,{ mes "Hello"; close; OnInit: npcspeed 200; OnTimer13000: set $valk_walkx,rand(100,299); //random x on map set $valk_walky,rand(100,230); //random y on map initnpctimer; end; OnTimer2000: OnTimer10000: npcwalkto $valk_walkx, $valk_walky; end; } Quote Link to comment Share on other sites More sharing options...
0 PsyOps Posted July 1, 2019 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 150 Reputation: 12 Joined: 12/03/18 Last Seen: Saturday at 08:56 PM Share Posted July 1, 2019 You need to check the coordinates of that map.set $valk_walkx,rand(100,299); //random x on map the x coordinate might not be the same as the other map. You need to define where it really goes. Quote Link to comment Share on other sites More sharing options...
Question
hydro_ran
Hello, I tried making an NPC move. It worked on a smaller scale but once I transferred it to another, bigger map, it stopped moving. Any luck?
I want it to move all over the map like a normal mob. Thanks
Link to comment
Share on other sites
2 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.