Cześć. Poszukuje skryptu do szybszego skillowania. np. Gdy mamy założony przedmiot o id xxxx wtedy trenujemy np FIST fighting xxx szybciej
znalazłem coś takiego
Używam tfs 0.3.6. Z góry dziękuje za pomoc
znalazłem coś takiego
Ale niestety nie działa.-- specific weapons giving more skill tries than usually.
-- (while attacking some monsters like "Train". Depends to whom you added this event to..)
--[[
(SKILL_FIST) | (SKILL_CLUB) | (SKILL_SWORD)
(SKILL_AXE) (SKILL_DISTANCE) (SKILL_SHIELD)
(SKILL_FISHING) (SKILL_MAGLEVEL) (SKILL_LEVEL)
(CONST_SLOT_HEAD)
(CONST_SLOT_NECKLACE)
(CONST_SLOT_BACKPACK)
(CONST_SLOT_ARMOR)
(CONST_SLOT_RIGHT)
(CONST_SLOT_LEFT)
(CONST_SLOT_LEGS)
(CONST_SLOT_FEET)
(CONST_SLOT_RING)
(CONST_SLOT_AMMO)
]]--
local bands = {
[26433] = { -- item id
tries = 10, -- bonus skill tries
skillz = SKILL_CLUB, -- look commented area above for more
xeffect = 40 -- what effect to send on attacked creature
},
[26435] = { -- Wooden band
tries = 10,
skillz = SKILL_FISHING,
xeffect = 40
},
[26436] = { -- Critical Band
tries = 10,
skillz = SKILL_CLUB,
xeffect = 40
},
[26437] = { -- Attack Speed Band
tries = 10,
skillz = SKILL_FIST,
xeffect = 40
}
}
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
local whatBand = 0
if creature:isMonster() and attacker:isPlayer() then
if attacker:getSlotItem(CONST_SLOT_LEFT) then
whatBand = bands[attacker:getSlotItem(CONST_SLOT_LEFT):getId()]
if not whatBand then
return primaryDamage, primaryType, secondaryDamage, secondaryType
end
creature:getPosition():sendMagicEffect(whatBand.xeffect)
attacker:addSkillTries(whatBand.skillz, whatBand.tries)
end
end
return primaryDamage, primaryType, secondaryDamage, secondaryType
end
Używam tfs 0.3.6. Z góry dziękuje za pomoc