1
Ayuda con Modificacion de vocation id en armas de paladin Lun Mayo 31, 2021 8:32 am
ruta66

Miembro


2 participantes
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
ruta66 escribió:ya trate tambien pero siempre que modifico un numero en distancia se logea despues de atacar , mira
distance="1.0" ese es el del problema
lo modifique asi
distance="1.1" distance="1.2" distance="1.3" distance="1.4" distance="1.5" distance="1.6" y asi hasta 2.0 y todos hacen q el server se cierre cuando atacas con skill de distancia en magos nose la razon
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL_SWORD then
if getPlayerSkillLevel(cid, SKILL_SWORD) >= 171 then
doPlayerSetRate(cid, SKILL_SWORD, 0.0)
end
elseif skill == SKILL_SWORD then
if getPlayerSkillLevel(cid, SKILL_FIST) >= 171 then
doPlayerSetRate(cid, SKILL_FIST, 0.0)
end
return false
elseif skill == SKILL_AXE then
if getPlayerSkillLevel(cid, SKILL_AXE) >= 171 then
doPlayerSetRate(cid, SKILL_AXE, 0.0)
end
return false
elseif skill == SKILL_CLUB then
if getPlayerSkillLevel(cid, SKILL_CLUB) >= 171 then
doPlayerSetRate(cid, SKILL_CLUB, 0.0)
end
return false
elseif skill == SKILL_DISTANCE then
if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 171 then
doPlayerSetRate(cid, SKILL_DISTANCE, 0.0)
end
return false
elseif skill == SKILL_SHIELD then
if getPlayerSkillLevel(cid, SKILL_FIST) >= 171 then
doPlayerSetRate(cid, SKILL_FIST, 0.0)
end
return false
elseif skill == SKILL_FISH then
if getPlayerSkillLevel(cid, SKILL_FISH) >= 171 then
doPlayerSetRate(cid, SKILL_FISH, 0.0)
end
return false
end
end
registerCreatureEvent(cid, "BlockSkills")
<event type="advance" name="BlockSkills" event="script" value="skillblock.lua"/>
TibiaFace » RECURSOS » GlobalEvents, Spells & CreatureEvents » Ayuda con Modificacion de vocation id en armas de paladin
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.