Do you want separate delays per rank?im using DonatorRank and HomeSystem.
How to can i down VIP home delay
If you want to support this in your HomeSystemWhat should I do?
You want it so player have to wait 5minutes before teleport? Or is that the cooldown?Players home teleport time 5 minute
Vip home teleport time 3 minute
Which datastore table should I check?If you want to support this in your HomeSystem
You want it so player have to wait 5minutes before teleport? Or is that the cooldown?
I'd have to add the option, I'll let you know when I've finishedWhich datastore table should I check?
Sent From My Samsung Galaxy S4
Replace DonatorRankCheck() with:Which datastore table should I check?
Sent From My Samsung Galaxy S4
def DonatorRankCheck(self, type, id):
if type == "MaxHomes":
if DataStore.Get("DonatorRank-MaxHomes", id) is not None:
maxh = DataStore.Get("DonatorRank-MaxHomes", id)
return maxh
else:
config = self.HomeConfig()
maxh = config.GetSetting("Settings", "Maxhomes")
return maxh
elif type == "CoolDown":
if DataStore.Get("DonatorRank-Cooldown", id) is not None:
CoolDown = DataStore.Get("DonatorRank-Cooldown", id)
return CoolDown
else:
config = self.HomeConfig()
CoolDown = int(config.GetSetting("Settings", "Cooldown"))
return CoolDown
elif type == "TpDelay":
if DataStore.Get("DonatorRank-TpDelay", id) is not None:
TpDelay = DataStore.Get("DonatorRank-TpDelay", id)
return TpDelay
else:
config = self.HomeConfig()
TpDelay = int(config.GetSetting("Settings", "tpdelay"))
return TpDelay
cooldown = self.DonatorRankCheck("CoolDown", id)
tpdelay = self.DonatorRankCheck("TpDelay", id)
maxh = self.DonatorRankCheck("MaxHomes", id)
Player.Message("Time remaining: " + str(datetime.timedelta(0, (cooldown / 1000) - (calc / 1000))))
What do you mean by random not getting imported?Also your Random module is not being imported, Plus the waitime is always 0.0/0.0
For waittime i recommend importing datetime and replaceing Line #484 - 486, With:
which will Print SEVRERNAME: HH:MM:SSPython:Player.Message("Time remaining: " + str(datetime.timedelta(0, (cooldown / 1000) - (calc / 1000))))
import random isn't being loaded, I didn't try without a Try/Catch.What do you mean by random not getting imported?
I could import It. Do you have the extralibs?import random isn't being loaded, I didn't try without a Try/Catch.
I added Util.Log("hdsbf4t") just before the pass in the except to see if datetime loaded.
EDIT:
[IPModule] HomeSystem plugin could not be loaded.
ImportException: No module named random
Yep, Save/LibI could import It. Do you have the extralibs?
Sent From My Samsung Galaxy S4
Dunno. I can import random on my serverYep, Save/Lib
I imported datetime just fine