summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-24 13:03:14 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-24 13:03:14 +0000
commitf10037484b587881908c535e53b65e3477d99f08 (patch)
tree1a2482049276c8b361fac15d1136e472bd5c3796 /src/map/clif.c
parent12856496c40e9d6ec8f823e5a49dcea626ef98cd (diff)
downloadhercules-f10037484b587881908c535e53b65e3477d99f08.tar.gz
hercules-f10037484b587881908c535e53b65e3477d99f08.tar.bz2
hercules-f10037484b587881908c535e53b65e3477d99f08.tar.xz
hercules-f10037484b587881908c535e53b65e3477d99f08.zip
Added official elemental converter creation window handling, bugreport:5144
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15242 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a471bfc06..1f7ab0be4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10550,6 +10550,9 @@ void clif_parse_SelectArrow(int fd,struct map_session_data *sd)
case AC_MAKINGARROW:
skill_arrow_create(sd,RFIFOW(fd,2));
break;
+ case SA_CREATECON:
+ skill_produce_mix(sd,SA_CREATECON,RFIFOW(fd,2),0,0,0, 1);
+ break;
case WL_READING_SB:
skill_spellbook(sd,RFIFOW(fd,2));
break;
@@ -15015,7 +15018,37 @@ void clif_parse_debug(int fd,struct map_session_data *sd)
ShowDump(RFIFOP(fd,0), packet_len);
}
+/*==========================================
+ * Server tells client to display a window similar to Magnifier (item) one
+ * Server populates the window with avilable elemental converter options according to player's inventory
+ *------------------------------------------*/
+int clif_elementalconverter_list(struct map_session_data *sd) {
+ int i,c,view,fd;
+
+ nullpo_ret(sd);
+
+ fd=sd->fd;
+ WFIFOHEAD(fd, MAX_SKILL_PRODUCE_DB *2+4);
+ WFIFOW(fd, 0)=0x1ad;
+
+ for(i=0,c=0;i<MAX_SKILL_PRODUCE_DB;i++){
+ if( skill_can_produce_mix(sd,skill_produce_db[i].nameid,23, 1) ){
+ if((view = itemdb_viewid(skill_produce_db[i].nameid)) > 0)
+ WFIFOW(fd,c*2+ 4)= view;
+ else
+ WFIFOW(fd,c*2+ 4)= skill_produce_db[i].nameid;
+ c++;
+ }
+ }
+ WFIFOW(fd,2) = c*2+4;
+ WFIFOSET(fd, WFIFOW(fd,2));
+ if (c > 0) {
+ sd->menuskill_id = SA_CREATECON;
+ sd->menuskill_val = c;
+ }
+ return 0;
+}
/**
* Rune Knight
**/