浏览代码

Added the official sitting icon support, now while sitting a ugly icon will be displayed in the buff bar. thanks to keikun for providing the id, curse him as much as you like for the icon being horribly ugly <3

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15732 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 年之前
父节点
当前提交
07d301cd6d
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 6 0
      src/map/skill.c
  2. 1 1
      src/map/status.h

+ 6 - 0
src/map/skill.c

@@ -12649,6 +12649,12 @@ int skill_sit (struct map_session_data *sd, int type)
 		range = skill_get_splash(TK_SPTIME, lv);
 	}
 
+	if( type ) {
+		clif_status_load(&sd->bl,SI_SITTING,1);
+	} else {
+		clif_status_load(&sd->bl,SI_SITTING,0);
+	}
+
 	if (!flag) return 0;
 
 	if(type) {

+ 1 - 1
src/map/status.h

@@ -1175,7 +1175,7 @@ enum si_type {
 	SI_EQUIPED_FLOOR = 571,
 	SI_ODINS_POWER = 583,
 	SI_ALL_RIDING = 613,//awesome 571-613 gap, we're missing quite a few stuff here.
-
+	SI_SITTING = 622,
 	SI_MAX,
 };