Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vote system tag account?
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #11
RE: Vote system tag account?
You never need to eval multiple times:

<EVAL (<ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed>-<SERV.TIME>)/3600>
10-25-2012 02:33 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #12
RE: Vote system tag account?
(10-25-2012 02:33 PM)RanXerox Wrote:  You never need to eval multiple times:

<EVAL (<ACCOUNT.TAG0.TimeThatAnotherVoteIsAllowed>-<SERV.TIME>)/3600>

NICE! THANKS!

you are my heroes ranx and mordaunt! Smile

[Image: 2hy9q0y.png]
(This post was last modified: 10-25-2012 02:52 PM by Lazarus.)
10-25-2012 02:49 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Hayur
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0



Post: #13
RE: Vote system tag account?
I know this is pretty old, but when i use this, it will work only for 2 character, if i make a new character he will be able to vote too, the ACCOUNT.TAG0 should set the tag to the account no?
04-14-2015 03:53 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #14
RE: Vote system tag account?
What are you exactly using? Copy us the code so we can help, so much solutions were given here so we must know which one are you using.
04-14-2015 04:44 PM
Find all posts by this user Like Post Quote this message in a reply
Hayur
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0



Post: #15
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
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #16
RE: Vote system tag account?
I just added the vote function, typed it with one character and worked, then logged in with another character in the same account and I couldn't vote because of the tag.

May you have different versions of this function added in some other places?
04-14-2015 11:23 PM
Find all posts by this user Like Post Quote this message in a reply
Hayur
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0



Post: #17
RE: Vote system tag account?
apparently i fixed the code while i copied it here lol, sorry for the lost of time!
04-14-2015 11:55 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)