rappar Posted April 27, 2022 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/03/18 Last Seen: July 26, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Slammer Posted April 27, 2022 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 218 Reputation: 155 Joined: 11/28/11 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 mR L Posted April 27, 2022 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 177 Reputation: 26 Joined: 12/24/14 Last Seen: December 25, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted May 1, 2022 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 4 hours ago Share 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 Link to comment Share on other sites More sharing options...
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
Link 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.