Jump to content
  • 0

request, Latest packet_db.txt


Question

Posted (edited)

Requesting packet_db.txt that is working for 2011-11-22 client.

Or

Any packets that is working with the body relocation problem.

Thank you.

Edited by integral

Recommended Posts

Posted (edited)

Sure, no problem, if only there's a way to make it look in the direction where it is relocating.

You can use:

int dir = map_calc_dir(src, x, y );
unit_setdir(src,dir);

I'm pretty sure that's how they're used, 99% sure, based on how backstab is coded.

Edited by Variant
  • Upvote 1
Posted (edited)

uh, am I doing this right?

	case MO_BODYRELOCATION:
	if (unit_movepos(src, x, y, 1, 1)) {
//			clif_skill_poseffect(src,skillid,skilllv,src->x,src->y,tick);
		clif_slide(src, src->x, src->y); //Poseffect is the one that makes the char snap on the client...
		clif_skill_nodamage(src,src,skillid,skilllv,1);
		int dir = map_calc_dir(src, x, y );
		unit_setdir(src,dir);
		if (sd) skill_blockpc_start (sd, MO_EXTREMITYFIST, 2000);
	}

'cause whenever I compile it, I get this error.

1>..srcmapskill.c(8360): error C2143: syntax error : missing ';' before 'type'
1>..srcmapskill.c(8361): error C2065: 'dir' : undeclared identifier

Thank you.

Edited by integral
Posted

try switching the slide() and nodamage().

You mean like this?

case MO_BODYRELOCATION:
	if (unit_movepos(src, x, y, 1, 1)) {
//			clif_skill_poseffect(src,skillid,skilllv,src->x,src->y,tick);
		clif_skill_nodamage(src,src,skillid,skilllv,1);
		clif_slide(src, src->x, src->y); //Poseffect is the one that makes the char snap on the client...
		int dir = map_calc_dir(src, x, y );
		unit_setdir(src,dir);
		if (sd) skill_blockpc_start (sd, MO_EXTREMITYFIST, 2000);
	}

Still the same.

Posted

Hi, sorry for reviving this topic, but when i tried the code:

case MO_BODYRELOCATION:
 if (unit_movepos(src, x, y, 1, 1)) {
//   clif_skill_poseffect(src,skillid,skilllv,src->x,src->y,tick);
  clif_skill_nodamage(src,src,skillid,skilllv,1);
  clif_slide(src, src->x, src->y); //Poseffect is the one that makes the char snap on the client...
  int dir = map_calc_dir(src, x, y );
  unit_setdir(src,dir);
  if (sd) skill_blockpc_start (sd, MO_EXTREMITYFIST, 2000);
 }

I get an error too like this:

1>..srcmapskill.c(8360): error C2143: syntax error : missing ';' before 'type'
1>..srcmapskill.c(8361): error C2065: 'dir' : undeclared identifier

Anybody knows how can this be fixed? Thanks..

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...