As you can see my other thread, I'm still having problems putting spells stuff in action scripts.
I VERY rarely use it, so I need some help here!
Unlike the other script I posted, this one seems very critical, it seems so critical that it won't even let me copy the error.
So, I made a picture of it:
Here is molotov.lua:
I literally pretty much copy and pasted this from spells/scripts/firebomb.lua.
I have a green flask and if I right-click->use with-> click anywhere, it would make a 3x3 field of fire.
Also, I am hoping if it's possible, can you have a shoottype of an itemID (if I use the flask from a distance, the shot type would be green flask.
Pretty much like a molotov cocktail.
Thanks!
ofcourse REP++
e.mC
I VERY rarely use it, so I need some help here!
Unlike the other script I posted, this one seems very critical, it seems so critical that it won't even let me copy the error.
So, I made a picture of it:
Here is molotov.lua:
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 2000)
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCombat(cid, combat, var)
end
I literally pretty much copy and pasted this from spells/scripts/firebomb.lua.
I have a green flask and if I right-click->use with-> click anywhere, it would make a 3x3 field of fire.
Also, I am hoping if it's possible, can you have a shoottype of an itemID (if I use the flask from a distance, the shot type would be green flask.
Pretty much like a molotov cocktail.
Thanks!
ofcourse REP++
e.mC