Jump to content
  • 0

INITIAL LEVEL ACCOUNT


Question

Posted (edited)

Hello good night, I would like a script that puts the lv 10 account as soon as the person logs in for the first time and gets kicked to update.

Anyone who already has a lv 10 account doesn't need to do anything obvious.

I tried but was unsuccessful, could you help me?

 

Quote

-    script    acclv10    -1,{

OnPCLoginEvent:
if(#japegou != 1){
mes "Bem-vindo ao Oasis!";
mes "Vou te desconectar apenas para atualizar sua conta.";
close2;
query_sql "UPDATE `login` SET `level`='10', WHERE `account_id` = '"+ getcharid(3) +"'";
set #japegou,1;
atcommand "@kick "+strcharinfo(0);
end;
}else{
end;
}
}

 

Edited by Patskie
english

2 answers to this question

Recommended Posts

  • 0
Posted

Try

 

-	script	acclv10	-1,{

OnPCLoginEvent:

if(!#japegou && BaseLevel == 1){
	mes "Bem-vindo ao Oasis!";
	mes "Vou te desconectar apenas para atualizar sua conta.";
	close2;
	BaseLevel += 9;
	JobLevel += 9;
	#japegou = 1;
	atcommand "@kick "+strcharinfo(0);
	end;
	} else { end; }
}

 

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...