Jump to content
  • 0

Cash Point


rappar

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/03/18
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   152
  • Joined:  11/28/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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 by Emistry
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...