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
committed by niczkx
parent c8d9833444
commit 8f492f7e06
14 changed files with 226 additions and 225 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