RpGamerX
Members-
Posts
2 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Texas, USA
RpGamerX's Achievements
Poring (1/15)
0
Reputation
-
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
-
[Question] about adding Custom Classes to lua files
RpGamerX replied to Rikimaru's question in Client-side Support
I've successfully added custom skills but, not animations for those skills my skill was poison bolt which I added cause i thought it was odd that sorcerers have a poison magic skill haha. supposedly to actually add animations for those skills you have to hex a client but i thought that the latest lua/lub files have made it possible but i think its still being looked into. Anyway skill id's 699-1000 and 1019-2001 seem to be free for adding custom skills but as i said animations for those skills are a whole different story if anyone has any info on doing that without using xray client or hexing a client that'd be nice. There is however a basic guide on adding them in the wiki it seemed to work just fine for me. RpGamerX Edit As far as i know same goes for custom class sprites you have to use xray unless you use/edit 3rd class sprites thats my understanding anyway, i personally was curious as to whether or not the baby classes can be replaced but I think they are just a scaled down version of the original class.