Jump to content
  • 0

About @channel leave


Question

6 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted
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 

  • 0
Posted
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.

  • 0
Posted

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

 

  • 0
Posted
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.
 

  • 0
Posted (edited)
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

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