Jump to content
  • 0

Changing Character Colision When Sitting On Throne


Question

Posted

Hello Cheaters,

 

can anyone tell me where i can find the part where the server is deciding whether the character sits on ground or on a static object?

 

there are two problems with sitable objects that i try to solve

 

 - First: When Sitting on a Throne every other Character can do it as well. So you have several characters sitting on the same place. it should be possible only for the first character.....and only for the lord of a castle

 

- Second: Benches and Chairs on the fantasy island can be used too but with a strange sideeffect - character will float in the air + same problem as mentioned before.

 

 

So...to solve these problems we must check whether this static object is being used and also the conditions (Throne->Lord). So only one player can sit at the same time on the throne

 

Additionaly we have to fix the floating Problem on Fantasy Island. Ugly fix: Setting the actual colision radia to smaler ones. this fixes the floating problem but resilts in smaller player colision boxes (harder to target). to solve this we must get a check for sitting on static objects - if it is the case a players colision will become smaller to fit in the bench/chair he wants to sit on.

 

does anyone have an idea where to start? :)

4 answers to this question

Recommended Posts

  • 0
Posted

Hello Cheaters,

 

can anyone tell me where i can find the part where the server is deciding whether the character sits on ground or on a static object?

 

there are two problems with sitable objects that i try to solve

 

 - First: When Sitting on a Throne every other Character can do it as well. So you have several characters sitting on the same place. it should be possible only for the first character.....and only for the lord of a castle

 

- Second: Benches and Chairs on the fantasy island can be used too but with a strange sideeffect - character will float in the air + same problem as mentioned before.

 

 

So...to solve these problems we must check whether this static object is being used and also the conditions (Throne->Lord). So only one player can sit at the same time on the throne

 

Additionaly we have to fix the floating Problem on Fantasy Island. Ugly fix: Setting the actual colision radia to smaler ones. this fixes the floating problem but resilts in smaller player colision boxes (harder to target). to solve this we must get a check for sitting on static objects - if it is the case a players colision will become smaller to fit in the bench/chair he wants to sit on.

 

does anyone have an idea where to start? :)

I think is client part. About check you can find the serverpacket that refer to the throne sit and add a global variable isAlreadySit(). so when someone sit make it true so others cant use /sit  if they are there

  • 0
Posted

I think is client part. About check you can find the serverpacket that refer to the throne sit and add a global variable isAlreadySit(). so when someone sit make it true so others cant use /sit  if they are there

 

Static Object names are missing indeed. But you can edit .dat file in order to have the names displayed correctly. Then put in the chair data serverside to be able to use all objects on fantasy island. Change character colision and you will see the floating problem will be gone (but the dwarf race will have a way smaller colision box if changing it to a constant value^^)

 

Check aCis sources, the sit check is there.

 

Thanks for the sweeT hint. I'll take a look. :)

  • 0
Posted (edited)

About collision, you should override directly getCollisionHeight(). On aCis, for players you should edit it on PcTemplate.getCollisionHeightBySex(Sex sex), for your specific project it's probably simply getCollisionHeight().

 

Sit check exists on aCis, we store the throneId on PcInstance, check _throneId occurrences. It's part of rev 351 and has been slightly fixed later on (can't be checked on free rev yet).

Edited by Tryskell
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • I would like to know about the Acis base of the data pack I use. The server source and server file could not find that information. I respectfully ask for the help of masters.🥲
    • discord - adver745645   https://t.me/adenala2   THERE ARE A LOT OF ADEN AT A VERY GOOD PRICE!!! HURRY  
    • Artificial Intelligence for all Chronicles. Developed in L2 HighFive branch since 2023 but it can be adapted to any project including Fand-C, aCis, Frozen, Scripts even compiled projects such as Lucera with some aditional cost.   Features:  1. Grouped of templates to create your own BOT (including skill, items, appearance, sex e.t.c.) 2. Bot can participate in Olympiad (+ any event with extra cost base on your event engine) 3. Bot walk nearby NPC to receive buff, receive equipment and teleport to any other area 4. Bot will accept party & clan invitation and follow party leader to wherever he go including teleport 6. Bot will trade player back dropped items from PK or fallen Raid Bosses after they visit a peace zone 7. Bot will open store and sell configurable item in configurable prices to players. 8. Bot will attack and cast spells in a realistic way. All classes are used including buffers, summoners, bishops e.t.c. 9. Buffer and bishops will cast buff to party members when player has no available or overriden buffs. 10. Bot will enchant their equipent and re-purchase upon failure. Their weapon will also switched between hero weapon and retail weapon when they need to. 11. Bot can move in complex map system and find monsters or players but they can also follow routes for specific paths using configurable XML if you want to.   Preview of some features: Olympiad Trade Store PvP   Example of a single configurable template in XML: https://pastebin.com/RXZVGCfA   Price: 270 Euro (Compiled) - 450 Euro (Source)    Contact Me Discord: https://discord.gg/gKAsAhJNuq MaxCheaters: https://maxcheaters.com/profile/243647-out-of-time/ Gmail: l2outoftime@gmail.com RCS Message: +30 698 740 8501  
    • Good day! Due to the increasing number of questions, "Do you provide services for the client?" - I decided to answer with a separate topic. I provide services for editing/modifying the client and individual files, namely: 1. Transfer/Creation/Editing locations, geodata.   2. All kinds of work with NPCs, including transfer, animation, adding effects to them and logos.   3. Actually, Transfer/Creation/Edit any EFFECTS, including Abnormal Effects.   4. Any work with weapons, armor, accessories and everything related to it.   5. Create or edit textures, including dynamic textures.   6. Creating a Lobby Screen, Lobby Char Selection (character selection window) and Lobby Char Creation (character creation window). What I don't do: 1. Coding in any form (except for CB).   I started publishing my work recently, here - YouTube And here - RuTube If required, I respect confidentiality. Any other questions? Welcome to Telegram or PM.
  • Topics

×
×
  • Create New...