You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
12 years ago
|
-- @docclass Player
|
||
|
|
||
12 years ago
|
InventorySlotHead = 1
|
||
|
InventorySlotNeck = 2
|
||
|
InventorySlotBack = 3
|
||
|
InventorySlotBody = 4
|
||
|
InventorySlotRight = 5
|
||
|
InventorySlotLeft = 6
|
||
|
InventorySlotLeg = 7
|
||
|
InventorySlotFeet = 8
|
||
|
InventorySlotFinger = 9
|
||
|
InventorySlotAmmo = 10
|
||
|
|
||
|
InventorySlotFirst = 1
|
||
|
InventorySlotLast = 10
|
||
|
|
||
13 years ago
|
function Player:isPartyLeader()
|
||
|
local shield = self:getShield()
|
||
|
return (shield == ShieldWhiteYellow or
|
||
|
shield == ShieldYellow or
|
||
|
shield == ShieldYellowSharedExp or
|
||
|
shield == ShieldYellowNoSharedExpBlink or
|
||
|
shield == ShieldYellowNoSharedExp)
|
||
|
end
|
||
|
|
||
|
function Player:isPartyMember()
|
||
|
local shield = self:getShield()
|
||
12 years ago
|
return (shield == ShieldWhiteYellow or
|
||
|
shield == ShieldYellow or
|
||
|
shield == ShieldYellowSharedExp or
|
||
|
shield == ShieldYellowNoSharedExpBlink or
|
||
13 years ago
|
shield == ShieldYellowNoSharedExp or
|
||
|
shield == ShieldBlueSharedExp or
|
||
|
shield == ShieldBlueNoSharedExpBlink or
|
||
|
shield == ShieldBlueNoSharedExp or
|
||
|
shield == ShieldBlue)
|
||
|
end
|
||
|
|
||
|
function Player:isPartySharedExperienceActive()
|
||
|
local shield = self:getShield()
|
||
12 years ago
|
return (shield == ShieldYellowSharedExp or
|
||
|
shield == ShieldYellowNoSharedExpBlink or
|
||
13 years ago
|
shield == ShieldYellowNoSharedExp or
|
||
|
shield == ShieldBlueSharedExp or
|
||
|
shield == ShieldBlueNoSharedExpBlink or
|
||
|
shield == ShieldBlueNoSharedExp)
|
||
|
end
|
||
12 years ago
|
|
||
|
function Player:hasVip(creatureName)
|
||
|
for id, vip in pairs(g_game.getVips()) do
|
||
|
if (vip[1] == creatureName) then return true end
|
||
|
end
|
||
|
return false
|
||
12 years ago
|
end
|