If you can add some beautiful pictures in the chat text ....... the generation of image code is the same as that of emoticons. you can select the menu or manually enter the image code. here, only the format and code are provided, and no explanation is given, please check the expression in the action part 1 file format // $ picturefilename1 $ split brown suit $ splitxw2015SyntaxHighlig if you can add some beautiful pictures in the chat text .......
The image code is generated in the same way as the emoticons. you can select the menu or manually enter the image code. only the format is provided here.
And the code. do not explain it again. check the expression in the action section.
1 File format
// $ Picturefilename
1$splitcoffee West server ?splitxw20151.jpg $ split
2$splitblack $$splitxw201534.jpg $ split
Number + name + image name +
2 Programs
In my chat room, the image is displayed by // gift + number. Note that there are three backslashes, which are different from emoticons.
Work
// Determine whether the first 7 characters in the speech are /// gift
If (substr ($ message, 0, 7) = "// gift ")
{
// Obtain the image number, which is a string of 2 characters starting from 7th characters (note: The character number starts from 0)
$ Id = substr ($ message, 7,2)-1;
// Read the image file
$ Giftmsg = file ($ picturefilename );
// Determine whether the serial number is valid
If ($ id> = 0) & ($ id <count ($ giftmsg )))
{
// Split the image rows
$ Gift = split ($ split, $ giftmsg [$ id], 99 );
// Generate the image's speech content
$ Message = "or = $ namecolor> $ name to o) target = d> $ talkto a $ gift [1] 0 height = 60 border = 0> ";
// Mark of successful image generation
$ Specialsign = 1;
}
}
Is it easy? Don't try it now !!