rappar Posted April 27, 2022 Posted April 27, 2022 How can I make this a 1 time only and account based? everytime i login it always at 100,000. - script Sample -1,{ OnPCLoginEvent: dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; set #CASHPOINTS,CASHPOINTS+100000; end; } thanks Quote
0 Slammer Posted April 27, 2022 Posted April 27, 2022 1 hour ago, rappar said: How can I make this a 1 time only and account based? everytime i login it always at 100,000. - script Sample -1,{ OnPCLoginEvent: dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; set #CASHPOINTS,CASHPOINTS+100000; end; } thanks try this - script Sample -1,{ OnPCLoginEvent: If(GetCashFree) { end; } dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; set #CASHPOINTS,CASHPOINTS+100000; GetCashFree = 1; end; } Quote
0 mR L Posted April 27, 2022 Posted April 27, 2022 2 hours ago, Slammer said: GetCashFree = 1; - script Sample -1,{ OnPCLoginEvent: if (##GetCashFree) end; dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; set #CASHPOINTS,CASHPOINTS+100000; set ##GetCashFree,1; end; } Quote
0 Emistry Posted May 1, 2022 Posted May 1, 2022 (edited) OnPCLoginEvent: if (#GetCashFree) { dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; #CASHPOINTS += 100000; #GetCashFree = 1; } end; A permanent global account variable stored by the login server is more than enough, unless ur server support multiple different char-server Edited May 1, 2022 by Emistry Quote
Question
rappar
How can I make this a 1 time only and account based?
everytime i login it always at 100,000.
- script Sample -1,{ OnPCLoginEvent: dispbottom "You gained 100,000 cashpoint!!! Enjoy!"; set #CASHPOINTS,CASHPOINTS+100000; end; }
thanks
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.