File: ch15s01.xhtml

package info (click to toggle)
kildclient 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 6,320 kB
  • sloc: ansic: 24,830; xml: 7,500; sh: 4,295; perl: 2,877; makefile: 172
file content (39 lines) | stat: -rw-r--r-- 4,877 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>15.1. Basic Usage</title><link rel="stylesheet" type="text/css" href="docbook.css"/><link rel="stylesheet" type="text/css" href="kildclient.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/><link rel="prev" href="chap_chat.xhtml" title="Chapter 15. Using the Chat"/><link rel="next" href="ch15s02.xhtml" title="15.2. Advanced Features"/></head><body><header><div class="navheader"><table style="width: 100%; "><tr><th style="text-align: center; " colspan="3">15.1. Basic Usage</th></tr><tr><td style="width: 20%; text-align: left; "><a accesskey="p" href="chap_chat.xhtml">Prev</a> </td><th style="width: 60%; text-align: center; ">Chapter 15. Using the Chat</th><td style="width: 20%; text-align: right; "> <a accesskey="n" href="ch15s02.xhtml">Next</a></td></tr></table><hr/></div></header><section class="sect1" id="idm2588"><div class="titlepage"><div><div><h2 class="title" style="clear: both">15.1. Basic Usage</h2></div></div></div><p>The chat plugin requires the Gtk3 Perl bindings, and also the
Perl bindings for the vte library. If you cannot load the plugin and
it complains about not finding these bindings, <a class="link" href="https://metacpan.org/release/Gtk3/" target="_top"> download them
here</a>.</p><p>To load the plugin, enter
<strong class="userinput"><code>/$world-&gt;loadplugin('chat')</code></strong> in the command
entry box. You should see <code class="literal">Plugin loaded</code>. If an
error happened, you probably do not have the bindings mentioned in the
above paragraph.</p><p>If you want to have the plugin always loaded, you can put that
line (without the slash in the beginning) to your script file, and the
plugin will loaded whenever you open a World.</p><p>Now that the plugin is loaded, you have two options: calling
somebody or accepting calls from other persons.</p><p>The first thing you should do is set you chat nickname. To do
that, type <strong class="userinput"><code>/chat::setname("nickname")</code></strong>. You only
need to do this once, as the chat name will be saved and restored when
you open the World again.</p><p>To accept calls, enter <strong class="userinput"><code>/chat::accept</code></strong> in
the command entry box. Other people can now call you. You will need to
give them your IP address. Calls are being waited on port 4050, which
is the default port for the chat protocols. If you want to listen for
connections in another port, just pass that port number as argument,
for example, <strong class="userinput"><code>/chat::accept(5000)</code></strong>. Be sure to
inform other people the port you are using.</p><p>When somebody wants to chat to you, a dialog box will appear
asking if you want to accept the chat. If you want to chat with them,
select <span class="guilabel">Yes</span> to establish the chat connection,
otherwise click <span class="guilabel">No</span> to deny the chat
request.</p><p>To call somebody, use the <code class="function">call</code> function:
enter <strong class="userinput"><code>/chat::call("host")</code></strong>.
<em class="parameter"><code>host</code></em> is the hostname or IP address of the
person you wish to chat with. This command tries connecting to port
4050, if they are using another port, pass that port number as a
second argument to the function.</p><p>You can substitute <code class="function">call</code> for
<code class="function">zcall</code>. The later tries using the zChat protocol
instead of the default MudMaster protocol. Use the
<code class="function">zcall</code> function if you know they support the zChat
protocol.</p><p>If the other person accepts the chat, the connection will be
established.</p><p>Each chat connection has its own window where the text received
is displayed, and with an entry box where you can type messages that
are sent to the other person. To send something, just enter the
message and press <span class="keysym">ENTER</span>.</p><p>There are some special commands that can be entered in chat windows,
these will be described in the next session.</p></section><footer><div class="navfooter"><hr/><table style="width: 100%; "><tr><td style="width: 40%; text-align: left; "><a accesskey="p" href="chap_chat.xhtml">Prev</a> </td><td style="width: 20%; text-align: center; "><a accesskey="u" href="chap_chat.xhtml">Up</a></td><td style="width: 40%; text-align: right; "> <a accesskey="n" href="ch15s02.xhtml">Next</a></td></tr><tr><td style="width: 40%; text-align: left; vertical-align: top; ">Chapter 15. Using the Chat </td><td style="width: 20%; text-align: center; "><a accesskey="h" href="index.xhtml">Home</a></td><td style="width: 40%; text-align: right; vertical-align: top; "> 15.2. Advanced Features</td></tr></table></div></footer></body></html>