So your mob sprite .SPR file and .ACT file is called MARINE_SPHERE? Alright.
Step 1. Drop the SPR and ACT file of MARINE_SPHERE in data | sprite | ¸ó½ºÅÍ
Step 2. Open data | lua files | datainfo | npcidentity.lua
Inside type:
["JT_MARINE_SPHERE"] = 2500,
(Note: 2500 is just an example of the mob ID were gonna use)
- Save and close.-
Step 3. Open data | lua files | datainfo | jobname.lua
Inside type:
[jobtbl.JT_MARINE_SPHERE] = "MARINE_SPHERE",
- save and close -
Step 4. Open your mob_db2 database file. Using the official Marine Sphere as a reference...
1142,MARINE_SPHERE,Marine Sphere,Marine Sphere,28,3518,0,461,284,1,120,320,0,40,1,28,28,0,33,50,10,12,0,3,41,0,800,1201,1,1,0,0,0,0,0,0,0,0,1050,5000,1051,2500,1520,10,720,10,717,150,10003,10,0,0,0,0,0,0,4084,1
Now lets put our custom mob information in it..
2500,MARINE_SPHERE,Marine Sphere,Marine Sphere,28,3518,0,461,284,1,120,320,0,40,1,28,28,0,33,50,10,12,0,3,41,0,800,1201,1,1,0,0,0,0,0,0,0,0,1050,5000,1051,2500,1520,10,720,10,717,150,10003,10,0,0,0,0,0,0,4084,1
NOTE: As a side note, your sprite mob files will come into conflict with the official marine sphere sprite as they are named the same. I recommend changing your sprite name if you wish to keep your custom mob separate from the official. So something like MARINE_CSPHERE (c is custom)
Distribute to your players and yourself the updated lua files, and mob .SPR/.ACT file.