Send found item icon and color to client
This commit is contained in:
parent
6b9d631b7a
commit
f20f24994b
@ -77,9 +77,10 @@ if ($database->has('claimedcodes', ["AND" => ['code' => $VARS["code"], 'accounti
|
||||
$player->stats->updateStat(PlayerStats::SCANS, 1);
|
||||
$player->save();
|
||||
|
||||
$itemname = $database->get('items', 'itemname', ['itemid' => $itemid]);
|
||||
$iteminfo = $database->get('items', ['itemname (name)', 'icon', 'color'], ['itemid' => $itemid]);
|
||||
|
||||
$returndata["item"] = $itemname;
|
||||
$returndata["item"] = $iteminfo["name"];
|
||||
$returndata["itemdata"] = ["icon" => $iteminfo["icon"], "color" => $iteminfo["color"]];
|
||||
|
||||
$returndata['messages'][] = $Strings->build("You found one {item}", ["item" => $itemname], false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user