Jump to content
  • 0

Manhole Bug


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

All jobs can use pots and can attack while in manhole. . . how to fix this...

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

just comment out the SC_MANHOLE

@clif.c


if (sd->sc.count &&
(sd->sc.data[sC_TRICKDEAD] ||
sd->sc.data[sC_AUTOCOUNTER] ||
sd->sc.data[sC_BLADESTOP] ||
sd->sc.data[sC__MANHOLE] || 
sd->sc.data[sC_CURSEDCIRCLE_ATKER] ||
sd->sc.data[sC_CURSEDCIRCLE_TARGET] ))
return;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

you mean add // ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

oh..wait..what are you asking enabling

All jobs can use pots and can attack while in manhole

or fixing it???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

oh..wait..what are you asking enabling

All jobs can use pots and can attack while in manhole

or fixing it???

i think he just want to disable using pots and making an attack while the character is inside the manhole.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

yah that's what i want. . is it possible?

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:  

oh..wait..what are you asking enabling

All jobs can use pots and can attack while in manhole

or fixing it???

According to iRO wiki: http://irowiki.org/wiki/Manhole

Manholed players can still use items as normal.

So I don't think it needs to be fixed o_O

yah that's what i want. . is it possible?

I believe this is what Malufett was referring to: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/clif.c

if (sd->sc.count &&
(sd->sc.data[sC_TRICKDEAD] ||
sd->sc.data[sC_AUTOCOUNTER] ||
sd->sc.data[sC_BLADESTOP] ||
//sd->sc.data[sC__MANHOLE] ||
sd->sc.data[sC_CURSEDCIRCLE_ATKER] ||
sd->sc.data[sC_CURSEDCIRCLE_TARGET] ))
return;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

my players can still attack while in the manhole

oh..wait..what are you asking enabling

All jobs can use pots and can attack while in manhole

or fixing it???

According to iRO wiki: http://irowiki.org/wiki/Manhole

Manholed players can still use items as normal.

So I don't think it needs to be fixed o_O

yah that's what i want. . is it possible?

I believe this is what Malufett was referring to: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/clif.c

if (sd->sc.count &&
(sd->sc.data[sC_TRICKDEAD] ||
sd->sc.data[sC_AUTOCOUNTER] ||
sd->sc.data[sC_BLADESTOP] ||
//sd->sc.data[sC__MANHOLE] ||
sd->sc.data[sC_CURSEDCIRCLE_ATKER] ||
sd->sc.data[sC_CURSEDCIRCLE_TARGET] ))
return;

my players can still attack while in the manhole xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

the code above in clif.c is the one that makes the target under manhole to stop them from attacking...

and to stop targets to use item @pc.c

//Prevent mass item usage. [skotlex]
if( DIFF_TICK(sd->canuseitem_tick, tick) > 0 ||
 (itemdb_iscashfood(sd->status.inventory[n].nameid) && DIFF_TICK(sd->canusecashfood_tick, tick) > 0)
)
 return 0;

if( sd->sc.count && (
sd->sc.data[sC_BERSERK] ||
(sd->sc.data[sC_GRAVITATION] && sd->sc.data[sC_GRAVITATION]->val3 == BCT_SELF) ||
 sd->sc.data[sC_TRICKDEAD] ||
 sd->sc.data[sC_HIDING] ||
 sd->sc.data[sC__SHADOWFORM] ||
 (sd->sc.data[sC_NOCHAT] && sd->sc.data[sC_NOCHAT]->val1&MANNER_NOITEM)
))
 return 0;

just add 'sd->sc.data[sC__MANHOLE]'

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:  

You must save and recompile your emulator afterwards for it to take affect :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

yah.. . done with it. . . but still . . . they can attack

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

if you were using the latest revision

they can attack

this will be solved....

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