Hello people, i dont know what happening :S
when monster dies nothing happens, and sometime it crash the server!
here are the scripts
creaturerevents.xml:
sphere.lua:
and in the monster , for example ice overlord:
So, as you can see, it should set the globalsotargevalue to -1... but it doesnt, somehow this creatureevent isnt working :S
why?? ;O
when monster dies nothing happens, and sometime it crash the server!
here are the scripts
creaturerevents.xml:
Code:
<event type="kill" name="ElementalSphere" event="script" value="sphere.lua"/>
sphere.lua:
Code:
local spheres = {
['energy overlord'] = 8568,
['fire overlord'] = 8569,
['ice overlord'] = 8570,
['earth overlord'] = 8578
}
function onKill(cid, target)
if isPlayer(target) == false then
local name = getCreatureName(target):lower()
if spheres[name] then
setGlobalStorageValue(spheres[name], -1)
end
end
return true
end
and in the monster , for example ice overlord:
Code:
<script>
<event name="ElementalSphere"/>
</script>
So, as you can see, it should set the globalsotargevalue to -1... but it doesnt, somehow this creatureevent isnt working :S
why?? ;O
Last edited: