I have a script that changes the list of items they sell every 4 hours, what I want it to do is make it teleport to random cities and announce where they are.
I could probably do it with an array with maps in it, but I'm wondering on how the X and Y coordinates would be static everytime they jump to a certain city.
Example:
NPC jumped to Prontera at 150, 150. That 150,150 is constant for the prontera map (hard-coded) NPC jumped to Payon at X,Y. Same as above, it would be constant. NPC jumped to Prontera again, now he will spawn at 150,150 again.
Question
PandaLovesHamster
I have a script that changes the list of items they sell every 4 hours, what I want it to do is make it teleport to random cities and announce where they are.
I could probably do it with an array with maps in it, but I'm wondering on how the X and Y coordinates would be static everytime they jump to a certain city.
Example:
NPC jumped to Prontera at 150, 150. That 150,150 is constant for the prontera map (hard-coded)
NPC jumped to Payon at X,Y. Same as above, it would be constant.
NPC jumped to Prontera again, now he will spawn at 150,150 again.
A small snippet would be okay for me, thank you.
Link to comment
Share on other sites
7 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.