mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Correct typo in ::objectinfo and print width and height, format command.rb.
This commit is contained in:
1 parent
238e6236a7
commit
57dc6c7c9c
2 files changed
+12
-1
No files matched your search
@@ -55,9 +55,10 @@ end
|
||||
# Sends the user a message with information about the object with the specified id.
|
||||
on :command, :objectinfo, RIGHTS_ADMIN do |player, command|
|
||||
args = command.arguments
|
||||
next unless valid_arg_length(args, 1, player, 'Invalid syntax - ::objectinfo [npc id]')
|
||||
next unless valid_arg_length(args, 1, player, 'Invalid syntax - ::objectinfo [object id]')
|
||||
|
||||
id = args[0].to_i
|
||||
definition = ObjectDefinition.lookup(id)
|
||||
player.send_message("Object #{id} is called #{definition.name} and its description is \"#{definition.description}\".")
|
||||
player.send_message("Its width is #{definition.width} and its height is #{definition.height}.")
|
||||
end
|
||||
Reference in new issue
Block a user