Multiple Paintings

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-06 17:04:19 +01:00
parent d2dcf4f43a
commit e288a8a880
3 changed files with 37 additions and 4 deletions

View file

@ -40,12 +40,22 @@ class PaintingItem extends Item{
5 => 2,
);
$motives = array(
"Kebab",
"Aztec",
"Alban",
"Aztec2",
"Bomb",
"Plant",
"Wasteland",
);
$data = array(
"x" => $target->x,
"y" => $target->y,
"z" => $target->z,
"yaw" => $faces[$face] * 90,
"Motive" => $motives[mt_rand(0, count($motives) - 1)],
);
$server = ServerAPI::request();
$e = $server->api->entity->add(ENTITY_OBJECT, OBJECT_PAINTING, $data);