Fixed bug with adding Vip from console or map, who is already on viplist.

This commit is contained in:
Kamil
2012-07-09 08:59:16 +02:00
parent 42971b10f8
commit 85786efbd3
3 changed files with 13 additions and 2 deletions

View File

@@ -31,3 +31,10 @@ function Player:isPartySharedExperienceActive()
shield == ShieldBlueNoSharedExpBlink or
shield == ShieldBlueNoSharedExp)
end
function Player:hasVip(creatureName)
for id, vip in pairs(g_game.getVips()) do
if (vip[1] == creatureName) then return true end
end
return false
end