Welcome to AC Web.
Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 46
  1. #31

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Nice

  2. #32
    hmm compiled witouth anny erros but it don't work :S i have added in db at some items VIP level 1 but nothing changed :S

  3. #33
    ok i have managed to make it work but 1 more thing i want to know :S how do i add an text "Only vips allowed to use this item" in script to apear to each item i add vip level 1 ?

  4. #34
    Quote Originally Posted by darksoke View Post
    ok i have managed to make it work but 1 more thing i want to know :S how do i add an text "Only vips allowed to use this item" in script to apear to each item i add vip level 1 ?
    Ill provide a new version for that, going to update in few moments

  5. #35
    Quote Originally Posted by AlexeWarr View Post
    Ill provide a new version for that, going to update in few moments
    kewl

  6. #36
    Quote Originally Posted by maziu1234 View Post
    kewl
    changed in player.cpp the line where sends the message to:

    if(pProto->vipLevel > GetSession()->GetSecurity())
    {
    ChatHandler(GetSession()).SetSentErrorMessage(true );
    GetSession()->SendAreaTriggerMessage("|cffFF0000You need to be Vip Level %u to equip this item|r", pProto->vipLevel);
    return EQUIP_ERR_NONE;
    }

  7. #37
    hi
    i use you patch
    in VIP Item i can Use item !!! Error : This item cannot be equipped
    My Account Rank is 1

  8. #38
    Quote Originally Posted by lizard-tiny View Post
    hi
    i use you patch
    in VIP Item i can Use item !!! Error : This item cannot be equipped
    My Account Rank is 1
    i have instaled rhe vip aistem and changed moderator to vip ad it work fine

    And alex i was thinking to other thing . Automaticaly apper in items with vip level like a description "only vip allowed ro use this item"


    Sorry for being a grammar nazzi but i'm on my phone......

  9. #39
    ok i got a error fatal: corrupt patch at line 31

    and this is what it is
    diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
    index 1191bc4..c6dda00 100644
    --- a/src/server/game/Globals/ObjectMgr.cpp
    +++ b/src/server/game/Globals/ObjectMgr.cpp
    @@ -2152,7 +2152,7 @@ void ObjectMgr::LoadItemTemplates()
    // 126 127 128 129 130 131 132 133
    "GemProperties, RequiredDisenchantSkill, ArmorDamageModifier, duration, ItemLimitCategory, HolidayId, ScriptName, DisenchantID, "
    // 134 135 136
    - "FoodType, minMoneyLoot, maxMoneyLoot, flagsCustom FROM item_template");
    + "FoodType, minMoneyLoot, maxMoneyLoot, flagsCustom, vipLevel FROM item_template");

    if (!result)
    {
    @@ -2277,6 +2277,7 @@ void ObjectMgr::LoadItemTemplates()
    itemTemplate.MinMoneyLoot = fields[135].GetUInt32();
    itemTemplate.MaxMoneyLoot = fields[136].GetUInt32();
    itemTemplate.FlagsCu = fields[137].GetUInt32();
    + itemTemplate.vipLevel = fields[138].GetUInt32();

    // Checks()

    - - - Updated - - -

    diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
    thats at line 31

  10. #40
    Quote Originally Posted by AlexeWarr View Post
    TrinityCore patch, item require vip level is not a script, is a patch.
    This allows you to give a new option to the items to require a new rank, vip level.


    How to apply this patch?
    • Go into your `world` database, `item_template` and run this query:

    Code:
    ALTER TABLE `item_template`
    	ADD COLUMN `vipLevel` INT NOT NULL DEFAULT '0' AFTER `WDBVerified`;


    As you can see in the patch I added some lines to test the patch, and it works:

    Code:
    +                       if(pProto->vipLevel == 1)
    +                               GetSession()->SendAreaTriggerMessage("requires vip level %u", pProto->vipLevel);
    +                       else
    +                               GetSession()->SendAreaTriggerMessage("doesn't require vip level");


    How to basically use it?

    Code:
    if(pProto->vipLevel > GetSession()->GetSecurity())
    {
    ChatHandler(GetSession()).SetSentErrorMessage(true );
    GetSession()->SendAreaTriggerMessage("|cffFF0000You need to be Vip Level %u to equip this item|r", pProto->vipLevel);
    return EQUIP_ERR_NONE;
    }


    Any feedback pls?
    Link Dead i dont know where to add
    Code:
    + if(pProto->vipLevel == 1)
    + GetSession()->SendAreaTriggerMessage("requires vip level %u", pProto->vipLevel);
    + else
    + GetSession()->SendAreaTriggerMessage("doesn't require vip level");


    How to basically use it?

    Code:
    if(pProto->vipLevel > GetSession()->GetSecurity())
    {
    ChatHandler(GetSession()).SetSentErrorMessage(true );
    GetSession()->SendAreaTriggerMessage("|cffFF0000You need to be Vip Level %u to equip this item|r", pProto->vipLevel);
    return EQUIP_ERR_NONE;
    }

  11. #41
    That your are dumb .. Link is broken.

  12. #42

    Unhappy links are broken

    Hey Alexewarr ,
    Can you re upload patch ? please , really need that

  13. #43
    I have the patch update for rev.61

  14. #44
    Quote Originally Posted by kusanagy View Post
    I have the patch update for rev.61
    sharing is always good!

  15. #45


    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    826

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by mtgcore View Post
    sharing is always good!
    ^ This.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •