Jump to content
  • 0

Help: Sages Autospell


RpGamerX

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/13/12
  • Last Seen:  

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

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...