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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 10-17-2025 - OUR TOPIC IS RELEVANT! CONTACT US BY THE CONTACTS BELOW
    • Tell a Škoda 1.4 driver that a Škoda 1.8 is faster — and suddenly, you’re riding a mini race car. On the way, they might share random stories — gas prices, the perfect BBQ recipe, or how passengers once called them “just for a minute.” Maybe even how someone left a suitcase full of money in their car once.     The important part? You’ll get there on time, no delays.     Vibe SMS works just as fast — messages fly like that driver who just heard their 1.8 isn’t the fastest.     🌐 https://vibe-sms.net/ 📲 https://t.me/vibe_sms  
    • ⚔️ The Grand Opening Has Arrived! ⚔️ In just a few hours the gate to the eternal battlefield will be open and the war between Order and Chaos will be set once again ! Its time to claim your destiny 🔥 👉 Register now and join the fight today! 🌐 https://l2ovc.com register now : https://l2ovc.com The gates are open the war between Order and Chaos has officially started! 🔥 Join the battlefield NOW and claim your destiny in Order vs Chaos! 💥 Don’t fall behind your faction needs you. ➡️ https://l2ovc.com  
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock