Jump to content
  • 0

Command that makes the player return to "Select Character" screen


Question

Posted

Hello, i would like to request a command that makes the player return to the "Select Character" screen, it's because if i use @kick the player's window will close instead of a llowing them to select another character, it's for an event. Thanks i hope you guys can help :33!

 

regards~

8 answers to this question

Recommended Posts

Posted

If this IS possible, then at the very least it would require packet sniffing to find out exactly which packet is sent when they do go to character select screen. And then from there, we need to send that specific packet to that person only. Again, would require src edits. Not sure if this is even practical. You could do an @ban 1second and then it should send them to login screen, where they can just login again since that 1second is sure to be up.

Posted

@ban 1 second o:? that will do o:!!! thank you so much >:DD!

 

by the way, it would be like this right?

map,x,y script name -1,{

atcommand "@ban 1 "+@player$; 
Posted (edited)

As he said before, @kick will make the player close the client. This has to do with, the new login window issue. Where kicking them acts like a kill-client. Same with d/cing on new login windows because it is all apart of their new hack/loss prevention system where, they want you to re-log every time so that you aren't stealing peoples stuff.

 

Dont' ask me why, it's just the way they chose to handle this.

 

Edit:  Also, i'm not sure how the ban script would be written, since I don't know how the script acts, and I also don't remember how the ban command works lol. And by that I mean, the syntax. Cuz I think you needed to specify s/mn/h/d//m/y (seconds,mins,hours,days,months,years).

Edited by GmOcean
Posted

alright thanks i'm going to try that out ;o

 

yup @kick makes the player's client to close D: i would prefer a way to make them return directly to the select character screen D: if i make them ban and they try to enter too quick and notice that they are banned i think they will quit DDDD:!

 

thanks again to bogh o:

 

https://github.com/rathena/rathena/blob/master/doc/atcommands.txt#L1220

 

or well o: i cantry to ban and then unban the player immediatly o:!

map,x,y script name -1,{
atcommand "@ban 1 "+@player$;
atcommand "@unban" "+@player$;
end;
}

right o: ?

Posted

Try @ban 1s.

You need to give a time scheme, not the amount of milliseconds.

map,x,y script name -1,{
atcommand "@ban 1s "+@player$;
atcommand "@unban" "+@player$;
end;
}

? o:

Posted

 

Try @ban 1s.

You need to give a time scheme, not the amount of milliseconds.

map,x,y script name -1,{
atcommand "@ban 1s "+@player$;
atcommand "@unban" "+@player$;
end;
}

? o:

 

No idea if this works.. xd

Just try it out.

Remove the " after unban. :P

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