Jump to content
  • 0

INITIAL LEVEL ACCOUNT


Xuranha

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/02/20
  • Last Seen:  

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

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/02/20
  • Last Seen:  

Olá, é level de CONTA, como se fosse um GM.

mas obg.

Edited by Xuranha
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...