Jump to content
  • 0

@disconnect command


nobukadnezar

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

Hello /no1

 

I think adding @disconnect command would be really useful since 2012 client force player to exit the game to login with another account.

 

how about that script geniuses?

 

thanks~ /bo

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

I saw a paid version of the command, I tried to do one and somehow it works for me.

Try this out.

/*==========================================

* Disconnection of a player

*------------------------------------------*/

ACMD_FUNC(login)

{

set_eof(fd);

map_quit(sd);

return 0;

}

Edited by Pinoy Fury
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

Hello /no1

 

I think adding @disconnect command would be really useful since 2012 client force player to exit the game to login with another account.

 

how about that script geniuses?

 

thanks~ /bo

what did u mean? disconnect player who use the command, or disconnect target player?

@disconnect nobukadnezar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

disconnect player who use command.

better use @relog i think

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

why not use @kickall?

EDIT:

use ALT f4 lol

Edited by karazu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

why not use @kickall?

EDIT:

use ALT f4 lol

no dude

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

Hello /no1

 

I think adding @disconnect command would be really useful since 2012 client force player to exit the game to login with another account.

 

how about that script geniuses?

 

thanks~ /bo

USE 2013 client "2013/08/07"  it will let you use another account without going out of the client. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

i don't think i want to change the client version. Since what i know, the stable one were the 20120410 version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

I'm sorry but how to properly implement this? I added it in atcommand.c and rebooted the server to no avail.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

Just add it in atcommand.c

 

Add above:

ACMD_FUNC(login)
{
set_eof(fd);
map_quit(sd);
return 0;
}

/**
 * Fills the reference of available commands in atcommand DBMap
**/

and above

    ACMD_DEF(login),
};
AtCommandInfo* atcommand;
Edited by Pinoy Fury
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...