Replies: 1 comment 1 reply
-
Testing this out in the Uleguerand ID script: mob =
{
APADEMAK = GetFirstID('Apademak'), -- 3 Copies +0 +4 +8
ISGEBIND = GetFirstID('Isgebind'), -- 3 Copies +0 +4 +8
PANTOKRATOR = GetFirstID('Pantokrator'), -- 3 Copies +0 +4 +8
RESHEPH = GetFirstID('Resheph'), -- 3 Copies +0 +4 +8
},
npc =
{
},
}
local ID = zones[xi.zone.ABYSSEA_ULEGUERAND]
print("APADEMAK_OFFSET + 0", ID.mob.APADEMAK + 0)
print("APADEMAK_OFFSET + 4", ID.mob.APADEMAK + 4)
print("APADEMAK_OFFSET + 8", ID.mob.APADEMAK + 8)
print("ISGEBIND_OFFSET + 0", ID.mob.ISGEBIND + 0)
print("ISGEBIND_OFFSET + 4", ID.mob.ISGEBIND + 4)
print("ISGEBIND_OFFSET + 8", ID.mob.ISGEBIND + 8)
print("PANTOKRATOR_OFF + 0", ID.mob.PANTOKRATOR + 0)
print("PANTOKRATOR_OFF + 4", ID.mob.PANTOKRATOR + 4)
print("PANTOKRATOR_OFF + 8", ID.mob.PANTOKRATOR + 8)
print("RESHEPH_OFFSET + 0", ID.mob.RESHEPH + 0)
print("RESHEPH_OFFSET + 4", ID.mob.RESHEPH + 4)
print("RESHEPH_OFFSET + 8", ID.mob.RESHEPH + 8)
Everything works as expected? I did have a little problem with copy/paste, name spelling, etc. so make sure you double check everything is sane and look carefully at what the errors are telling you. The process of caching on startup and re-caching on hot-reload is the same function. The difference you NEED to be careful of is if you do this at the top of a file You can skirt around this by doing a server restart, or hot-reloading the ID file, and then wherever you're using the cached ID. |
Beta Was this translation helpful? Give feedback.
-
I'm going through Abyssea - Uleguerand and Misareaux, checking the pop locations and adding the mobs in IDs.lua. I'm having an issue with adding the new _OFFSET's in for Isgeband, Resheph etc. I've done it the same way other Abyssea zones are done,
Doing so doesn't allowed me to use
xi.abyssea.qmOnTrigger(player, npc, ID.mob.ISGEBIND_OFFSET + 8, { xi.ki.BEGRIMED_DRAGON_HIDE })
ISGEBIND_OFFSET works on its own, but +4 and +8 don't seem to register at all. Am I missing something where NPC/Mobs ID's are cached, because the same method works for the zones already coded in.Beta Was this translation helpful? Give feedback.
All reactions