rappar Posted April 27 Share Posted April 27 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 Share Posted April 27 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 Share Posted April 27 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 Share Posted May 1 (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 by Emistry Quote Link to comment Share on other sites More sharing options...
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