Jump to content
  • 0

Exp Rest script issue


Aaeria

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  06/02/17
  • Last Seen:  

b8dd45e783993fb0021b3ecd3ac7a173.png

Not exactly sure what's up, I'm new to scripting

 

Edit: Solved. If someone got same error, you need to uncomment a function at the top. Sorry, I missed it. feel dumb now haha

Edited by Aaeria
Solved
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

20 minutes ago, Aaeria said:

b8dd45e783993fb0021b3ecd3ac7a173.png

Not exactly sure what's up, I'm new to scripting

 

I don't know what is epoch_time probably its Time2Str

dispbottom "[EXP Reset System]: You have accumulated "+ F_InstertComma( #EXP_RESET_BASE ) +" / "+ F_InsertComma( #EXP_RESET_JOB) +" EXP. ("+ epoch_time( .@gettimetick) +")";

Try this one.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  06/02/17
  • Last Seen:  

Still got the same error, weird ;|

edit: Emistry is the creator of this script

Edited by Aaeria
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

25 minutes ago, Aaeria said:

Still got the same error, weird ;|

edit: Emistry is the creator of this script

can you post the error pls?

Try this:

dispbottom "[EXP Reset System]: You have accumulated "+ F_InstertComma( #EXP_RESET_BASE ) +" / "+ F_InsertComma( #EXP_RESET_JOB) +" EXP: "+ epoch_time( .@gettimetick );

 

Edited by Kaze
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  06/02/17
  • Last Seen:  

b88b151f4d6bad3a0c73a0a2b7f0c73d.png

Same error, :|

Sorry I don't think I can, this is a paid script. I also notified Emistry of this topic

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

4 minutes ago, Aaeria said:

b88b151f4d6bad3a0c73a0a2b7f0c73d.png

Same error, :|

Sorry I don't think I can, this is a paid script. I also notified Emistry of this topic

I'm sorry, I cannot help you with this without the whole script that I can take a looked.
does EXP_RESET_BASE is a functions or something?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

20 hours ago, Aaeria said:

I also notified Emistry of this topic

Next time, kindly drop a PM in forum instead.

 

Add the missing function ...

function	script	epoch_time	{
	.@time = getarg(0);
	.@hour = ( .@time / 3600 );
	.@min = ( .@time % 3600 ) / 60 ;
	.@sec = ( ( .@time % 3600 ) % 60 ) % 60;
	
	return sprintf( "%02d:%02d:%02d",.@hour,.@min,.@sec );
}

I added all these on top of each script that needed it most of the time.

Edited by Emistry
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...