tokenzz
:thinking:
- Joined
- Feb 2, 2013
- Messages
- 779
- Solutions
- 2
- Reaction score
- 346
Hiho,
I've got a question why the following code doesn't work. Might be an issue related to what I've typed in movements.xml.
Source: OTServ 0.6.3 (similar to OTHire)
what should I write in movements.xml + what am I missing?
Kind regards,
t0kenz
NOTE: Doesn't give me an error in the console.
I've got a question why the following code doesn't work. Might be an issue related to what I've typed in movements.xml.
Source: OTServ 0.6.3 (similar to OTHire)
Code:
local light = createConditionObject(CONDITION_LIGHT)
setConditionParam(light, CONDITION_PARAM_LIGHT_LEVEL, 10)
setConditionParam(light, CONDITION_PARAM_LIGHT_COLOR, 215)
function onEquip(cid, item, slot)
if (item.id == 2642) then
doAddCondition(cid, light)
return false
end
end
what should I write in movements.xml + what am I missing?
Kind regards,
t0kenz
NOTE: Doesn't give me an error in the console.
Last edited: