… | |
… | |
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 | */ |
228 | void |
228 | static void |
229 | send_skill_info (client *ns, char *params) |
229 | send_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 | */ |
250 | void |
250 | static void |
251 | send_spell_paths (client * ns, char *params) |
251 | send_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 | /*****************************************************************************/ |
|
|
1276 | void |
|
|
1277 | send_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 | */ |
1286 | void |
1275 | void |