• 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!

Firefield

Xleniz

New Member
Joined
Jul 6, 2009
Messages
178
Reaction score
3
Location
Sweden
I need a script that creates a firefield effect (like when you attack with fire axe), when you right click on a tile. (actions.xml).

Thx.
 
Last edited:
No all tiles, I found it though:
Code:
doAreaCombatHealth(0,COMBAT_FIREDAMAGE, fromPos, area1,-(getPlayerLevel(cid)*10),-(getPlayerLevel(cid)*14),15)

(got another problem now, how do i add experience from killing this way?)

tried onKill but nothing happens.

thx
 
changed and still doesn't work,
heres the files:

creaturescripts.xml
Code:
<event type="kill" name="onKill" event="script" value="kill.lua"/>

kill.lua
Code:
function onKill(cid, target)
doPlayerAddExperience(cid, 100)
return TRUE;
end

actions.xml
Code:
<action itemid="3263" event="script" value="fire.lua"/>

fire.lua
Code:
function onUse(cid, item, fromPos, item2, toPos)

local area1 = {
{0, 0, 0}, 
{0, 1, 0}, 
{0, 0, 0}, 
}
doAreaCombatHealth(cid,COMBAT_FIREDAMAGE, fromPos, area1,-(getPlayerLevel(cid)*10),-(getPlayerLevel(cid)*14),15)

return TRUE
end

Help very appreciated
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
function onGetFormulaValues(cid, level, maglevel)
	return - level * 10, - level * 14
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doCombat(cid, combat, positionToVariant(fromPosition))
end
 
Back
Top