Hayur 
Apprentice

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0
![]()
|
RE: Vote system tag account?
Code:
[FUNCTION vote]
IF (<ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed>==0) || (<ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed> < <SERV.TIME>)
SRC.SYSMESSAGE @0028,3,1 Thank you for your votes!! Please completes all the process!
WEBLINK sphereserver.net
ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed=<EVAL <SERV.TIME>+86400>
ELSE
SYSMESSAGE @0028,3,1 You are not allowed to vote for another <EVAL(<ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed>-<SERV.TIME>)/3600> hours.
ENDIF
and in player event:
Code:
IF (<eval <serv.time>-<src.account.tag0.TimeThatAnotherVoteIsAllowed>/10> > 86400)
src.account.tag0.TimeThatAnotherVoteIsAllowed=
endif
Everything is fine, except that the tag0 is applied only to the character, when the user switch to an other character he can use the .vote command too and get his own timer too. Something i did wrong ? (i'm using sphere 56b but i tried many 56b/56c and i got the same problemes with all of them)
|
|
04-14-2015 09:51 PM |
|
|