Help with code/script

Post Reply
NekoNinja
Posts: 30
Joined: Thu Jun 01, 2017 10:20 am

Help with code/script

Post by NekoNinja » Tue Jul 17, 2018 9:06 pm

first off I am a beginner at this so the obvious might not be smacking me in the face lol

What I am trying to do:
I just want to customize BCNMs that already exist by altering the mobs appearance and abilities I have asked around and got some help making this happen but i haven't had any success yet.

What I have done:
I tried switching modelid's around in the mob_pools SQL ex. Copied Dark Ixion's model ID and pasted it over Kilioa's (Petrifying Pair)
and it did not work

I tried changing family ID
that did not work

I got the lead to try doing stuff in the mobs actual .lua file within Scripts>Zones>Mobs like you would to alter NPC shops
that did not work either even though I was pretty hopeful at that point

This is what I did within the mob Kilioa.lua
Before Changes it looked like this
-----------------------------------
-- Area: Ghelsba outpost
-- MOB: Kilioa
-- BCNM30
-----------------------------------
function onMobSpawn(mob)
end;

function onMobDeath(mob, player, isKiller)
end;

After changes this is what I got
-----------------------------------
-- Area: Ghelsba outpost
-- MOB: Kilioa
-- BCNM30
-----------------------------------
function onMobSpawn(mob)
mob:setModelId(0x0000B20800000000000000000000000000000000)
end;

function onMobSpawn(mob)
end;

function onMobDeath(mob, player, isKiller)
end;

But when I enter the BCNM Kilioa is still just a stupid lizard...

jono659
Posts: 59
Joined: Sat Mar 24, 2018 1:01 pm

Re: Help with code/script

Post by jono659 » Wed Jul 18, 2018 6:53 am


NekoNinja
Posts: 30
Joined: Thu Jun 01, 2017 10:20 am

Re: Help with code/script

Post by NekoNinja » Wed Jul 18, 2018 5:16 pm

IT WORKED
I missed the re - import the table part in that post i have read it once before and i guess i missed it... this is great!

but anyone who reads this post if you can help me with a Querie to change model ID id rather do it that way but hey this is working and I am happy

jono659
Posts: 59
Joined: Sat Mar 24, 2018 1:01 pm

Re: Help with code/script

Post by jono659 » Thu Jul 19, 2018 1:29 am

tell me the id of the mob and the model string

Post Reply