• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Firewalker boots 0.2.10

Erikas Kontenis

Board Moderator
Staff member
Board Moderator
Joined
Jul 3, 2009
Messages
1,893
Reaction score
618
Location
Lithuania
Hello as we know theres aint source script for firewalker boots so i made one in lua, it wont crash your server or lag/frezee script is fine made and tested on 60+ players online.
I self using 0.2.10 and shoted monsters fire fields not disspearing so i used firewalkers to work only for this fire field id.

but if you wanna to add for all fire fields this script to use, remove all fire fields ids and paste same line as down just change itemid to removed line item id.

find word 1487 then delete line and add this one.
Code:
<movevent event="StepIn" itemid="1487" script="firewalker.lua"/>

firewalker.lua
LUA:
local condition = createConditionObject(CONDITION_FIRE)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 3000, -10)
	
function onStepIn(cid, item, fromPosition)
   if isPlayer(cid) then
	if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 9932 then
	doCreatureAddHealth(cid, -2)
	doSendAnimatedText(cid, fromPosition, "-2", TALKTYPE_ORANGE_1)
      else
	doCreatureAddHealth(cid, -20)
	doSendAnimatedText(cid, fromPosition, "-20", TALKTYPE_ORANGE_1) 
	doAddCondition(cid, condition)
end
end
   return true
end

It works simple doing animated text how much damage taken, and removing player health so this means it allways will remove for you -20 life or -2 if you wearing fire absorb items or not, after -20 damage you will get condition condition can be absorbed by fire absorbing items. why i made doCreatureAddHealth, well thats simple doAddCondition cant remove for players so fast -20 health by fire, so if player runs very fast he wont be damaged and server will freeze...
 
Last edited:
I'm almost sure that there IS some source code in prv svn, also shouldnt be THAT hard(but I was too lazy this time ;d)
but well, looks "a bit" cleaner than Cykotitans code for 0.3.6 ^^

but w8 w8, this way it wont work for monsters and other resistances

try rewriting
Code:
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
to 0.2(probably not so much to do)
 
@Up as i said before doaddcondition by first step in fire -20 damage will very freeze server and it even wont be damaged from all fields, anyways, in thoose places such as dragon lairs and monsters wich shotting fire fields self is imunted to fire damage, so thats aint a very big deal, but players more enjoys when firewalker boots removing some damage by that reason dragon lairs in 0.2.10 is allways on fire becouse fire field shooted by monsters id is 1487 and that id not dissapearing, ofcourse its easy to do for dissaper just editing items.xml but this will destroy some places such as poi all fire fields, and other.
 
Back
Top