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:  1
Results 1 to 2 of 2
  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,377
    Post Thanks / Like
    Rep Power
    22
    Reputation
    382

    GMIsland Theme Manager


    Register to remove this ad
    GMIsland Theme Manager is an inspiration from the Gurubashi Arena Theme Generator. I actually code it from 0 without copying any codes from the Gurubashi Theme Manager and just made it look better and clean codes
    How it works?
    You have to click on the npc menu and chose one theme. The theme by default will be spawned for 25 seconds, but you can change it from the beginning of the script in "GMIsland_Theme.cpp"

    Included themes:

    • XMas Pro
    • Alliance Barrack
    • Horde Barrack
    • Twilight Fantasy


    Download
    GMIslandTheme




    Credits : Artister



    › See More: GMIsland Theme Manager



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

  3. #2
    Dr.Core
    Guest

    Register to remove this ad
    Updated:

    Fixxed Many Monster viod's

    PHP Code:
    // Deluxe-WoW © 2014
    // Made by AlexeWarr

    #include "ScriptMgr.h"
    #include "ScriptedCreature.h"
    #include "ScriptedGossip.h"
    #include "Player.h"
    #include <cstring>

    #define COOLDOWN 300 // in seconds (this is the spawntime and cooldown)

    namespace Generator
    {
        
    uint32 GetCooldown()
        {
            if (
    QueryResult cd_query WorldDatabase.PQuery("SELECT `date` FROM `gmi_logs` ORDER BY `id` DESC LIMIT 1"))
                return 
    cd_query ? (time(NULL) - cd_query->Fetch()[0].GetUInt32()) : 0;
            else
                return 
    0;
        }

        
    void SendAnnounceToGMs(const chartextWorldSessionself)
        {
            
    std::map<uint32WorldPacketlocalizedPackets;
            
    SessionMap const& smap sWorld->GetAllSessions();
            for (
    SessionMap::const_iterator iter smap.begin(); iter != smap.end(); ++iter)
            {
                if (
    Playerplayer iter->second->GetPlayer())
                {
                    
    AccountTypes gmLevel player->GetSession()->GetSecurity();

                    if (
    uint32(gmLevel) != 0)
                    {
                        if (
    localizedPackets.find(player->GetSession()->GetSessionDbLocaleIndex()) == localizedPackets.end())
                            
    ChatHandler::BuildChatPacket(localizedPackets[player->GetSession()->GetSessionDbLocaleIndex()], CHAT_MSG_RAID_BOSS_EMOTELANG_UNIVERSALNULLNULLtext);

                        
    player->SendDirectMessage(&localizedPackets[player->GetSession()->GetSessionDbLocaleIndex()]);
                    }
                }
            }
        }
    }; 
    using namespace Generator;

    class 
    GMIsland_Theme_Generator : public CreatureScript
    {
    public:
        
    GMIsland_Theme_Generator() : CreatureScript("GMIsland_Theme_Generator") { }

        
    bool OnGossipHello(PlayerplayerCreaturecreature)
        {
            if (
    creature->GetZoneId() != 876)
            {
                
    creature->Whisper("You can't use this outside the GMIsland"LANG_UNIVERSALplayerfalse);
            }
            else
            {
                if (
    GetCooldown() >= COOLDOWN || GetCooldown() == 0)
                {
                    if (
    QueryResult t_query WorldDatabase.PQuery("SELECT `id`, `name` FROM `gmi_themes` WHERE `id` > 0 AND `available` = 1"))
                    {
                        do
                        {
                            
    Field t_fields t_query->Fetch();
                            
    player->ADD_GOSSIP_ITEM(0t_fields[1].GetString().c_str(), GOSSIP_SENDER_MAINt_fields[0].GetUInt32());
                        } while (
    t_query->NextRow());
                    }
                }
                else
                {
                    
    char message[255];

                    
    sprintf(message"You need to wait %u seconds!", (COOLDOWN GetCooldown()));

                    
    player->ADD_GOSSIP_ITEM(0messageGOSSIP_SENDER_MAIN0);
                }

                
    player->PlayerTalkClass->SendGossipMenu(907creature->GetGUID());
            }
            return 
    true;
        }

        
    bool OnGossipSelect(PlayerplayerCreaturecreatureuint32 senderuint32 actionoverride
        
    {
            switch (
    action)
            {
                case 
    0: {
                    
    player->CLOSE_GOSSIP_MENU();
                } break;
                default: {
                    if (
    QueryResult ts_query WorldDatabase.PQuery("SELECT `entry`, `pos_x`,`pos_y`,`pos_z`,`pos_o` FROM `gmi_templates` WHERE `id` = %u"action))
                    {
                        
    WorldDatabase.PQuery("INSERT INTO `gmi_logs` (`theme_id`, `date`) VALUES (%u, UNIX_TIMESTAMP())"action);
                        do
                        {
                            
    Field ts_fields ts_query->Fetch();

                            
    float ang ts_fields[4].GetFloat();

                            
    float rot2 std::sin(ang 2);
                            
    float rot3 std::cos(ang 2);

                            
    creature->SummonGameObject(ts_fields[0].GetUInt32(), ts_fields[1].GetFloat(), ts_fields[2].GetFloat(), ts_fields[3].GetFloat(), ang00rot2rot3COOLDOWN);
                        } while (
    ts_query->NextRow());

                        if (
    QueryResult tn_query WorldDatabase.PQuery("SELECT `name` FROM `gmi_themes` WHERE `id` = %u LIMIT 1"action))
                        {
                            
    Field tn_fields tn_query->Fetch();

                            
    std::ostringstream message;

                            
    message << "|cffFF0000[GM Island]|r |cff00ccff" << player->GetName().c_str() << "|r changed theme to |cff00FF00" << tn_fields[0].GetString() << "|r.";

                            
    SendAnnounceToGMs(message.str().c_str(), NULL);

                            
    creature->Whisper("New Theme Generated!"LANG_UNIVERSALplayerfalse);
                        }
                    }
                } break;
            }
            
    player->CLOSE_GOSSIP_MENU();

            return 
    true;
        }
    };

    void AddSC_GMIsland_Theminator()
    {
        new 
    GMIsland_Theme_Generator();


  4. Likes matuph liked this post
 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Tags for this Thread

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:05 PM.
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