51
Re: [Aporte] [Aporte] Global TibiaFace V23 (DELUX) protocolo 10.82 sin cast Lun Nov 09, 2015 4:16 am
Invitado

Invitado
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
Julikee escribió:ya hice eso MAYA pero en el client me sale la letra E como si estubiera Invalitada y los players no se pueden atacar
Andrez escribió:[Tienes que estar registrado y conectado para ver este vínculo] tendras de casualidad los sources de este server? O vienen en la carpeta?
data\events\scripts |
function Creature:onChangeOutfit(outfit)
return true
end
function Creature:onAreaCombat(tile, isAggressive)
return true
end
local function removeCombatProtection(cid)
local player = Player(cid)
if not player then
return true
end
local time = 0
if player:isMage() then
time = 10
elseif player:isPaladin() then
time = 20
else
time = 30
end
player:setStorageValue(Storage.combatProtectionStorage, 2)
addEvent(function(cid)
local player = Player(cid)
if not player then
return
end
player:setStorageValue(Storage.combatProtectionStorage, 0)
player:remove()
end, time * 1000, cid)
end
function Creature:onTargetCombat(target)
if not self then
return true
end
if target:isPlayer() then
if self:isMonster() then
local protectionStorage = target:getStorageValue(Storage.combatProtectionStorage)
if target:getIp() == 0 then -- If player is disconnected, monster shall ignore to attack the player
if protectionStorage <= 0 then
addEvent(removeCombatProtection, 30 * 1000, target.uid)
target:setStorageValue(Storage.combatProtectionStorage, 1)
elseif protectionStorage == 1 then
self:searchTarget()
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
return true
end
if protectionStorage >= os.time() then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
return true
end
TibiaFace » Descargas de Otserv y Ayuda » Descarga: Distribuciones de OTServ » OTServer 10.x » [Aporte] [Aporte] Global TibiaFace V23 (DELUX) protocolo 10.82 sin cast
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.
|
|