As player challenges are not being updated in a while, I wanted to add some ranks that players could go hunt for. As I have never coded game plugins before, I still managed to get the most hacked crates as well for most items repaired.
So, as its still a challenge for me, coding itself doenst work for me. I, however, see more of patterns on how it goes ( just like old games with Pacman its pathing )
I know, coding on other people their plugins are not allowed. Therefore I would only use it as an "as is" plugin on the server and not spreading it.
As this is the following code ( 1 ), I changed it towards this ( 2 )
(1)
if (dispenser.gatherType == ResourceDispenser.GatherType.Ore && configData.ChallengeSettings[Challenges.RocksGathered].Enabled)
AddPoints(player, Challenges.RocksGathered, item.amount);
(2)
if (dispenser.gatherType == "metal.ore" && configData.ChallengeSettings[Challenges.RocksGathered1].Enabled)
AddPoints(player, Challenges.RocksGathered1, item.amount);
i'm not sure if this would be the correct way to do so, but if it does would work like this, then the rest would speak of itself. There is still a lot to be learned.
Merged postnothing?
Merged postDoes anyone else know what i could do best? Or is it everyone for themselves?