Fields of Valor.
Posted: Tue Jan 28, 2014 11:36 am
My server has level cap of 99 and one of our devs tweaked some books to allow them to count even if no exp was received from mobs.
Well we updated recently and that was one of the things we lost, (amongst other things like our devs) so I am trying to piece everything back together. Combing through the forums I came across this link viewtopic.php?f=14&t=481&start=10 but the info in there is either outdated and no longer works, or the more likely reason is that I am as dense as a door knob and just not doing it right.
This is what my lua file looks like now and it is not working... Any advice would be much appreciated! I removed local difference and changed <=15 to 0.
if(killer:getVar("fov_regimeid") == rid) then --player is doing this regime
-- Need to add difference because a lvl1 can xp with a level 75 at ro'maeve
--local difference = math.abs(mob:getMainLvl() - killer:getMainLvl());
if(partyType < 2 and mob:checkBaseExp() and killer:checkDistance(mob) < 100 and difference <= 0) then
--get the number of mobs needed/killed
local needed = killer:getVar("fov_numneeded"..index);
local killed = killer:getVar("fov_numkilled"..index);
if(killed < needed) then --increment killed number and save.
killed = killed+1;
killer:messageBasic(FOV_MSG_KILLED_TARGET,killed,needed);
killer:setVar("fov_numkilled"..index,killed);
Well we updated recently and that was one of the things we lost, (amongst other things like our devs) so I am trying to piece everything back together. Combing through the forums I came across this link viewtopic.php?f=14&t=481&start=10 but the info in there is either outdated and no longer works, or the more likely reason is that I am as dense as a door knob and just not doing it right.
This is what my lua file looks like now and it is not working... Any advice would be much appreciated! I removed local difference and changed <=15 to 0.
if(killer:getVar("fov_regimeid") == rid) then --player is doing this regime
-- Need to add difference because a lvl1 can xp with a level 75 at ro'maeve
--local difference = math.abs(mob:getMainLvl() - killer:getMainLvl());
if(partyType < 2 and mob:checkBaseExp() and killer:checkDistance(mob) < 100 and difference <= 0) then
--get the number of mobs needed/killed
local needed = killer:getVar("fov_numneeded"..index);
local killed = killer:getVar("fov_numkilled"..index);
if(killed < needed) then --increment killed number and save.
killed = killed+1;
killer:messageBasic(FOV_MSG_KILLED_TARGET,killed,needed);
killer:setVar("fov_numkilled"..index,killed);