zakius
Enter the Ninja!
Not tested with many players, kito2 says that it crashes his serv, noone more told so, but it is possible that movements are too slow and thats the reason
Based on script written by Cykotitan (I guess...)
No link cause some days ago was small rollback or sth on otland and that script(and some my posts that I didnt removed) disappeared)
So lets start:
Save it as firewalker.lua in your movements/scripts dir
in movements.xml delete all StepIn lines for ids:
and paste
in this file.
Not tested with many players online, but I deleted all console errors, monsters nor receiving damage and so on.
Should be 100% stable, fire immune monsters gets spark when walking on fire field, fire weak monsters like gs gets more dmg, and so on.
Only that if you have full magma set(umm, tested with dragon robe only but...) it reduces 100% dmg, but I think its tfs reduction system
posted it on torg also today, writing it here to prevent blaming me on torg^^
Based on script written by Cykotitan (I guess...)
No link cause some days ago was small rollback or sth on otland and that script(and some my posts that I didnt removed) disappeared)
So lets start:
Lua:
local condition = {}
for i = 1, 4 do
table.insert(condition, createConditionObject(CONDITION_FIRE))
addDamageCondition(condition[i], 1, 0, -(i == 1 and 20 or i==2 and 2 or i == 3 and 10 or i == 4 and 1))
addDamageCondition(condition[i], isInArray({1,3},i)==TRUE and 7 or 2, 9000, -(isInArray({1,3},i)==TRUE and 10 or 1))
end
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE and getPlayerFlagValue(cid, PlayerFlag_CannotBeAttacked) == FALSE then
return doRemoveCondition(cid, CONDITION_FIRE), doAddCondition(cid, isInArray({1487,1492},item.itemid) == TRUE and condition[getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 2 or 1] or condition[getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 4 or 3])
elseif isMonster(cid) then
return doRemoveCondition(cid, CONDITION_FIRE), doAddCondition(cid, isInArray({1487,1492},item.itemid) == TRUE and condition[1 or 3])
else
doSendMagicEffect(position, CONST_ME_POFF)
end
end
in movements.xml delete all StepIn lines for ids:
Code:
1487
1488
1492
1493
Code:
<movevent type="StepIn" fromid="1487" toid="1488" event="script" value="firewalker.lua"/>
<movevent type="StepIn" fromid="1492" toid="1493" event="script" value="firewalker.lua"/>
Not tested with many players online, but I deleted all console errors, monsters nor receiving damage and so on.
Should be 100% stable, fire immune monsters gets spark when walking on fire field, fire weak monsters like gs gets more dmg, and so on.
Only that if you have full magma set(umm, tested with dragon robe only but...) it reduces 100% dmg, but I think its tfs reduction system
posted it on torg also today, writing it here to prevent blaming me on torg^^
Last edited: