Author Topic: Random Spawning chests?  (Read 324 times)

Legacy_Starbridge

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Random Spawning chests?
« on: January 14, 2011, 05:17:17 am »


               Anyone know how to script chests that randomly spawn on an "X" timer on marked waypoints?  I just got done looking for one and was unable to locate something.  I tried looking for 'randomly spawning chests', 'random spawning chests', 'random chests', 'spawning chests', and all came out with nothing.  Any hints or someone able to make one?

I'm thinking the random chest wouldnt be so random in loot, only in placement.  I would want to make sure items I dont want in them dont show up.  Any ideas?  Maybe after "X" time it will despawn and respawn somewhere else?  So chests dont stack and lag server.  Possible?
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Random Spawning chests?
« Reply #1 on: January 14, 2011, 07:05:31 pm »


               It is possible to do all that but I have some questions. Is the amount of time between chest spawning random or do you have a specific time interval in mind? Are the waypoints for the possible spawn location in different areas or different locations in the same area?



-420
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Random Spawning chests?
« Reply #2 on: January 14, 2011, 09:07:37 pm »


               There is a lot of different ways to do this. Can you give a bit more what you want?
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Random Spawning chests?
« Reply #3 on: January 15, 2011, 12:25:29 am »


               Sort of on point.  I made a treasure map which will guide a player to a treasure chest in an area, based on an int Treasure set to 1 in the area.  Each chest in each area will only spawn once for any one single player.  So say you had 10 areas so designated.  Any player would only be able to recover 10 chests total, and no one in any one area more than once.
               
               

               
            

Legacy_Starbridge

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Random Spawning chests?
« Reply #4 on: January 15, 2011, 03:19:35 am »


               

420 wrote...

It is possible to do all that but I have some questions. Is the amount of time between chest spawning random or do you have a specific time interval in mind? Are the waypoints for the possible spawn location in different areas or different locations in the same area?

-420


Well.  A long time ago I played on this really cool server.  Gone now, but oh well.  Anyway, he had a script that a chest would randomly spawn every 5 minutes--as long as there was no chest on the floor--in a zone in places I'm guessing he had waypoints.  He also had a script that made the loot inside somewhat random if I remember correctly, when the chest popped, it would have 1 of 3 items inside.  A randomly size stack of gold, 1-3 healing pots or 1 special item that was like a Tresure Token or something like that.
               
               

               


                     Modifié par Starbridge, 15 janvier 2011 - 03:24 .
                     
                  


            

Legacy_Starbridge

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
Random Spawning chests?
« Reply #5 on: January 15, 2011, 03:21:42 am »


               *EDIT *
               
               

               


                     Modifié par Starbridge, 15 janvier 2011 - 03:21 .