Erikas Kontenis
Excellent OT User
Hello, i tired of trying compile firewalker boots script to 0.2.9 cant understand wich things i need to edit mayby someone could help me with that issue?
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) == FALSE or getPlayerFlagValue(cid, PlayerFlag_CannotBeAttacked) == FALSE then
return doRemoveCondition(cid, CONDITION_FIRE), doAddCondition(cid, isInArray({1487,1492},item.itemid) == TRUE and condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 2 or 1] or condition[isPlayer(cid) == TRUE and getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 and 4 or 3])
else
doSendMagicEffect(position, CONST_ME_POFF)
end
end
You don't need source edit if there is a LUA script doing exactly the same
It's scripted for 0.2, I was using it for a long time. Why?! The lua was is nearly as good as the source edit, not like the players are going to ask.it scripted not for 0.2. thats all. and i need source compiling this is much better way then lua.