v00m3r Posted June 8, 2012 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
Mooka Posted June 8, 2012 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
v00m3r Posted June 8, 2012 Author 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
Jyabil Posted June 13, 2012 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
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 v00m3r3 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.