Jump to content
  • 0

Script Help..


v00m3r

Question


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  291
  • Reputation:   4
  • Joined:  04/24/12
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   8
  • Joined:  11/15/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  291
  • Reputation:   4
  • Joined:  04/24/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  89
  • Reputation:   7
  • Joined:  02/27/12
  • Last Seen:  

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

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...