Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 8 of 8
  1. #1
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188

    Plastic Surgeon Kit


    Register to remove this ad
    Made by UltraSpidey



    This script allows players to change their race(Depending on if other races allow the class you have)
    Code:
        //========================
        //  Plastic Surgeon Kit
        //    Made by Spidey
        //  Released under
        //    the Care License
        //------------------------
        //  For more fun scripts
        //   visit CodeCraft.us
        //========================
        #include "StdAfx.h"
        #include "Setup.h"
    
        #ifdef WIN32
        #pragma warning(disable:4305)        // warning C4305: 'argument' : truncation from 'double' to 'float'
        #endif
    
        class SCRIPT_DECL Surgeon : 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 Surgeon::GossipHello(Object* pObject, Player * Plr, bool AutoSend)
        {
            GossipMenu * Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 0, Plr);
           uint8 pr = Plr->getRace();
           uint8 pc = Plr->getClass();
           uint32 pf = Plr->GetTeam();
           if(pf == 1 && pr != RACE_BLOODELF && pc != WARRIOR && pc != SHAMAN && pc != DRUID)
              Menu->AddItem(0, "Blood Elf", 10);
           if(pf == 0 && pr != RACE_DRAENEI && pc != WARLOCK && pc != ROGUE && pc != DRUID)
              Menu->AddItem(0, "Draenei", 11);
           if(pf == 0 && pr != RACE_DWARF && pc != WARLOCK && pc != SHAMAN && pc != MAGE && pc != DRUID)
              Menu->AddItem(0, "Dwarf", 3);
           if(pf == 0 && pr != RACE_GNOME && (pc == WARRIOR || pc == ROGUE || pc == MAGE || pc == WARLOCK))
              Menu->AddItem(0, "Gnome", 7);
           if(pf == 0 && pr != RACE_HUMAN && pc != DRUID && pc != SHAMAN && pc != HUNTER)
              Menu->AddItem(0, "Human", 1);
           if(pf == 0 && pr != RACE_NIGHTELF && pc != MAGE && pc != PALADIN && pc != SHAMAN && pc != WARLOCK)
              Menu->AddItem(0, "Night Elf", 4);
           if(pf == 1 && pr != RACE_ORC && pc != MAGE && pc != PALADIN && pc != PRIEST && pc != DRUID)
              Menu->AddItem(0, "Orc", 2);
           if(pf == 1 && pr != RACE_TAUREN && (pc == WARRIOR || pc == SHAMAN || pc == HUNTER || pc == DRUID))
              Menu->AddItem(0, "Tauren", 6);
           if(pf == 1 && pr != RACE_TROLL && pc != WARLOCK && pc != PALADIN && pc != DRUID)
              Menu->AddItem(0, "Troll", 8);
           if(pf == 1 && pr != RACE_UNDEAD && pc != SHAMAN && pc != PALADIN && pc != HUNTER && pc != DRUID)
              Menu->AddItem(0, "Undead", 5);
           Menu->AddItem(1, "I've changed my mind", 100);
            if(AutoSend)
                Menu->SendTo(Plr);
        };
    
        void Surgeon::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
        {
            GossipMenu * Menu;
            switch(IntId)
            {
              case 0:
              {
                 GossipHello(pObject, Plr, true);
              }break;
              case 100:
              {
                 Plr->Gossip_Complete();
              }break;
    
              default:
              {
                 Plr->setRace((uint8)IntId);
                 Plr->GetItemInterface()->RemoveItemAmt(90010, 1);
                 Plr->Gossip_Complete();
                 Plr->BroadcastMessage("Race change complete. Relog to see the effect.");
              }break;
    
            }
        };
    
        void Surgeon::GossipEnd(Object * pObject, Player* Plr)
        {
           GossipScript::GossipEnd(pObject, Plr);
        }
    
        void SetupSurgeon(ScriptMgr * mgr)
        {
           GossipScript * gs = (GossipScript*) new Surgeon();
           mgr->register_item_gossip_script(90010, gs);
        }



    › See More: Plastic Surgeon Kit



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Scout
    Synthetic's Avatar
    Join Date
    Aug 2008
    Posts
    25
    Post Thanks / Like
    Rep Power
    17
    Reputation
    13
    Nice release, very usefull.
    Synth's Scripting


    If u need somekind of help scripting? ask me! i'll gladly make u and simple script for free. These script lang's i know. C++ Blua Lua

  4. #3
    Sergeant

    Join Date
    Jul 2008
    Location
    In Earth
    Posts
    84
    Post Thanks / Like
    Rep Power
    17
    Reputation
    11
    Lol, Plastic Sugeon ... Nice

  5. #4
    Sergeant
    Knaur's Avatar
    Join Date
    Aug 2008
    Location
    No Way (Norway)
    Posts
    70
    Post Thanks / Like
    Rep Power
    19
    Reputation
    171
    hmm, so it does work now? i have tryed get that one to work in ages on the aspire cores.. no luck yet
    Knaur - Founder of Norwegian Elite Team & Creator of Norwegian Elite Databases

  6. #5
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188
    Haven't even tested it yet...but i will be putting this in my server...so i'll post back here later tonight

  7. #6
    Sergeant
    Knaur's Avatar
    Join Date
    Aug 2008
    Location
    No Way (Norway)
    Posts
    70
    Post Thanks / Like
    Rep Power
    19
    Reputation
    171
    i even contacted aspire devs, and did all 100% as they told me. dll loads and item is 100% as it should, but not a shit happens when i right-click on it
    Knaur - Founder of Norwegian Elite Team & Creator of Norwegian Elite Databases

  8. #7
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188
    i'll look into it

  9. #8
    Sergeant
    Coldmrn's Avatar
    Join Date
    Aug 2008
    Location
    durban
    Posts
    91
    Post Thanks / Like
    Rep Power
    17
    Reputation
    25

    Register to remove this ad
    Lol nice, don't get what this is exactly though, but looks like you've put alot of work in this ^_^
    Please goto this site "http://wwww.bux.to/index.php" and refer me when signing up, i have got paid $5,000 to my PayPal account

 

 

Visitors found this page by searching for:

default: { if (Plr->getClass() != IntId)

trinitycore plr->

plastic surgery kit wow

SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 11:29 AM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org