Jump to content
  • 0

help @ #main


GMynna

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  58
  • Reputation:   1
  • Joined:  08/23/14
  • Last Seen:  

can anyone help me about #main... i need a script when a player login . they will automatically join in #main or #trade .. they dont need to type #main to see the messages.  like this screenshot

 

post-28448-0-09376200-1411394857_thumb.jpg

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  58
  • Reputation:   1
  • Joined:  08/23/14
  • Last Seen:  

Use OnPCLoginEvent:

 

 

how do i do that?? :(   step by step ? thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  420
  • Reputation:   89
  • Joined:  01/30/12
  • Last Seen:  

We use this script, add/alter as you wish:

-	script	#channel_autojoin	-1,{
OnPCLoginEvent:
	
	atcommand "@join #support";
	atcommand "@join #trade";
	atcommand "@join #main";
	end;
}

To add:

  • copy the above code in a .txt file like: mainchat_autojoin.txt
  • place the file in your npc/custom/ folder (or any, or no folder inside npc/)
  • open npc/scripts_custom.conf in any text editor (notepad) and add the next new line to the end (use the path where you saved your script):
npc: npc/custom/mainchat_autojoin.txt
  • save & close
  • if the server is running use atcommand @reloadscript
  • done
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...