[Release] Guild Housing Item + SQL menu

Shout-Out

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 39
  1. #1
    scott07's Avatar Active Member CoreCoins Purchaser
    Reputation
    22
    Join Date
    Jul 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Guild Housing Item + SQL

    Hey Everyone =] This Is My First Release On Mmowned So.. I Hope You Enjoy. Ok Well Ill Put Up The Source Code + SQLs Needed To Be Executed Here And Also A Pre-Compiled Pack With VCPROJ , DLL , Source Files and The SQL File Needed.

    DO NOT POST MY PACKS ANYWHERE ELSE!!! IF YOU DO SO I WILL TRACK YOU DOWN AND KILL YOUR PERSONALLY!

    GuildPortItem.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    class SCRIPT_DECL GuildPortItem : 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 GuildPortItem::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
    {
    GossipMenu * Menu;
    uint32 TextID = 820;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), TextID, Plr);
    if(Plr->GetGuildId() > 0)
    {
    Menu->AddItem(5, "Go to your Guild Location", 1);
    }
    else
    {
    Menu->AddItem(5, "You know what, never mind", 2);
    }
    if(AutoSend)
    Menu->SendTo(Plr);
    }
    void GuildPortItem::GossipSelectOption(Object * pObject, Player * Plr, uint32 Id, uint32 IntId, const char * Code)
    {
    Item * pItem = (pObject->GetTypeId()==TYPEID_ITEM)?((Item*)pObject):NULL;
    if(pItem==NULL)
    return;
    switch(IntId)
    {
    case 0:
    {
    GossipHello(pItem, Plr, true);
    }
    break;
    case 1:
    {
    QueryResult * result = WorldDatabase.Query( "SELECT * FROM guildlocations WHERE `GuildID`=%u",Plr->GetGuildId() );
    if(result)
    {
    do
    {
    Field * fields = result->Fetch();
    uint32 locmap = fields[1].GetUInt32();
    float x = fields[2].GetFloat();
    float y = fields[3].GetFloat();
    float z = fields[4].GetFloat();
    Plr->SafeTeleport(locmap, 0, LocationVector(x, y, z));
    }
    while (result->NextRow());
    delete result;
    }
    else
    {
    sChatHandler.SystemMessage(Plr->GetSession(),"No location found in the database");
    }
    Plr->Gossip_Complete();
    }
    break;
    case 2:
    {
    Plr->Gossip_Complete();
    }
    break;
    }
    }
    void GuildPortItem::GossipEnd(Object * pObject, Player* Plr)
    {
    GossipScript::GossipEnd(pObject, Plr);
    }
    void SetupGuildPortItem(ScriptMgr * mgr)
    {
    GossipScript * gpItem = (GossipScript*) new GuildPortItem();
    mgr->register_item_gossip_script(34583, gpItem); //GP Item
    }
    Setup.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #include <ScriptSetup.h>
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
        return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    SetupGuildPortItem(mgr);
    
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    Setup.h
    Code:
    #ifndef GuildPortItem_SETUP_H
    #define GuildPortItem_SETUP_H
    
    void SetupGuildPortItem(ScriptMgr * mgr);
    
    #endif

    Guildlocations Structure

    Code:
    CREATE TABLE `guildlocations` (
      `GuildID` int(10) unsigned NOT NULL default '0',
      `locmap` int(10) unsigned NOT NULL default '0',
      `x` float NOT NULL default '0',
      `y` float NOT NULL default '0',
      `z` float NOT NULL default '0',
      UNIQUE KEY `GuildID` (`GuildID`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    Guild Item SQL
    Code:
    INSERT INTO `items` VALUES ('34583', '8', '-1', '-1', 'Guild Item', 'Guild Item', 'Guild Item', 'Guild Item', '42629', '1', '0', '0', '0', '0', '1503', '1791', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '33208', '0', '579', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', 'Let The Guild Battles Begin!', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', null, '0', null, '0', '0', '0', '0', '0', '0', '0', null, null, '0', '-1', '0');
    The DLL Included Is Compiled With Ascent Revision4289

    Download Here!!


    Password - MMOWNED
    Pack Download Guide -
    1.Download Via The Link
    2.Place The DLL Inside Your Script_Bin Folder Where Your Ascent Is Located
    3.Execute The SQL Which Is Included In The Download
    4.Restart Your Server
    Ok Well Your Done.


    To Add Guild Locations
    1.Find Out The ID Of The Guild You Want In The Guilds Table
    2.Put The Id Number Into The Section Id In Your Guildlocations Table
    3.Go To The Place You Want And Type .gps
    4.Now adding the x,y,z in the right places in The Guildlocations Table
    5.Restart Your Server And Your Done
    (You Have To Be In That Guild To Be Teleported To Your Chosen Location)



    REMEMBER THE DLL WILL ONLY WORK WITH ASCENT REVISION 4289!


    Credits:
    Meh for Making it a Pack
    People Off Ascent Emu for the coding
    Last edited by scott07; 03-02-2009 at 06:28 AM. Reason: Typo

    [Release] Guild Housing Item + SQL
  2. #2
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kewl nice release +Rep

    EDIT/ w00t first post hehe


  3. #3
    scott07's Avatar Active Member CoreCoins Purchaser
    Reputation
    22
    Join Date
    Jul 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot =]

  4. #4
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    np nice to know your not a leecher hehe


  5. #5
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep x2
    Even though parts of code were released on ascentemu

  6. #6
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice release, +Rep

  7. #7
    scott07's Avatar Active Member CoreCoins Purchaser
    Reputation
    22
    Join Date
    Jul 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the +Rep, im nearly out of leecher

  8. #8
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are out of leecher Congrats!

  9. #9
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you are your on 6 rep gratz


  10. #10
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol basic yet effective script, im still workin on my stuff, + rep


  11. #11
    scott07's Avatar Active Member CoreCoins Purchaser
    Reputation
    22
    Join Date
    Jul 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeh man your script(s) are gonna own hope it all goes good with it !

  12. #12
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im workin on setting up server for 2.4 atm with sec7 so ill have to finish them later


  13. #13
    scott07's Avatar Active Member CoreCoins Purchaser
    Reputation
    22
    Join Date
    Jul 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    =O im jealous xD i could maybe help ya, just gimme a buzz on msn.

    Corporal!!

  14. #14
    nbhfam's Avatar Member
    Reputation
    5
    Join Date
    Feb 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so Great work !! thx scott07

  15. #15
    Anarchy [RD]'s Avatar Contributor
    Reputation
    132
    Join Date
    Jan 2008
    Posts
    547
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i know ur a good guy +Rep and u get a cookie too

Page 1 of 3 123 LastLast

Similar Threads

  1. [EPIC C++] GUILD HOUSING Script + SQL Query
    By tekkeryole in forum WoW EMU General Releases
    Replies: 14
    Last Post: 08-30-2009, 06:17 AM
  2. [C++ Release] Guild House Portal SCript
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 07-28-2008, 09:16 PM
  3. [Release] Guard Tower to Guild House B
    By Madara Uchiha in forum World of Warcraft Model Editing
    Replies: 7
    Last Post: 04-19-2008, 02:30 PM
  4. [Release] Guild House's Some What!
    By Gamkie in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 03-30-2008, 01:14 PM
  5. [RELEASE] Auction House loading, Commands to load items into Auction Houses
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 10-30-2007, 03:53 PM
All times are GMT -5. The time now is 04:27 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search