[RELEASE][C++]Level Helper! menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [RELEASE][C++]Level Helper!

    Level helper i made for my server Hypnotic WoW.

    place coords for each zone you want where

    "mapid, x, y, z" Pretty straight forward. Go to your location.. .gps and type coords in.

    for your ID of stone.. look for #define STONEID at the top. Default is: 1200001

    Code:
    /*Made by Performer of MMOwned and HypnoticWoW (www.hypnotic-wow.net)
    give proper credits when re-releasing this script.
    
    Performer, 30th September 2008*/
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define STONEID 1200001
    
    class SCRIPT_DECL LevelHelper : public GossipScript
    {
        public:
            void GossipHello(Object * pObject, Player* Plr, bool AutoSend);
            void GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
            void GossipEnd(Object * pObject, Player* Plr);
            void Destroy()
            {
                delete this;
            }
    };
    
    void LevelHelper::GossipHello(Object* pObject, Player * Plr, bool AutoSend)
    {
        if(Plr->CombatStatus.IsInCombat())
        {
            Plr->BroadcastMessage("You are in combat!");
            return; //stops the rest of the script from executing
        }
    
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        if(Plr->GetTeam() == 0)
        {
            Menu->AddItem(0, "Take me To Leveling Zone", 40);
            Menu->AddItem(0, "Take Me To Alliance Mall", 85);  //alliance
            Menu->AddItem(0, "Remove Rez Sickness", 80);
            Menu->SendTo(Plr);
        }
        else
        {
            Menu->AddItem(0, "Take Me To Leveling Zone", 50);
            Menu->AddItem(0, "Take Me To Horde Mall", 86);     //horde
            Menu->AddItem(0, "Remove Rez Sickness", 80);
            Menu->SendTo(Plr);
        }
    
        if(AutoSend)
            Menu->SendTo(Plr);
    }
    
    void LevelHelper::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    {
        GossipMenu * Menu;
        switch(IntId) 
        {
    
            case 80: //Remove Rez Sickness
            {
                Plr->addSpell(15007);
                Plr->removeSpell(15007,0,0,0);
            }break;
    
            case 85:  //Alliance Mall
            {
                Plr->EventTeleport(mapid, x, y, z);
                Plr->Gossip_Complete();
            }break;
    
            case 86:  //Horde Mall
            {
                Plr->EventTeleport(mapid, x, y, z);
                Plr->Gossip_Complete();
            }break;
    
            case 40:  //Alliance Level Locations
            {
                if(Plr->getLevel() >= 1 && Plr->getLevel() <= 9)
                {
                    Plr->EventTeleport(mapid, x, y, z)    
                }
                else
                if(Plr->getLevel() >= 10 && Plr->getLevel() <= 13)
                {
                    Plr->EventTeleport(mapid, x, y, z); 
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 14 && Plr->getLevel() <= 17)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 18 && Plr->getLevel() <= 21)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 22 && Plr->getLevel() <= 25)  
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 26 && Plr->getLevel() <= 29)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 30 && Plr->getLevel() <= 33)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 34 && Plr->getLevel() <= 37)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 38 && Plr->getLevel() <= 41)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 42 && Plr->getLevel() <= 45)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 46 && Plr->getLevel() <= 49)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 50 && Plr->getLevel() <= 53)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 54 && Plr->getLevel() <= 57)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 58 && Plr->getLevel() <= 61)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 62 && Plr->getLevel() <= 64)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 65 && Plr->getLevel() <= 66)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 67 && Plr->getLevel() <= 68)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 69 && Plr->getLevel() <= 69)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() == 70)
                {
                    Plr->BroadcastMessage("You are Level 70. You no longer need this stone");
                }
    
            }break;
        
    
            case 50:  //Horde Level Locations
            {
                if(Plr->getLevel() >= 1 && Plr->getLevel() <= 9)
                {
                    Plr->EventTeleport(mapid, x, y, z)    
                }
                else
                if(Plr->getLevel() >= 10 && Plr->getLevel() <= 13)
                {
                    Plr->EventTeleport(mapid, x, y, z); 
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 14 && Plr->getLevel() <= 17)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 18 && Plr->getLevel() <= 21)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 22 && Plr->getLevel() <= 25)  
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 26 && Plr->getLevel() <= 29)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 30 && Plr->getLevel() <= 33)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 34 && Plr->getLevel() <= 37)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 38 && Plr->getLevel() <= 41)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 42 && Plr->getLevel() <= 45)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 46 && Plr->getLevel() <= 49)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 50 && Plr->getLevel() <= 53)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 54 && Plr->getLevel() <= 57)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 58 && Plr->getLevel() <= 61)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 62 && Plr->getLevel() <= 64)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 65 && Plr->getLevel() <= 66)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 67 && Plr->getLevel() <= 68)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() >= 69 && Plr->getLevel() <= 69)
                {
                    Plr->EventTeleport(mapid, x, y, z);
                    Plr->Gossip_Complete();                                               
                }
                else
                if(Plr->getLevel() == 70)
                {
                    Plr->BroadcastMessage("You are Level 70. You no longer need this stone");
                }
            }break;
        }
            Plr->Gossip_Complete();
    }
    void LevelHelper::GossipEnd(Object * pObject, Player* Plr)
    {
        GossipScript::GossipEnd(pObject, Plr);
    }
    
    void SetupLevelHelper(ScriptMgr * mgr)
    {
    GossipScript * gs = (GossipScript*) new LevelHelper();
    mgr->register_item_gossip_script(STONEID, gs);
    sLog.outColor(TBLUE, "Level Helper made by Performer of MMOwned (www.hypnotic-wow.com)");
    sLog.outColor(TNORMAL, "n");
    }
    Thanks
    Performer


    [RELEASE][C++]Level Helper!
  2. #2
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    16 views no comment?


  3. #3
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Very nice Although I will probably never use...
    +Rep when I can, I was going to wait till cooldown runs out till replying :P

  4. #4
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tnx

    fillah


  5. #5
    kainmcloud's Avatar Banned
    Reputation
    15
    Join Date
    Oct 2007
    Posts
    43
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep When I Can Thanks!

  6. #6
    Roger Fang's Avatar Banned
    Reputation
    17
    Join Date
    Aug 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent!

  7. #7
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice! +Rep

  8. #8
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice job man. +rep

    I live in a shoe

  9. #9
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tnx guys 1 more rep to go!!!!

    EDIT: YAY CONTRIB
    Last edited by Performer; 10-12-2008 at 04:13 PM.


  10. #10
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice mate! +Rep

  11. #11
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is noobish......+rep x2
    Edit: Need to Spread

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  12. #12
    Greed's Avatar Angry 12yearolds FTL
    Reputation
    -3
    Join Date
    Oct 2007
    Posts
    1,129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, +rep

  13. #13
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    works great on my server o wait u work on my server lol j/k great job tho man.

  14. #14
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would be awesome if you made it load the locations and text from the DB

  15. #15
    wildman4sure's Avatar Member
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wanted to say thank you Performer for all you do for us on the server...

    Great work and nice of you to share this with the community

    It is a pleasure having you on the server and you are a very valuable member of the team...

    You know I would rep but I gotta spread...
    Nothing in this world can take the place of persistence. Talent will not; nothing is more common than unsuccessful people with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Level Helper
    By Dr. Livingstone in forum WoW EMU General Releases
    Replies: 14
    Last Post: 06-13-2009, 01:18 AM
  2. [C++][Share..ish] Level Helper
    By Sounddead in forum WoW EMU General Releases
    Replies: 2
    Last Post: 12-29-2008, 05:05 AM
  3. [Release] OnPvPKill Level up
    By mager1794 in forum WoW EMU General Releases
    Replies: 5
    Last Post: 08-23-2008, 11:40 AM
  4. [Release]: Custom level 80 Weapons
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-15-2007, 04:19 PM
  5. [Release]Ascent GM Helper Website
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-07-2007, 09:01 AM
All times are GMT -5. The time now is 06:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search