diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/map/script.c b/src/map/script.c index 9b4690ca7..7de21a76f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10015,31 +10015,31 @@ int buildin_getmobdata(struct script_state *st) { } else {
num=st->stack->stack_data[st->start+2].u.num;
name=(char *)(str_buf+str_data[num&0x00ffffff].str);
- setd_sub(map_id2sd(st->rid),name,0,(void *)md->class_);
- setd_sub(map_id2sd(st->rid),name,1,(void *)md->level);
- setd_sub(map_id2sd(st->rid),name,2,(void *)md->hp);
- setd_sub(map_id2sd(st->rid),name,3,(void *)md->max_hp);
- setd_sub(map_id2sd(st->rid),name,4,(void *)md->master_id);
- setd_sub(map_id2sd(st->rid),name,5,(void *)md->bl.m);
- setd_sub(map_id2sd(st->rid),name,6,(void *)md->bl.x);
- setd_sub(map_id2sd(st->rid),name,7,(void *)md->bl.y);
- setd_sub(map_id2sd(st->rid),name,8,(void *)md->speed);
- setd_sub(map_id2sd(st->rid),name,9,(void *)md->mode);
- setd_sub(map_id2sd(st->rid),name,10,(void *)md->state.state);
- setd_sub(map_id2sd(st->rid),name,11,(void *)md->special_state.ai);
- setd_sub(map_id2sd(st->rid),name,12,(void *)md->db->option);
- setd_sub(map_id2sd(st->rid),name,13,(void *)md->db->sex);
- setd_sub(map_id2sd(st->rid),name,14,(void *)md->db->view_class);
- setd_sub(map_id2sd(st->rid),name,15,(void *)md->db->hair);
- setd_sub(map_id2sd(st->rid),name,16,(void *)md->db->hair_color);
- setd_sub(map_id2sd(st->rid),name,17,(void *)md->db->head_buttom);
- setd_sub(map_id2sd(st->rid),name,18,(void *)md->db->head_mid);
- setd_sub(map_id2sd(st->rid),name,19,(void *)md->db->head_top);
- setd_sub(map_id2sd(st->rid),name,20,(void *)md->db->clothes_color);
- setd_sub(map_id2sd(st->rid),name,21,(void *)md->db->equip);
- setd_sub(map_id2sd(st->rid),name,22,(void *)md->db->weapon);
- setd_sub(map_id2sd(st->rid),name,23,(void *)md->db->shield);
- setd_sub(map_id2sd(st->rid),name,24,(void *)md->dir);
+ setd_sub(map_id2sd(st->rid),name,0,(void *)(int)md->class_);
+ setd_sub(map_id2sd(st->rid),name,1,(void *)(int)md->level);
+ setd_sub(map_id2sd(st->rid),name,2,(void *)(int)md->hp);
+ setd_sub(map_id2sd(st->rid),name,3,(void *)(int)md->max_hp);
+ setd_sub(map_id2sd(st->rid),name,4,(void *)(int)md->master_id);
+ setd_sub(map_id2sd(st->rid),name,5,(void *)(int)md->bl.m);
+ setd_sub(map_id2sd(st->rid),name,6,(void *)(int)md->bl.x);
+ setd_sub(map_id2sd(st->rid),name,7,(void *)(int)md->bl.y);
+ setd_sub(map_id2sd(st->rid),name,8,(void *)(int)md->speed);
+ setd_sub(map_id2sd(st->rid),name,9,(void *)(int)md->mode);
+ setd_sub(map_id2sd(st->rid),name,10,(void *)(int)md->state.state);
+ setd_sub(map_id2sd(st->rid),name,11,(void *)(int)md->special_state.ai);
+ setd_sub(map_id2sd(st->rid),name,12,(void *)(int)md->db->option);
+ setd_sub(map_id2sd(st->rid),name,13,(void *)(int)md->db->sex);
+ setd_sub(map_id2sd(st->rid),name,14,(void *)(int)md->db->view_class);
+ setd_sub(map_id2sd(st->rid),name,15,(void *)(int)md->db->hair);
+ setd_sub(map_id2sd(st->rid),name,16,(void *)(int)md->db->hair_color);
+ setd_sub(map_id2sd(st->rid),name,17,(void *)(int)md->db->head_buttom);
+ setd_sub(map_id2sd(st->rid),name,18,(void *)(int)md->db->head_mid);
+ setd_sub(map_id2sd(st->rid),name,19,(void *)(int)md->db->head_top);
+ setd_sub(map_id2sd(st->rid),name,20,(void *)(int)md->db->clothes_color);
+ setd_sub(map_id2sd(st->rid),name,21,(void *)(int)md->db->equip);
+ setd_sub(map_id2sd(st->rid),name,22,(void *)(int)md->db->weapon);
+ setd_sub(map_id2sd(st->rid),name,23,(void *)(int)md->db->shield);
+ setd_sub(map_id2sd(st->rid),name,24,(void *)(int)md->dir);
}
return 0;
}
|