Jump to content
  • 0

Question

Hello everyone!

I am not good in C :c

Can you help me to create custom mapflag to disable sit / stand for some maps?

Thank you for any help.

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

 

 

As it is now it isn't compatible, most places that were changed have things that are only available in Hercules, if you need it to be compatible with eAthena just provide a revision number and I'll 'convert' this diff to it.

Thank you! eAthena rev. 15234

I think there is need to add some checks for flag in clif_sitting / clif_standing functions, right?

 

 

There's no need to do that, all sitting requests pass trough ActionRequest_sub.

Here is the new diff: http://pastebin.com/uMgV81Db

Note that can_sit_anywhere is the minimum gm lvl to sit anywhere. Haven't tested this diff in-game, but there where no build errors.

Share this post


Link to post
Share on other sites
  • 0

I coded it for you:

http://pastebin.com/fSPpQgBb

Just do the changes that are depicted in this diff file, save and rebuild your map-server.

I've also added a new group setting:

can_sit_anywhere
Just add it to all groups that can bypass 'nositting' restrictions.

 

Oh, and only player controlled sitting is blocked (e.g. using insert), i.e. if a skill makes a player sit, it'll still do that even with the mapflag enabled, ok?

 

Regards.

Share this post


Link to post
Share on other sites
  • 0

 

I coded it for you:

http://pastebin.com/fSPpQgBb

Just do the changes that are depicted in this diff file, save and rebuild your map-server.

I've also added a new group setting:

can_sit_anywhere
Just add it to all groups that can bypass 'nositting' restrictions.

 

Oh, and only player controlled sitting is blocked (e.g. using insert), i.e. if a skill makes a player sit, it'll still do that even with the mapflag enabled, ok?

 

Regards.

Thank you very much, Pan! This is what I need.

One more question: Is it compatible with eAthena code? 

Share this post


Link to post
Share on other sites
  • 0

As it is now it isn't compatible, most places that were changed have things that are only available in Hercules, if you need it to be compatible with eAthena just provide a revision number and I'll 'convert' this diff to it.

Share this post


Link to post
Share on other sites
  • 0

As it is now it isn't compatible, most places that were changed have things that are only available in Hercules, if you need it to be compatible with eAthena just provide a revision number and I'll 'convert' this diff to it.

Thank you! eAthena rev. 15234

I think there is need to add some checks for flag in clif_sitting / clif_standing functions, right? 

Share this post


Link to post
Share on other sites
  • 0

 

 

As it is now it isn't compatible, most places that were changed have things that are only available in Hercules, if you need it to be compatible with eAthena just provide a revision number and I'll 'convert' this diff to it.

Thank you! eAthena rev. 15234

I think there is need to add some checks for flag in clif_sitting / clif_standing functions, right?

 

There's no need to do that, all sitting requests pass trough ActionRequest_sub.

Here is the new diff: http://pastebin.com/uMgV81Db

Note that can_sit_anywhere is the minimum gm lvl to sit anywhere. Haven't tested this diff in-game, but there where no build errors.

Thank you, Pan. I will test it soon! 

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.