• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

reseting storage in action script

Pokurwieniec

New Member
Joined
Feb 1, 2016
Messages
43
Reaction score
1
guys I need help
I have in npc storage for 1 minute:
Code:
doPlayerSetStorageValue(cid, 17543, os.time() + 1 * 60)
and here is check if already have
Code:
(getPlayerStorageValue(cid, 17543) > os.time())

working fine but how to implement this to action script onuse
Code:
(getPlayerStorageValue(cid, 17543) == 1)
- teleporting fine but after 1 minute it still teleporting so storage is not removed

even with
Code:
getPlayerStorageValue(cid,17543) == -1  then doCreatureSay(cid,"too late.")

what's wrong?
 
I don't know how it's calculating here
1 hour 60 * 60 ?
1 day 24 * 60 ? no doesn't make sense xd
You didn't answer my question lol everybody knows that 7days is a week etc
We'll I guess you don't :p
60 seconds * 60 minutes = 1 hour
60 seconds * 60 minutes * 24 hours = 1 day
60 seconds * 60 minutes * 24 hours * 7 days = 1 week
60 seconds * 60 minutes * 24 hours * 7 days * 52 weeks = 1 year
etc..
 
We'll I guess you don't :p
60 seconds * 60 minutes = 1 hour
60 seconds * 60 minutes * 24 hours = 1 day
60 seconds * 60 minutes * 24 hours * 7 days = 1 week
60 seconds * 60 minutes * 24 hours * 7 days * 52 weeks = 1 year
etc..
I still don't understand your kinds of replys you don't talking straight beat about the bush very weird...
if 1 minute is 1 * 60 in this schema and you saying some bullshits like 60 seconds * 60 minutes = 1 hour wtf is this are you retarted or something?
 
I still don't understand your kinds of replys you don't talking straight beat about the bush very weird...
if 1 minute is 1 * 60 in this schema and you saying some bullshits like 60 seconds * 60 minutes = 1 hour wtf is this are you retarted or something?
Lets learn Math today.

Quoting @Codex NG here.. but adding brackets.
60 (seconds) * 60 (minutes) = 1 hour
60 (seconds) * 60 (minutes) * 24 (hours) = 1 day
60 (seconds) * 60 (minutes) * 24 (hours) * 7 (days) = 1 week
60 (seconds) * 60 (minutes) * 24 (hour)s * 7 (days) * 52 (weeks) = 1 year
etc..
 
I still don't understand your kinds of replys you don't talking straight beat about the bush very weird...
if 1 minute is 1 * 60 in this schema and you saying some bullshits like 60 seconds * 60 minutes = 1 hour wtf is this are you retarted or something?
OK... I'll stop "beating around the bush"
Look asshole...
 
Back
Top