Server Crash

Post Reply
Nixx
Posts: 12
Joined: Thu Jul 26, 2012 5:30 am

Server Crash

Post by Nixx » Fri Aug 31, 2012 1:27 pm

Hare meat was causing issues with the game server, cant upload the LUA so i'll just paste

-----------------------------------------
-- ID: 4358
-- Hare Meat
-- 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +1
-- Intelligence -3
-----------------------------------------

require("scripts/globals/status");

-----------------------------------------
-- OnItemCheck
-----------------------------------------

function onItemCheck(target)
result = 0
if (target:hasStatusEffect(EFFECT_FOOD) == true) then
result = 246;
end
return result;
end;

-----------------------------------------
-- OnItemUse
-----------------------------------------

function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,1800,4358);
end;

-----------------------------------
-- onEffectGain Action
-----------------------------------

function onEffectGain(target,effect)
target:addMod(MOD_STR, 1);
target:addMod(MOD_INT, -3);
end;

-----------------------------------------
-- onEffectLose Action
-----------------------------------------

function onEffectLose(target,effect)
target:delMod(MOD_STR, 1);
target:delMod(MOD_INT, -3);
end;

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Server Crash

Post by diatanato » Fri Aug 31, 2012 1:39 pm

Nixx wrote: -----------------------------------------
-- ID: 4358
-- Hare Meat
-- 5 Minutes, food effect, Galka Only
-----------------------------------------
For Galka Only.
Why you removed this check, and why you changed time to 30 minutes ?

Post Reply