Jump to content


getMaNGOS Eluna Developer
  • Content Count

  • Donations

    0.00 GBP 
  • Joined

  • Last visited

  • Days Won


Rochet2 last won the day on June 3

Rochet2 had the most liked content!

Community Reputation

32 Excellent

About Rochet2

  • Rank
    getMaNGOS Eluna Developer
  • Birthday 01/01/1940

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Rochet2

    How to use EasyBuild

    Did you do a recursive clone? See the instructions for downloading mangos source code.
  2. Rochet2

    The Endless Hunger (Death Knight Quest) broken

    The suggested fix may work, but it is a hack around the limitations of the send/receive AI event functionality. Instead of casting gameobject to a creature ReceiveAIEvent could be expanded to cover WorldObject as sender. @Gutterboy I would suggest either trying to rework the send/receive AI event system to allow WorldObject as sender or similar, or then we can use this kind of approach: diff --git a/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp b/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp index 30b970c..f51a194 100644 --- a/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp +++ b/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp @@ -1001,8 +1001,9 @@ struct npc_unworthy_initiate_anchor : public CreatureScript RegisterCloseInitiate(sender); break; case AI_EVENT_CUSTOM_C: // notify me; @TODO inplement normal ObjectGuid transfer between scripts + if (const GameObjectData* godata = sObjectMgr.GetGOData(data)) { - ObjectGuid guid = ObjectGuid(HIGHGUID_GAMEOBJECT, 0, data); + ObjectGuid guid = ObjectGuid(HIGHGUID_GAMEOBJECT, godata->id, data); if (GameObject *pGo = m_creature->GetMap()->GetGameObject(guid)) NotifyMe(invoker, pGo); break; @Necrovoice The locations are around SD3\scripts\eastern_kingdoms\scarlet_enclave\ebon_hold.cpp(1003) SD3\scripts\eastern_kingdoms\scarlet_enclave\ebon_hold.cpp(1245) It should be noted that I did not test these changes in game.
  3. Rochet2

    Equip Items by Slot

    The problem is that you used Player instead of player. (case sensitive) Player is a global table that contains all player methods. player is the parameter of your Custom_Specialization_Apply function.
  4. Rochet2

    Equip Items by Slot

    Please post the whole code you tried to use.
  5. Rochet2

    global value

    To share data between two files you can also use require mechanic. https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/IMPL_DETAILS.md#script-loading as said in above link, you can use local tbl = require("A") print(tbl[1]) to get a table from a script like: A.lua: return {"Hello world"}
  6. Rochet2

    restart by eluna?

    not possible
  7. Rochet2

    global object variable

    Well, it is not impossible, but it is not intended. The player (or creature etc) can log out or despawn and using the variable would crash or corrupt data without you noticing. Instead you should be storing the guid of the player and each time get the player by guid and check if the return value is nil. If you really want to bend the rules it may be possible to do .. player:SetInvalidation(false) which disables the safety measure for that specific object. That would make you the first one to use it since it was implemented though I believe
  8. Rochet2

    sendmail porblem

    Just player. It seems you are using Eluna which is from 2014. Hmm, what core are you using and where did you get it from?
  9. Rochet2

    prevent to say

    Try using return false; http://www.elunaengine.com/Global/RegisterPlayerEvent.html Also note that there is a hook for commands too.
  10. Rochet2

    sendmail porblem

    It expects a Player object, not a string. A name is a string. So player, not player:GetName(). Seems the documentation is wrong/outdated for the function too. Says it takes in a number when the error clearly says it takes a Player.
  11. Rochet2

    mangos one LNK2019 error in EasyBuild

    It seems that you have chosen to compile in 32 bit but cmake has chosen 64 bit openssl. Maybe easybuild has a problem or maybe you should clear cmake cache or something like that. Or maybe easybuild allows you to choose the library to use and you must choose 32 bit. In general you should probably always prefer to use 64 bit though as that allows the server to use more ram for example. All dependencies must be 32 bit if you are compiling as 32 bit.
  12. Rochet2

    Remove Aura from All around me

    Yes. Functions require you to call them on something. For example if you try to get the nearest player, you need to specify what is the center point of that search. If you wanted to get the nearest player of a creature and you have a creature variable called crea crea:GetNearestPlayer()
  13. Rochet2

    Check Spell On item

    No, you write the enchantment slot, which is one of the values I posted. An item can have multiple enchantments on it, so you must specify which one of them you want ( so from which enchant slot )
  14. Rochet2

    Check Spell On item

    Wowhead says the spell applies an enchant on the item. So you want to look at enchants the item has. More specifically the temporary enchant, as wowhead says. http://www.elunaengine.com/Item/GetEnchantmentId.html enum EnchantmentSlot : uint16 { PERM_ENCHANTMENT_SLOT = 0, TEMP_ENCHANTMENT_SLOT = 1, SOCK_ENCHANTMENT_SLOT = 2, SOCK_ENCHANTMENT_SLOT_2 = 3, SOCK_ENCHANTMENT_SLOT_3 = 4, BONUS_ENCHANTMENT_SLOT = 5, PRISMATIC_ENCHANTMENT_SLOT = 6, // added at apply special permanent enchantment MAX_INSPECTED_ENCHANTMENT_SLOT = 7, PROP_ENCHANTMENT_SLOT_0 = 7, // used with RandomSuffix PROP_ENCHANTMENT_SLOT_1 = 8, // used with RandomSuffix PROP_ENCHANTMENT_SLOT_2 = 9, // used with RandomSuffix and RandomProperty PROP_ENCHANTMENT_SLOT_3 = 10, // used with RandomProperty PROP_ENCHANTMENT_SLOT_4 = 11, // used with RandomProperty MAX_ENCHANTMENT_SLOT = 12 };
  15. Rochet2

    Check Spell On item

    You initially asked what the function does. The function simply returns the spellID from item_template (most likely). Seems like this is not what you are after at all. What is it that you want to do? I do not understand what "check spell on item" means. Does it mean that you want to check if the player has some aura when he .. .. equips the item? Does it mean you want to check if an item is able to cast a spell?

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions


The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®