Author Topic: Loot!  (Read 412 times)

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Loot!
« on: May 05, 2013, 03:05:51 pm »


               This is a bit complicated, and I am not sure how to do this at all. Though, I think it can be done. Brace yourselves, novice scripter is asking for assistance! Thanks for all the help the last couple of days.

What I want to do.
-Save items in a chest that will last over shutting the server down.
-When a loot chest is opened, it will spawn in one of those items as the loot, depending on a string variable on itself, which would be the tag of the chest that contains the loot to be spawned.
-Timer for the loot spawning.

Thank you so much, you have all been very helpful.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Loot!
« Reply #1 on: May 05, 2013, 07:37:07 pm »


               I think you're getting a bit ahead of yourself - let me explain.

What you're describing are the mechanics of how a system would work. This is not something you are ideally situated to figure out as a novice scripter. Instead, you should try to explain what it is you want your loot system to accomplish - that is - easy setup of loot handouts, timed release of loot, etc. Then, more experienced scripters could suggest various approaches that don't have a bunch of technical pitfalls.

What do I mean by technical pitfalls? Well, with the system you describe, you want to be able to load up the chest with loot, but you also need to open it to put loot in. The system would have to have a way to manage figuring out which operation you were interested in - likely by using GetIsDM, and would also have to have a way to deal with stuck chests.

Likely, someone has already coded and posted a system that will suit your needs pretty well. If you elaborate on your goals for the system, rather than focusing on the nuts-and-bolts, one of us should be able to either point you to such a system, or help you implement yours.

Funky
               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Loot!
« Reply #2 on: May 05, 2013, 09:32:23 pm »


               This kind of sounds like the XP1 Treasure System, which is...

Place some base chests for different rarities of loot in a restricted area of your module (the PCs won't have access to the area). Place containers around your module. When they are looted the script will spawn a treasure based on items in the base chests.
               
               

               
            

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Loot!
« Reply #3 on: May 05, 2013, 11:33:40 pm »


               That's pretty much what I desire, Pstemarie. The only thing I didn't see you mention was timing the loot, to ensure it can't be opened over and over for the loot. Is this the XP 1 Treasure System?

http://nwvault.ign.c....Detail&id=3069

EDIT: The chests don't save items over resets. Does anyone have a fix for that? Meaning, the items you put in the chests, that the loot chests randomly draw loot from.
               
               

               


                     Modifié par WhenTheNightComes, 05 mai 2013 - 11:26 .
                     
                  


            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Loot!
« Reply #4 on: May 07, 2013, 12:59:05 am »


               What I do is put a local on the PC that looted chest. Looted"TagofChest" to 1, and usually on a timer or just once per server reset, for that particular chest. It even tells the player it has been looted for that player only.
I did a treasure map system whereas you find the chest by using your map 15 meters this direction, then 5 meters... etc... I can usually find a hidden chest in 3-4 uses of the map. Once found the chest appears and will never appear in that particular area for that particular player again.  Just a digression for some the interesting things you can do with loot.
               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Loot!
« Reply #5 on: May 17, 2013, 06:10:21 pm »


               My 1.69 Treasure System is rather nice, and it can be as complicated as you wanna make it too...

nwvault.ign.com/View.php

For those who are interested, it even has my enchanting gem system in it...

Basically it's a custom treasure system, which is very easy to setup, and it even works off of variable(s) on the chest...

Works off a module time keeper, so absolutely NO DelayCommand lag from buildup of delays...
(bad idea for treasure system, had to learn this the hard way..)

Probably the best system you can get without building something extremely complex, but this one is pretty good...
               
               

               


                     Modifié par _Guile, 17 mai 2013 - 05:13 .