Jump to content
  • 0

About @channel leave


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.10
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Hi! Is it just on me or is atcommand "@channel leave #main" not working ??? Please enlighten me 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

Add the permission for player on groups.conf

channel: true

On your channels.conf , check this on #main

leave: false

change false to true

leave: true

@reloadatcommand in game or restart your server.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.10
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

On 5/15/2021 at 1:32 AM, mrfizi said:

Add the permission for player on groups.conf


channel: true

 

hi! its still not working ?

On 5/15/2021 at 6:22 PM, mrfizi said:

@reloadatcommand in game or restart your server.

yes sir its working when I type it as a command @channel leave #main ... but when I add it on npc as 'atcommand "@channel leave #main" ' its not working 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3 hours ago, Origami said:

yes sir its working when I type it as a command @channel leave #main ... but when I add it on npc as 'atcommand "@channel leave #main" ' its not working 

better use script command

 


*channel_kick "<chname>",<char_id>;
*channel_kick "<chname>","<char_name>";

Kick player from a public or private channel.
Channel's owner or group with PC_PERM_CHANNEL_ADMIN cannot be kicked.
Returns 1 on success.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.10
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Hello rAthena comm.. I recently noticed that 'atcommand "@channel leave #<channel>";' is not working on scripts ... Can I request for a script command that will leave player on a channel ?? like @chanleave etc ..thanks

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3 hours ago, Origami said:

Hello rAthena comm.. I recently noticed that 'atcommand "@channel leave #<channel>";' is not working on scripts ... Can I request for a script command that will leave player on a channel ?? like @chanleave etc ..thanks

 

Use this

 


*channel_kick "<chname>",<char_id>;
*channel_kick "<chname>","<char_name>";

Kick player from a public or private channel.
Channel's owner or group with PC_PERM_CHANNEL_ADMIN cannot be kicked.
Returns 1 on success.
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.10
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

On 5/24/2021 at 12:19 AM, LearningRO said:

Use this

*channel_kick "<chname>",<char_id>;
*channel_kick "<chname>","<char_name>";

Kick player from a public or private channel.
Channel's owner or group with PC_PERM_CHANNEL_ADMIN cannot be kicked.
Returns 1 on success.
 

How?? Like this ? ~~> channel_kick "#main",getcharid(0); or as atcommand "channel_kick #main" ??? Thanks !

 channel_kick "#main",getcharid(0); ~> this one, nothing happens hehe

 

I tried to make a script that will automatically turn off channel on login ... but somethings strange happens every time I login that char other player gets a ?? on their chat

Quote

   OnPCLoginEvent:
    sleep2 1000; 

    if (#login&256)    sleep2 1000; channel_kick "#main",strcharinfo(0); 
    if (#login&512)    sleep2 1000; channel_kick "#trade",strcharinfo(0); 
    if (#login&1024)    sleep2 1000; channel_kick "#party",strcharinfo(0); 

image.png.7d214b695530481fd7409e19b554c6cc.png

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