mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
allow tutors to use info command and to spectate items like pro
This commit is contained in:
parent
0a680a4c0b
commit
2085604ac0
@ -1,6 +1,6 @@
|
|||||||
function Player:onLook(thing, position, distance)
|
function Player:onLook(thing, position, distance)
|
||||||
local description = "You see " .. thing:getDescription(distance)
|
local description = "You see " .. thing:getDescription(distance)
|
||||||
if self:getGroup():getAccess() then
|
if self:getAccountType() ~= ACCOUNT_TYPE_NORMAL then
|
||||||
if thing:isItem() then
|
if thing:isItem() then
|
||||||
description = string.format("%s\nItem ID: %d", description, thing:getId())
|
description = string.format("%s\nItem ID: %d", description, thing:getId())
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
function onSay(player, words, param)
|
function onSay(player, words, param)
|
||||||
if not player:getGroup():getAccess() then
|
if player:getAccountType() == ACCOUNT_TYPE_NORMAL then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -17,10 +17,12 @@ function onSay(player, words, param)
|
|||||||
local targetIp = target:getIp()
|
local targetIp = target:getIp()
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Name: " .. target:getName())
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Name: " .. target:getName())
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Access: " .. (target:getGroup():getAccess() and "1" or "0"))
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Access: " .. (target:getGroup():getAccess() and "1" or "0"))
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Level: " .. target:getLevel())
|
if player:getGroup():getAccess() then
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Magic Level: " .. target:getMagicLevel())
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Level: " .. target:getLevel())
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Speed: " .. target:getSpeed())
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Magic Level: " .. target:getMagicLevel())
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Position: " .. string.format("(%0.5d / %0.5d / %0.3d)", target:getPosition().x, target:getPosition().y, target:getPosition().z))
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Speed: " .. target:getSpeed())
|
||||||
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Position: " .. string.format("(%0.5d / %0.5d / %0.3d)", target:getPosition().x, target:getPosition().y, target:getPosition().z))
|
||||||
|
end
|
||||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "IP: " .. Game.convertIpToString(targetIp))
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "IP: " .. Game.convertIpToString(targetIp))
|
||||||
|
|
||||||
local players = {}
|
local players = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user