Jump to content
  • 0

Question

Posted (edited)

i have downloaded the script of Rikimaru and how can i make it account base? not character base.

the Daily Reward NPC. here is the link Daily Reward NPC

i have tried to read the script that i have that has account base but still i have no luck.. ^^

Edited by v00m3r

3 answers to this question

Recommended Posts

Posted (edited)

Change the following lines below:

@28,2

- if(gettimetick(2) - lastTimeTalked > (60 * 60 * 24)) {
+ if((gettimetick(2) - ##lastTimeTalked) > (60 * 60 * 24))

@44,4

- set lastTimeTalked, gettimetick(2);
+ set ##lastTimeTalked, gettimetick(2);

##var it's a account variable.

"##" - A permanent global account variable stored by the login server.

They are stored in "save\account.txt" and in the SQL versions in the

'global_reg_value' table, using type 1. The only difference you will

note from normal # variables is when you have multiple char-servers

connected to the same login server. The # variables are unique to

each char-server, while the ## variables are shared by all these

char-servers.

Download the edited script here: http://pastebin.com/7VNru6ZS

Edited by Mooka
  • Upvote 1
Posted (edited)

Change the following lines below:

@28,2

- if(gettimetick(2) - lastTimeTalked > (60 * 60 * 24)) {
+ if((gettimetick(2) - ##lastTimeTalked) > (60 * 60 * 24))

@44,4

- set lastTimeTalked, gettimetick(2);
+ set ##lastTimeTalked, gettimetick(2);

##var it's a account variable.

"##" - A permanent global account variable stored by the login server.

They are stored in "save\account.txt" and in the SQL versions in the

'global_reg_value' table, using type 1. The only difference you will

note from normal # variables is when you have multiple char-servers

connected to the same login server. The # variables are unique to

each char-server, while the ## variables are shared by all these

char-servers.

Download the edited script here: http://pastebin.com/7VNru6ZS

--thank you.. ^^ +1 for you

and thanks now i understand ^^

Edited by v00m3r
Posted

Does this script resets at 00:00 server time?

Or he needs to stay ingame for 24hours so he can get another reward?

I'm getting confused on the gettimetick and lasttimetalked,

Could you give an example how it work

Thanks

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...