Jump to content
  • 0

Changing Character Colision When Sitting On Throne


snifi

Question

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? :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...