Jump to content
  • 0

Item usage delay after post-asura


rqueen

Question


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

Any way to add like 1 to 1.5 seconds delay before a Champion/Monk can use consumable items after he casts Asura Strike?

 

Preferably only when the skill hits, but if it can't be done I'm good with it applying all the time.

Edited by rqueen
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

I think this was already implemented at the latest version.

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:  

Oh, I forgot to mention our server is on eAthena, so I'm thinking I'll need some hard coding for it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Yep, you could try updating your server instead :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

The hints are

  1. Add new SC
  2. Make the SC working after Asura casted, somewhere in skill_casted_id()
  3. Add check if the SC is active, player can consume item. in pc_isUseitem()

in rAthena, the SC is called SC_EXTREMITYFIST2, the checks for the SC are making player receives 0 sp by script (like percentheal), healed by Potion Pitcher, or maybe by Soul Change, etc which the check is in pc_itemheal().

 

you can use Notepad++ then find "SC_EXTREMITYFIST2" on latest rAthena sources, use "Find in files" for entire /src/map directory.

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:  

Thank you, Cydh! I think I kind of get the gist of what you suggested, but unfortunately I have really low knowledge of scripting and programming. :/ Do you think you can help me out with this one?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

or u can just use this itemusagedelayafterskill-rA.diff

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:  

Hello, Cydh! Thank you for this diff and sorry for the late reply.

 

I noticed it says 'rA' at the end, I'm still currently on eAthena, would this work if I applied the diff contents manually? (As in, copy-pasting manually since it's originally for rA emulator)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

patch it manually, and it will works

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:  

Will try it now!

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:  

Doesn't work. :( Encountering a lot of errors, most of which seem due to the emulator difference.

 

unit.c:1015:6: warning: unused variable âtempâ [-Wunused-variable]
unit.c:1014:15: warning: unused variable âtickâ [-Wunused-variable]
unit.c:1013:22: warning: unused variable âtargetâ [-Wunused-variable]
unit.c:1011:29: warning: unused variable âtscâ [-Wunused-variable]
unit.c:1011:24: warning: unused variable âscâ [-Wunused-variable]
unit.c:1010:22: warning: unused variable âtstatusâ [-Wunused-variable]
unit.c:1009:20: warning: unused variable âudâ [-Wunused-variable]
unit.c: At top level:
unit.c:1041:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1041:2: warning: type defaults to âintâ in declaration of âsdâ [-Wimplicit-int]
unit.c:1041:7: error: âsrcâ undeclared here (not in a function)
unit.c:1042:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1042:2: warning: type defaults to âintâ in declaration of âudâ [-Wimplicit-int]
unit.c:1044:2: error: expected identifier or â(â before âifâ
unit.c:1045:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1045:2: warning: type defaults to âintâ in declaration of âscâ [-Wimplicit-int]
unit.c:1046:2: error: expected identifier or â(â before âifâ
unit.c:1049:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1049:2: warning: type defaults to âintâ in declaration of âtempâ [-Wimplicit-int]
unit.c:1049:11: error: âtarget_idâ undeclared here (not in a function)
unit.c:1051:24: error: âskill_numâ undeclared here (not in a function)
unit.c:1051:62: error: invalid type argument of â->â (have âintâ)
unit.c:1056:2: error: expected identifier or â(â before âifâ
unit.c:1059:2: error: expected identifier or â(â before âifâ
unit.c:1111:2: error: expected identifier or â(â before âifâ
unit.c:1123:2: error: expected identifier or â(â before âifâ
unit.c:1126:2: error: expected identifier or â(â before âifâ
unit.c:1129:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1129:2: warning: type defaults to âintâ in declaration of âtscâ [-Wimplicit-int]
unit.c:1129:22: error: âtargetâ undeclared here (not in a function)
unit.c:1131:2: error: expected identifier or â(â before âifâ
unit.c:1134:2: error: expected identifier or â(â before âifâ
unit.c:1138:2: error: expected identifier or â(â before âifâ
unit.c:1141:2: error: expected identifier or â(â before âifâ
unit.c:1144:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1144:2: warning: type defaults to âintâ in declaration of âtstatusâ [-Wimplicit-int]
unit.c:1146:2: error: expected identifier or â(â before âifâ
unit.c:1198:2: error: expected identifier or â(â before âifâ
unit.c:1210:2: error: expected identifier or â(â before âifâ
unit.c:1227:2: error: expected identifier or â(â before âifâ
unit.c:1229:2: error: expected identifier or â(â before âelseâ
unit.c:1232:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1235:2: warning: data definition has no type or storage class [enabled by default]
unit.c:1235:2: warning: type defaults to âintâ in declaration of âtempâ [-Wimplicit-int]
unit.c:1235:2: error: redefinition of âtempâ
unit.c:1049:2: note: previous definition of âtempâ was here
unit.c:1237:2: error: expected identifier or â(â before âswitchâ
unit.c:1293:2: error: expected identifier or â(â before âifâ
unit.c:1301:2: error: expected identifier or â(â before âifâ
unit.c:1307:2: error: expected identifier or â(â before âifâ
unit.c:1342:2: error: expected identifier or â(â before âifâ
unit.c:1345:2: error: expected identifier or â(â before âifâ
unit.c:1348:2: error: expected identifier or â(â before âifâ
unit.c:1358:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1359:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1360:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1361:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1362:4: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â->â token
unit.c:1364:2: error: expected identifier or â(â before âifâ
unit.c:1369:2: error: expected identifier or â(â before âifâ
unit.c:1375:2: error: expected identifier or â(â before âifâ
unit.c:1380:2: error: expected identifier or â(â before âifâ
unit.c:1385:2: error: expected identifier or â(â before âelseâ
unit.c:1388:2: error: expected identifier or â(â before âreturnâ
unit.c:1389:1: error: expected identifier or â(â before â}â token
 
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...