All Mob LUAs
Posted: Sat Jan 05, 2013 10:36 am
Hi there,
In order to speed up time for myself, I created a script to automatically create a basic LUA script for each mob in each zone. It contains the zone, zone id, mob name, and empty 'onMobX' functions. If the mob's lua was already created, I skipped it. Below is an example of the template.
Due to the fact most mobs probably won't need a LUA, I'm unsure as to whether it should be committed. Until then you can download the attached zip file and save yourself some time creating the LUAs.
In order to speed up time for myself, I created a script to automatically create a basic LUA script for each mob in each zone. It contains the zone, zone id, mob name, and empty 'onMobX' functions. If the mob's lua was already created, I skipped it. Below is an example of the template.
Code: Select all
-----------------------------------
-- Area: Al Zahbi (48)
-- Mob: Acrolith
-----------------------------------
-- require("scripts/zones/Al_Zahbi/MobIDs");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
-----------------------------------
-- onMobSpawn
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngaged(mob,target)
end;
-----------------------------------
-- onMobFight
-----------------------------------
function onMobFight(mob,target)
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
end;