Jump to content

Serverscript who checks if you are on a Mount?


Guest xirror123

Recommended Posts

Hello guys,

I want to create a script that checks if you on a mount when you entering a certain zone for example the zone 440.

Also First check if you on a Mount, then write to the player a message that he have 30 sek before he will dismounted.

After 30 sek he will dismounted and can not get on the mount again.

On Blizzard Server this check are used in Dalaran and my C++ knowledge isn't so good to write this :D

If anybody can show me a script I'm very happy :P

Thank you very much :)

Link to comment
Share on other sites

Hello guys,

I want to create a script that checks if you on a mount when you entering a certain zone for example the zone 440.

Also First check if you on a Mount, then write to the player a message that he have 30 sek before he will dismounted.

After 30 sek he will dismounted and can not get on the mount again.

On Blizzard Server this check are used in Dalaran and my C++ knowledge isn't so good to write this :D

If anybody can show me a script I'm very happy :P

Thank you very much :)

Unit.h:        bool IsMounted() const { return HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT ); }

A good place for the trigger would be maybe Player::UpdateAreaDependentAuras .

You can place the timer in Player::Update .

PS: This section is under "Learn", not "please write this patch for me".

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use