Jump to content
  • 0

AL_WARP with NO save_point


clerosheen

Question


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

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?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ~

Link to comment
Share on other sites

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