This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Unsheathe aura  (Read 4331 times)

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
[QUESTION] Unsheathe aura
« on: July 09, 2015, 07:21:04 pm »
Hey everyone!
I wanna make an aura (basically a spell) which would not allow a player to sheathe his weapon even when he casts/uses animations/etc.
Could somebody help me?
« Last Edit: July 11, 2015, 10:09:12 pm by Admin »
or no.
At least I tried.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #1 on: July 09, 2015, 10:53:27 pm »
Don't expect answers within seconds when asking things that nobody in the world may have tried before.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #2 on: July 09, 2015, 10:55:33 pm »
Quote from: "schlumpf"
Don't expect answers within seconds when asking things that nobody in the world may have tried before.
Okay((
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Rochet2

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 59
    • View Profile
    • http://rochet2.github.io/
Re: [QUESTION] Unsheathe aura
« Reply #3 on: July 09, 2015, 10:59:47 pm »
Maybe try messing with Player::SetSheath?
Could be that sheathing cant be forced from server.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #4 on: July 09, 2015, 11:21:39 pm »
Quote from: "Rochet2"
Maybe try messing with Player::SetSheath?
If this has to do with C++ then: 1)I have absolutely no knowledge of it 2) I didnt compile my server myself thus I dont have acces to .cpp files.

I know there are spells (e.g. 73220) which make an item appear in your hands (obviously, it cannot be sheathed). Is it possible to create a similar one with the item I need?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

bizzlesnaff

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 124
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #5 on: July 10, 2015, 12:11:18 am »
But if you play on a server, and for any reason lost the connection..you can still move, and I'm quit sure, that you can still "play with your weapon" :D

Without C++, how do you change anything? Just with database editing?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #6 on: July 10, 2015, 12:48:20 am »
Quote from: "bizzlesnaff"
Without C++, how do you change anything? Just with database editing?
Yeah. And custom patches.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Rochet2

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 59
    • View Profile
    • http://rochet2.github.io/
Re: [QUESTION] Unsheathe aura
« Reply #7 on: July 10, 2015, 12:52:22 am »
Hmm, seems the item is a spell visual.
Its not even positioned right in the hand to be like an equipped weapon. And the model is different from the item model.

Found it with ID 6358 in spellvisualeffectname.dbc

WIth some understanding and client editing I guess it could be possible to for example edit this spell to use some other item model or something.
Never really modded myself though. And dont see how the visual and the spell link together at all ..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #8 on: July 10, 2015, 01:12:41 am »
I went to 73220th record in Spell.dbc. In the 18th column (which  according to wowdev is something called "VisualID2" and links to SpellVisual.dbc) I saw 15446.
The 15446th record in SpellVisual.dbc has a value 14290 in the 5th column, which should link to SpellVisualKit.dbc.
The 14290th record in SpellVisualKit.dbc is basically empty (contains only 0s and -1s) except for the last column, which contains 256 and should link to SpellVisualEffectName.dbc
Now the 256th record in SpellVisualEffectName.dbc has the 3rd column (location of the model according to wowdev) containing "SpellsDynamiteA_SpellObject.mdx", which actually exists in my cliend as an .M2 file rather than .MDX and looks like this (note that the 73220 aura I began with gives your character a frostmourne):
[attachment=0:1heo2lbz]scrin.jpg[/attachment:1heo2lbz]


Now I am lost.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Rochet2

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 59
    • View Profile
    • http://rochet2.github.io/
Re: [QUESTION] Unsheathe aura
« Reply #9 on: July 10, 2015, 01:20:04 am »
And the one there should be is 6358.
Exactly why I said I couldnt find how they are linked : /
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #10 on: July 10, 2015, 01:59:38 am »
Please help!
We need some hardcore modding professionals here!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #11 on: July 12, 2015, 12:04:40 pm »
FOR SARGERAS' SAKE, PEOPLE!
Its been three days already and yet no-one answered. Unbelievable!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #12 on: July 12, 2015, 02:07:46 pm »
This is about the tenth time you bump this post. Stop it, please.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #13 on: July 12, 2015, 04:08:59 pm »
Quote from: "schlumpf"
This is about the tenth time you bump this post. Stop it, please.
Ok(( Do you think anyone will answer?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] Unsheathe aura
« Reply #14 on: July 13, 2015, 01:29:27 pm »
You can make custom spell aura's, e.g:



Here I added a new spell aura where if the player has it some death counter I implemented is not triggered.

You would need to implement it such that if player has this aura then do some combination of methods in order to see if you can make them sheath their weapon. It may be as simple as calling sheath from the server side.

No I cannot teach you C++ or how to compile.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »