Jump to content
  • 0

Slightly complicated delay script


rqueen

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

We're planning to add a 0.2 second hard delay on Tarot Card of Fate.
The twist here(and most likely what's making it hard) is I only want the delay to be applied when on GvG or Battleground maps.

What we've come up is to add this right below the last line in CG_TAROTCARD in skill.c

 

Server manages to finish compile but the delay still isn't applied.

 

Note that when I tried this, I made it (sd, CG_TAROTCARD, 3000) or 3 seconds to make sure I can accurately tell if it did work.

 

Never mind, it does work. Apparently GM accounts are immune to it.

 

Close topic please, sorry.

 

New problem, the script works but Kiel still reduces the delay. Is there anyway to make it a fixed delay without any factor to lessen it?

This is on eA btw. Any help would be appreciated.

 

if (map_flag_gvg(bl->m) || map[bl->m].flag.battleground) {
   if (sd) skill_blockpc_start (sd, CG_TAROTCARD, 200);
}
Edited by rqueen
  • Upvote 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

what is Kiel and what you're trying to do?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Thanks for replying, so far you're the only one who bothered. :P

 

Kiel.

 

I'm trying to put a fixed delay on Tarot Card of Fate that's ONLY active in GvG and BG flagged maps.

Edited by rqueen
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...