ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/request.C
(Generate patch)

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.157 by root, Fri Nov 6 13:05:57 2009 UTC vs.
Revision 1.158 by root, Fri Nov 6 13:11:28 2009 UTC

223 223
224/** 224/**
225 * This sends the skill number to name mapping. We ignore 225 * This sends the skill number to name mapping. We ignore
226 * the params - we always send the same info no matter what. 226 * the params - we always send the same info no matter what.
227 */ 227 */
228void 228static void
229send_skill_info (client *ns, char *params) 229send_skill_info (client *ns, char *params)
230{ 230{
231 packet sl; 231 packet sl;
232 sl << "replyinfo skill_info\n"; 232 sl << "replyinfo skill_info\n";
233 233
245 245
246/** 246/**
247 * This sends the spell path to name mapping. We ignore 247 * This sends the spell path to name mapping. We ignore
248 * the params - we always send the same info no matter what. 248 * the params - we always send the same info no matter what.
249 */ 249 */
250void 250static void
251send_spell_paths (client * ns, char *params) 251send_spell_paths (client * ns, char *params)
252{ 252{
253 packet sl; 253 packet sl;
254 254
255 sl << "replyinfo spell_paths\n"; 255 sl << "replyinfo spell_paths\n";
1266 socket.send_packet (sl); 1266 socket.send_packet (sl);
1267 socket.sent_scroll = 0; 1267 socket.sent_scroll = 0;
1268 } 1268 }
1269} 1269}
1270 1270
1271/*****************************************************************************/
1272/* GROS: The following one is used to allow a plugin to send a generic cmd to*/
1273/* a player. Of course, the client need to know the command to be able to */
1274/* manage it ! */
1275/*****************************************************************************/
1276void
1277send_plugin_custom_message (object *pl, char *buf)
1278{
1279 pl->contr->ns->send_packet (buf);
1280}
1281
1282/** 1271/**
1283 * This looks for any spells the player may have that have changed their stats. 1272 * This looks for any spells the player may have that have changed their stats.
1284 * it then sends an updspell packet for each spell that has changed in this way 1273 * it then sends an updspell packet for each spell that has changed in this way
1285 */ 1274 */
1286void 1275void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines