View Full Version : Sending item with "to" in its name.
lidden
05-12-2010, 06:30 PM
Is there a way to send items that have the word "to" in its name? E.g. A Beginner's Guide to Charming Snakes.
Try the item number? It's 4408 in this case. Or you can use the kmail interface in People -> send a message.
lidden
05-12-2010, 10:56 PM
Item numbers does not work and I was generating a string to be sent with cli_execute("send ... to foo") in an ash script. It is no big deal since this is a one time item and I will probably not have to send it again.
This will work:
int doodad = to_int($item[A Beginner's Guide to Charming Snakes]);
cli_execute("send 1 \u00B6" + doodad + " to Bale");
That character \u00B6 is necessary to inform mafia that the following int is an item. Jason chose it because it is unlikely to ever be used as the start of an actual item name.
heeheehee
05-12-2010, 11:13 PM
Edit: Wow, didn't know about that, Bale!
lidden
05-12-2010, 11:20 PM
Thanks Bale :-)
zarqon
05-27-2010, 06:15 AM
The easy way: just omit the "to". There are currently 8 items containing " to " and this works for all of them.
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.