RpGamerX Posted February 23, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 02/13/12 Last Seen: June 6, 2013 Share Posted February 23, 2012 Hello, I am trying to figure out how to add skills to the autospell cast menu if at all possible at the moment it only seems to be able to support up to 7 skills being displayed at a time. I'm guessing I have to adjust something here but what that something is I am very unsure of. /// Presents a list of skills that can be auto-spelled (ZC_AUTOSPELLLIST). /// 01cd { <skill id>.L }*7 void clif_autospell(struct map_session_data *sd,int skilllv) { int fd; nullpo_retv(sd); fd=sd->fd; WFIFOHEAD(fd,packet_len(0x1cd)); WFIFOW(fd, 0)=0x1cd; if(skilllv>0 && pc_checkskill(sd,MG_NAPALMBEAT)>0) WFIFOL(fd,2)= MG_NAPALMBEAT; else WFIFOL(fd,2)= 0x00000000; if(skilllv>1 && pc_checkskill(sd,MG_COLDBOLT)>0) WFIFOL(fd,6)= MG_COLDBOLT; else WFIFOL(fd,6)= 0x00000000; if(skilllv>1 && pc_checkskill(sd,MG_FIREBOLT)>0) WFIFOL(fd,10)= MG_FIREBOLT; else WFIFOL(fd,10)= 0x00000000; if(skilllv>1 && pc_checkskill(sd,MG_LIGHTNINGBOLT)>0) WFIFOL(fd,14)= MG_LIGHTNINGBOLT; else WFIFOL(fd,14)= 0x00000000; if(skilllv>4 && pc_checkskill(sd,MG_SOULSTRIKE)>0) WFIFOL(fd,18)= MG_SOULSTRIKE; else WFIFOL(fd,18)= 0x00000000; /*if(skilllv>7 && pc_checkskill(sd,MG_FIREBALL)>0) WFIFOL(fd,22)= MG_FIREBALL; else WFIFOL(fd,22)= 0x00000000; if(skilllv>9 && pc_checkskill(sd,MG_FROSTDIVER)>0) WFIFOL(fd,26)= MG_FROSTDIVER; else WFIFOL(fd,26)= 0x00000000;*/ if(skilllv>7 && pc_checkskill(sd,MG_POISONBOLT)>0) WFIFOL(fd,22)= MG_POISONBOLT; else WFIFOL(fd,22)= 0x00000000; if(skilllv>9 && pc_checkskill(sd,NPC_DARKSTRIKE)>0) WFIFOL(fd,26)= NPC_DARKSTRIKE; else WFIFOL(fd,26)= 0x00000000; WFIFOSET(fd,packet_len(0x1cd)); sd->menuskill_id = SA_AUTOSPELL; sd->menuskill_val = skilllv; } at the moment i have fireball and frost driver disabled and can successfully autocast my poisonbolt and darkstrike but thats as far as ive gotten. Any help is appreciated Thanks RpGamerX Quote Link to comment Share on other sites More sharing options...
Question
RpGamerX
Hello,
I am trying to figure out how to add skills to the autospell cast menu if at all possible
at the moment it only seems to be able to support up to 7 skills being displayed at a time.
I'm guessing I have to adjust something here but what that something is I am very unsure of.
at the moment i have fireball and frost driver disabled and can successfully autocast my poisonbolt and darkstrike but thats as far as ive gotten.
Any help is appreciated
Thanks
RpGamerX
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.