Jump to content
  • 0

AL_WARP with NO save_point


Question

Posted

i want to remove save point on AL_WARP ( Warp Portal )

This is the real script on trunk/src/map/skill.c

case AL_WARP:

if(sd)

{

clif_skill_warppoint(sd, skillid, skilllv, sd->status.save_point.map,

(skilllv >= 2) ? sd->status.memo_point[0].map : 0,

(skilllv >= 3) ? sd->status.memo_point[1].map : 0,

(skilllv >= 4) ? sd->status.memo_point[2].map : 0

);

}

return 0; // not to consume item.

i want change to

case AL_WARP:

if(sd)

{

clif_skill_warppoint(sd, skillid, skilllv, sd->status.memo_point[0].map : 0,

(skilllv >= 2) ? sd->status.memo_point[0].map : 0,

(skilllv >= 3) ? sd->status.memo_point[1].map : 0,

(skilllv >= 4) ? sd->status.memo_point[2].map : 0

);

}

return 0; // not to consume item.

will this work?

1 answer to this question

Recommended Posts

Posted

i think like this should be okay ~

clif_skill_warppoint(sd, skillid, skilllv,
sd->status.memo_point[0].map,
(skilllv >= 2) ? sd->status.memo_point[1].map : 0,
(skilllv >= 3) ? sd->status.memo_point[2].map : 0,
0
);

set it to 0 instead of having same map for memo ~

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...