Follow up 2cee5b6ff1bf53c4ae53bc1278b09ae84b8a0a76

* Some types aren't correct
* Missing '=' for Homunculi's max_sp change. Thank @lighta

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
This commit is contained in:
Cydh Ramdh 2015-03-20 19:37:26 +07:00
parent acffcba636
commit 2b00a1c9d3
2 changed files with 18 additions and 17 deletions

View File

@ -7097,28 +7097,28 @@ Parameter (indexes) for pets are:
2 - HP 9 - intimacy 16 - INT 2 - HP 9 - intimacy 16 - INT
3 - max HP 10 - speed 17 - DEX 3 - max HP 10 - speed 17 - DEX
4 - master AID 11 - looking dir 18 - LUK 4 - master AID 11 - looking dir 18 - LUK
5 - map index 12 - canmove_tick 19 - name 5 - map index 12 - canmove_tick 19 - immune from attacks state
6 - x 13 - STR 6 - x 13 - STR
Parameter (indexes) for mercenaries are: Parameter (indexes) for mercenaries are:
0 - size (big, small, normal) 7 - y 14 - AGI 0 - size (big, small, normal) 7 - kill count 14 - VIT
1 - level 8 - kill count 15 - VIT 1 - HP 8 - life time 15 - INT
2 - HP 9 - life time 16 - INT 2 - max HP 9 - speed 16 - DEX
3 - max HP 10 - speed 17 - DEX 3 - master Character ID 10 - looking dir 17 - LUK
4 - master Character ID 11 - looking dir 18 - LUK 4 - map index 11 - canmove_tick 18 - immune from attacks state
5 - map index 12 - canmove_tick 19 - immune from attacks state 5 - x 12 - STR
6 - x 13 - STR 6 - y 13 - AGI
Parameter (indexes) for elementals are: Parameter (indexes) for elementals are:
0 - size (big, small, normal) 7 - map index 14 - canmove_tick 21 - immune from attacks state 0 - size (big, small, normal) 7 - x 14 - STR
1 - level 8 - x 15 - STR 1 - HP 8 - y 15 - AGI
2 - HP 9 - y 16 - AGI 2 - max HP 9 - life time 16 - VIT
3 - max HP 10 - life time 17 - VIT 3 - SP 10 - mode 17 - INT
4 - SP 11 - mode 18 - INT 4 - max SP 11 - speed 18 - DEX
5 - max SP 12 - speed 19 - DEX 5 - master Character ID 12 - looking dir 19 - LUK
6 - master Character ID 13 - looking dir 20 - LUK 6 - map index 13 - canmove_tick 20 - immune from attacks state
Parameter (indexes) for NPCs are: Parameter (indexes) for NPCs are:

View File

@ -16489,7 +16489,7 @@ BUILDIN_FUNC(setunitdata)
case 2: hd->homunculus.hp = (unsigned int)value; break; case 2: hd->homunculus.hp = (unsigned int)value; break;
case 3: hd->homunculus.max_hp = (unsigned int)value; break; case 3: hd->homunculus.max_hp = (unsigned int)value; break;
case 4: hd->homunculus.sp = (unsigned int)value; break; case 4: hd->homunculus.sp = (unsigned int)value; break;
case 5: hd->homunculus.max_sp; (unsigned int)value; break; case 5: hd->homunculus.max_sp = (unsigned int)value; break;
case 6: hd->homunculus.char_id = (unsigned int)value; break; case 6: hd->homunculus.char_id = (unsigned int)value; break;
case 7: hd->bl.m = (short)value; break; case 7: hd->bl.m = (short)value; break;
case 8: hd->bl.x = (short)value; break; case 8: hd->bl.x = (short)value; break;
@ -16537,7 +16537,7 @@ BUILDIN_FUNC(setunitdata)
case 16: pd->status.int_ = (unsigned int)value; break; case 16: pd->status.int_ = (unsigned int)value; break;
case 17: pd->status.dex = (unsigned int)value; break; case 17: pd->status.dex = (unsigned int)value; break;
case 18: pd->status.luk = (unsigned int)value; break; case 18: pd->status.luk = (unsigned int)value; break;
case 20: pd->ud.immune_attack = (bool)value > 0 ? 1 : 0; break; case 19: pd->ud.immune_attack = (bool)value > 0 ? 1 : 0; break;
default: default:
ShowError("buildin_setunitdata: Unknown data identifier %d for BL_PET.\n", type); ShowError("buildin_setunitdata: Unknown data identifier %d for BL_PET.\n", type);
return SCRIPT_CMD_FAILURE; return SCRIPT_CMD_FAILURE;
@ -16568,6 +16568,7 @@ BUILDIN_FUNC(setunitdata)
case 15: mc->base_status.int_ = (unsigned int)value; break; case 15: mc->base_status.int_ = (unsigned int)value; break;
case 16: mc->base_status.dex = (unsigned int)value; break; case 16: mc->base_status.dex = (unsigned int)value; break;
case 17: mc->base_status.luk = (unsigned int)value; break; case 17: mc->base_status.luk = (unsigned int)value; break;
case 18: mc->ud.immune_attack = (bool)value > 0 ? 1 : 0; break;
default: default:
ShowError("buildin_setunitdata: Unknown data identifier %d for BL_MER.\n", type); ShowError("buildin_setunitdata: Unknown data identifier %d for BL_MER.\n", type);
return SCRIPT_CMD_FAILURE; return SCRIPT_CMD_FAILURE;