Jump to content
  • 0

Fly wing and Wing of Butterfly


Question

Posted

Can someone help me with this? I want to make Fly Wing and Wing of Butterfly have delay after being hit. I found @go/@warp delay, but I can't seem to find the delay for items... changing it in db doesn't help much as pplayers can still use them after being hit..

10 answers to this question

Recommended Posts

  • 1
Posted

what no go/warp delay patch did you use? I've patterened this from http://rathena.org/w..._delay_when_hit

skill.c

 clif_displaymessage(sd->fd, "Duel: Can't use teleport in duel.");
 break;
}
+	  if(DIFF_TICK(sd->warpgodelay_tick,gettick())>0)
+	  {
+	   clif_displaymessage(sd->fd,"Teleport failed. There is a 5 seconds delay when hit.");
+	   break;
+	  }
if( sd->state.autocast || ( (sd->skillitem == AL_TELEPORT || battle_config.skip_teleport_lv1_menu) && skilllv == 1 ) || skilllv == 3 )
{
 if( skilllv == 1 )

change warpgodelay_tick to whatever your src uses.

  • Upvote 1
Posted

I'm not exactly sure what you mean. There's a 'progressbar' command that will create, well, a progress bar that can make it look like you're "casting" the teleport skill (and it'll be interrupted when you're hit):

*progressbar "<color>",<seconds>;

This command works almost like sleep2, but displays a progress bar

above the head of the currently attached character (like cast bar).

Once the given amount of seconds passes, the script resumes. If the

character moves while the progress bar progresses, it is aborted and

the script ends. The color format is in RGB (0xRRGGBB). The color is

currently ignored by the client and appears always green.

Posted

What Euphy is suggesting.. is that you should try using progressbar within the item script of the fly wing and butterfly so that before you even teleport.. a progress bar will appear and will last for however many seconds and after those seconds are gone.. then you'll teleport. When you're casting the progressbar and if you get hit, you would have to recast it.

Posted

I'm sorry for reviving this topic, but I still can't make it done.. The thing I've tried is to make @go and @warp having 5 second delay after being hit, and change the item script of Fly Wing to " warp "Random",0,0;" , but it doesn't have delay too.. Any optional way of doing this thing?

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