Hello! I have problem. When a player is alive for 12 hours does not lose at all experience. How can I disable this 'time' to always lose experience or modify the time after which the player lost xp?
ZLevelsRemastered
Moved
Total Downloads: 41,383 - First Release: Nov 15, 2015 - Last Update: Jul 22, 2018
- 5/5, 127 likes
-
@Wookie i'll post you my code once I Come back home. The way it works is that when a player is alive for less than 10 minutes he doesn't lose XP. When he is alive for more he'll start to lose XP based on what you have set in the config file. Then if the player is alive for more than 1 hour he will be losing 1 less percent per hour alive.
Exemple#1: Player alive for 5 hours and penalties set to 100%. He will lose 95% on death.
Example#2: Player alive for 25 hours ans penalties set to 75%. He will lose 50% on death.
N.B: Time alive continue even if you are logged off. -
Oh, okey, its better than what it is now.
-
Here's the line you need to edit to make it work like described above; lines 1424-1431
Code:if (timeAlive.TotalMinutes > 10) { penaltyPercent = ((int)percentLostOnDeath[skill] - ((int)timeAlive.TotalHours * (int)percentLostOnDeath[skill] / 10)); if (timeAlive.TotalHours > 1) penaltyPercent = ((int)percentLostOnDeath[skill] - (int)timeAlive.TotalHours); else if (timeAlive.TotalHours >= (int)percentLostOnDeath[skill]) penaltyPercent = 0; }
-
-
read page 14&15. This question has been already answered.
-
you can tell me how to do it? -
@ lines 907-983 you can edit FillElements() function to edit elements of the UI.
There's no better way to learn than to try some random values and see what it changes. -
How do I transfer a file ZLevelsRemasteredData figures in the DB ?
-
All the levels work properly except the Crafting it is stuck at level one 87%... How do I fix this?
-
Just installed this plugin, looks like I'm not using any experience when I die (tried drowning and using f1-kill)
Is this limited to player kills only?
[DOUBLEPOST=1453623155][/DOUBLEPOST]I've checked the code and realized that this is due to a few lines which stops players lose exp.before the first 10 minutes of their death. This is fine.
However I've also realized that, even if I set the penalty values (all four of them) to 100 in the config file, I only use a portion of the experience, not thre whole. (death on 11th minute)
Looking for a solution. -
@Axy you should give a try to the code I postes yesterday
-
How do you reset all levels for everyone?
-
The allignment of all the small containers are completely off when I use this plugin don't have a clue why kind of works if i change the RenderUI method to just return. Please have a look it makes the small furnace unusable
-
The commands to give Level don't work ?
-
any plans to add a quarry multiplier or tickrate adjustement to quarries, as to make this plugin a all in one gather manager, no scaling with levels but just a quarry control, i am trying to figure out how to adjust quarry tickrates without another gather plugin running parallel with ZLevels
thanks!
-
Is it possible to do this plugin similar to Gather Manager? I would like the players on a maximum 10 lvl of woodcuting had x2 multiplier but not specific value added (wood x2 not +X wood Units). I would increasing multiplier rather than adding. Is it possible to add such a future? For example: Adding is a big problem because on 10 lvl, the player will get +10 stones but also +10 HQM
.
Edit:// Sorry it works as multiplier not adding. No problem now!Last edited by a moderator: Jan 26, 2016 -
Hello guys! Today i have faced very strange error.
Code:[Oxide] 11:05 AM [Info] [Zeiser Levels REMASTERED] Trying to get [Лесоруб]. For player who's SteamID: [76561198020443783]. He is not on a user list yet? [Oxide] 11:05 AM [Error] Failed to call hook 'OnDispenserGather' on plugin 'ZLevelsRemastered v1.5.5' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 11:05 AM [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,System.Collections.Generic.Dictionary`2[System.String,System.Int64]].get_Item (UInt64 key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.getLevel (UInt64 userID, System.String skill) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.getExperiencePercentInt (.BasePlayer player, System.String skill) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.getExperiencePercent (.BasePlayer player, System.String skill) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.levelHandler (.BasePlayer player, .Item item, System.String skill) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.OnDispenserGather (.ResourceDispenser dispenser, .BaseEntity entity, .Item item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 xx.xx.xxx.144:63xxx/76561198118248583/ВОР-УБИЙЦА kicked: Steam: k_EAuthSessionResponseAuthTicketCanceled
Code:[Oxide] 11:05 AM [Info] [Zeiser Levels REMASTERED] Trying to get [Лесоруб]. For player who's SteamID: [76561198020443783]. He is not on a user list yet?
Hopefully waiting for help. Thank you!Last edited by a moderator: Jan 26, 2016 -
I found a bug. I have not played on the server for two days. (Time Alive: 2days). I was killed while I slept. After entering the server and respawning i dont lose my XP and i still have time alive 2 days. Please fix it as soon as possible.
-