v00m3r Posted June 8, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Share Posted June 8, 2012 (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 June 8, 2012 by v00m3r Quote Link to comment Share on other sites More sharing options...
Mooka Posted June 8, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 21 Reputation: 8 Joined: 11/15/11 Last Seen: December 10, 2024 Share Posted June 8, 2012 (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 June 8, 2012 by Mooka 1 Quote Link to comment Share on other sites More sharing options...
v00m3r Posted June 8, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Author Share Posted June 8, 2012 (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 June 8, 2012 by v00m3r Quote Link to comment Share on other sites More sharing options...
Jyabil Posted June 13, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 89 Reputation: 7 Joined: 02/27/12 Last Seen: July 22, 2014 Share Posted June 13, 2012 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 Quote Link to comment Share on other sites More sharing options...
Question
v00m3r
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 v00m3rLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.