Jump to content
  • 0

Fly wing and Wing of Butterfly


Craves

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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
Link to comment
Share on other sites


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


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

That was what I was saying... That only gives delay for item use. What I want is delay after being hit..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

What I meant is that, every time you get hit, you have to wait few second before you are able to use Fly Wing or Wing of Butterfly..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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.

Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

Can anyone help me with this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

Is this not possible?

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