[C++] Sex Change Kit menu

User Tag List

Results 1 to 5 of 5
  1. #1
    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)

    [C++] Sex Change Kit

    Sex Change Kit

    Description:
    This gossip script lets players change their gender. After the kit has been used, it is removed from the player's inventory. Currently, the player has to relog to see the effects. You can mod it to change the player bytes and make the effect immediate.


    Code:
    /*
     * Sex Change Kit
     * Copyright (C) 2008 Spidey <http://www.aspiredev.org/>
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Affero General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU Affero General Public License for more details.
     *
     * You should have received a copy of the GNU Affero General Public License
     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     *
     */
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define KITID	90008
    
    class SCRIPT_DECL sexchange : 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 sexchange::GossipHello(Object* pObject, Player * Plr, bool AutoSend)
    {
    	GossipMenu * Menu;
    	objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 0, Plr);
    	Menu->AddItem(0, "Apply the kit", 1);
    	Menu->AddItem(1, "Leave it for another time", 2);
    	
    	if(AutoSend)
    		Menu->SendTo(Plr);
    };
    
    void sexchange::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    {
    	GossipMenu * Menu;
    	switch(IntId)
    	{
    		case 0:
    		{
    			GossipHello(pObject, Plr, true);
    		}break;
    
    		case 1:
    		{   
    			Plr->setGender(Plr->getGender() ? 0 : 1);
    			Plr->GetItemInterface()->RemoveItemAmt(KITID, 1);
    			Plr->BroadcastMessage("Log out to complete the kit's instructions");
    			Plr->Gossip_Complete();
    		}break;
    		
    		case 2:
    		{
    			Plr->Gossip_Complete();
    		}break;
    
    	}
    };
    
    void sexchange::GossipEnd(Object * pObject, Player* Plr)
    {
    	GossipScript::GossipEnd(pObject, Plr);
    }
    
    void Setupsexchange(ScriptMgr * mgr)
    {
    	GossipScript * gs = (GossipScript*) new sexchange();
    	mgr->register_item_gossip_script(KITID, gs);
    }

    [C++] Sex Change Kit
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very Nice... Could I use it in a Future Repack, With Credits to you ofcourse! +Rep

  3. #3
    Etna's Avatar Banned
    Reputation
    20
    Join Date
    Sep 2007
    Posts
    349
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe nice but i saw this one for just a week ago :S

  4. #4
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats Because they got it from the aspire dev source and copy+pasted it >.>
    Cheese Cake?

  5. #5
    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)
    Yes. I shared it here. Gave full credits to you guys though. But this is the original author posted it so +Rep mate! Love the script.

Similar Threads

  1. Draenei sex change
    By Kore in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-01-2007, 09:16 AM
  2. Possible Sex change?
    By synthblade in forum World of Warcraft General
    Replies: 2
    Last Post: 01-22-2007, 04:14 PM
  3. Sex change
    By general_salsa in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 11-27-2006, 08:26 PM
  4. need someone to give my NE male rogue a sex change!!!
    By keniel in forum World of Warcraft Model Editing
    Replies: 3
    Last Post: 11-05-2006, 11:59 AM
All times are GMT -5. The time now is 10:12 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