Increasing how many times a player can loot a wreck?
-
You’ve seen it done before? Do you remember where?
[d]You can only loot a wreck once per character. That is hardcoded.[/d]
In a player’s character file, there’s a list of all the places visited, and this includes wrecks looted, I believe. If you could keep the server from making/saving that entry, you’d be able to loot a wreck as many times as you wanted. Unfortunately, I don’t know of anyone who has done this.
-
From the old TLR files:
visit = 16 ;a value of 16 is a “normal” wreck…each player can loot only once…set to 0 if you want them to regenerate
Here is the whole thread:
[d]http://www.the-starport.net/archive/view…t=loot+creation[/d]
We have this working just fine in the UnderVerse. A player can loot a wreck once until the 8 hour restart, then they can loot it again.
edit…that link was on the old Starport, you would have to find where it is now.
Ogu wrote:
In a player’s character file, there’s a list of all the places visited, and this includes wrecks looted, I believe. If you could keep the server from making/saving that entry, you’d be able to loot a wreck as many times as you wanted. Unfortunately, I don’t know of anyone who has done this.If you already have players with this entry in their file then changing it to visit = 0 may not magically allow them to loot again. This would be a new player or a new mod. Just to make you aware of that while you test.
-
Ogu wrote:
You can only loot a wreck once per character. That is hardcoded.
Er, no it’s not. Just echoing Dwn’s comment really as he’s correct with what he says. Visit=16 has always been the line that defines a wreck to be be looted once only. Visit=0 removes the restriction which again is what Dwn said. Just thought i’d back him up on tis lol. It’s early and i just got up
-
I was just going to reply with almost the same thing Gibbon just wrote…
The wrecks in the vanilla Omicron Beta use this code, you can loot them as many times as you please, so long as somebody hasnt had them first! lol
-
Gibbon wrote:
Ogu wrote:
You can only loot a wreck once per character. That is hardcoded.
Er, no it’s not. Just echoing Dwn’s comment really as he’s correct with what he says. Visit=16 has always been the line that defines a wreck to be be looted once only. Visit=0 removes the restriction which again is what Dwn said. Just thought i’d back him up on tis lol. It’s early and i just got up
Oh man, now I remember reading that too It’d be nice to have a brain that remembers things!