Ninjamon Posted February 22, 2013 Posted February 22, 2013 How can i make this to give 1 freebies only per account? farebury,163,127,3 script Freebies Giver 790,{ if( !Freebies ){ set Freebies,1; mes "Welcome to Tantrums RO!"; mes "Here are your freebies."; mes "Enjoy!"; savepoint "farebury",150,136; getitem 20127,1; getitem 20050,1; getitem 20099,1; getitem 7037,5; getitem 671,1; getitem 4142,1; getitem 2375,1; getitem 2433,1; getitem 2537,1; getitem 2729,2; getitem 2374,1; announce "Welcome to Tantrums Ragnarok, "+strcharinfo(0)+" !","0x33FF66"; }else{ mes "You already claimed the Freebies."; savepoint "farebury",150,136; } close; OnInit: waitingroom "Freebies for Newbies!",0; end; } Quote
0 JhamBytes Posted April 20, 2017 Posted April 20, 2017 On 2/22/2013 at 11:28 AM, ragnazorg said: here - script Freebies -1,{ OnPCLoginEvent: if (!#Freebies) { getitem 20127,1; getitem 20050,1; getitem 20099,1; getitem 7037,5; getitem 671,1; getitem 4142,1; getitem 2375,1; getitem 2433,1; getitem 2537,1; getitem 2729,2; getitem 2374,1; announce "Welcome to Tantrums Ragnarok, "+strcharinfo(0)+" !","0x33FF66"; set #Freebies, 1; } end; } where should i put this script? sorry first time creating my own server.. haha Quote
0 Cyro Posted April 20, 2017 Posted April 20, 2017 8 minutes ago, JhamBytes said: where should i put this script? sorry first time creating my own server.. haha add it as npc script check this link for guide Quote
arzzzae Posted February 22, 2013 Posted February 22, 2013 (edited) Add '#' prefix to your Freebie variable. "#" - A permanent local account variable. They are stored with all the account data in "save\accreg.txt" in TXT versions and in the SQL versions in the 'global_reg_value' table using type 2. /trunk/doc/script_commands.txt Edited February 22, 2013 by arzzzae Quote
ragnazorg Posted February 22, 2013 Posted February 22, 2013 (edited) here - script Freebies -1,{ OnPCLoginEvent: if (!#Freebies) { getitem 20127,1; getitem 20050,1; getitem 20099,1; getitem 7037,5; getitem 671,1; getitem 4142,1; getitem 2375,1; getitem 2433,1; getitem 2537,1; getitem 2729,2; getitem 2374,1; announce "Welcome to Tantrums Ragnarok, "+strcharinfo(0)+" !","0x33FF66"; set #Freebies, 1; } end; } Edited February 22, 2013 by ragnazorg Quote
Question
Ninjamon
How can i make this to give 1 freebies only per account?
7 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.