Vincent Posted September 29, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share Posted September 29, 2013 Hello, how can i make that a NPC spawns on a random location at a map? This make no error at the server but also dont work. quiz_01,0,0,0 script NPC 123,{ Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 30, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted September 30, 2013 my bad..it is missing a npc name parameter.. should be movenpc strnpcinfo(0),.@rand_x,.@rand_y; Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 29, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted September 29, 2013 try this http://upaste.me/r/867876 Quote Link to comment Share on other sites More sharing options...
Vincent Posted September 30, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted September 30, 2013 try this http://upaste.me/r/867876 Dont work: I changed (because of an error that say a argument is missing) movenpc .@rand_x,.@rand_y; to: movenpc .@rand_x,.@rand_y,5; And now geting this error: [Warning]: Unexpected type for argument 1. Expected string. [Debug]: Data: variable name='.@rand_x' index=0 [Debug]: Function: movenpc [Debug]: Source (NPC): Sample at prontera (155,181) [Debug]: Source (NPC): Sample at prontera (155,181) Quote Link to comment Share on other sites More sharing options...
Question
Vincent
Hello,
how can i make that a NPC spawns on a random location at a map?
This make no error at the server but also dont work.
Link to comment
Share on other sites
3 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.