Jump to content

Question

Posted

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

  • 0
Posted
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;
}

  • 0
Posted
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;
}

 

  • 0
Posted (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 by Emistry

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...