[RELEASE] Free Money NPC menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    pepsi1x1's Avatar Sergeant
    Reputation
    26
    Join Date
    Jul 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [RELEASE] Free Money NPC

    Scripted this NPC to give out free cash, I saw someone asking about it somewhere so decided to have a go.

    add this in to gossip scripts

    ill post the compiled dll later

    Code:
    // A satirical NPC with Gossip Menu and Emotes that gives away free money
    // Scripted by Pepsi1x1
    // Do as you like with this, just scripted for fun, credit me if you like.
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    class SCRIPT_DECL FreeMoneyNPC : 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 FreeMoneyNPC::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
        {
            GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
            Menu->AddItem(0, "1 Gold", 1);
            Menu->AddItem(0, "10 Gold", 2);
            Menu->AddItem(0, "100 Gold", 3);
            Menu->AddItem(0, "1000 Gold", 4);
            Menu->AddItem(0, "10000 Gold", 5);
            Menu->AddItem(0, "Greedy Phat B4stard Gold", 6);
        if(AutoSend)
            Menu->SendTo(Plr);
        }
    
    void FreeMoneyNPC::GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
        {
        Creature * pCreature = (pObject->GetTypeId()==TYPEID_UNIT)?((Creature*)pObject):NULL;
        if(pCreature==NULL)
            return;
    
        switch(IntId)
        {
            case 1:
            {
                uint32 amount = 10000;
                uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
                int32 newgold = currentgold + amount;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Dont spend it all in one shop!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
            }
            break;
            case 2:
            {
                uint32 amount = 100000;
                uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
                int32 newgold = currentgold + amount;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "A modest choice my friend!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
                }
            break;
            case 3:
            {
                uint32 amount = 1000000;
                uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
                int32 newgold = currentgold + amount;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Go forth my friend and spend!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
            }
            break;
            case 4:
            {
                uint32 amount = 10000000;
                uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
                int32 newgold = currentgold + amount;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Have a bag o' sand!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
            }
            break;
            break;
            case 5:
            {
                uint32 amount = 100000000;
                uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
                int32 newgold = currentgold + amount;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "A big sack of cash!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
            }
            break;
            case 6:
            {
                uint32 amount = 999999999;
                Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,amount);
                pCreature->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "WOW, but...im considerably richer than yow!");
                pCreature->Emote(EMOTE_ONESHOT_CHEER);
            }
            break;
        }
    };
    
    
    void FreeMoneyNPC::GossipEnd(Object * pObject, Player* Plr)
    {
        GossipScript::GossipEnd(pObject, Plr);
    }
    
    void SetupFreeMoneyNPC(ScriptMgr * mgr)
    {
        GossipScript * gs = (GossipScript*) new FreeMoneyNPC();
        mgr->register_gossip_script(40000, gs);
    }
    don't forget to modify setup.cpp add this

    Code:
        SetupFreeMoneyNPC(mgr);
    and setup.h add this

    Code:
    void SetupFreeMoneyNPC(ScriptMgr * mgr);
    and heres the sql query all you need to do is in game .npc spawn 40000

    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `mouseFlags`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) values('40000','Mr Free Free','Moneybags','0','0','7','0','0','0',NULL,'1140','0','0','0','1','1','0',NULL);
    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `mountdisplayid`, `equipmodel1`, `equipinfo1`, `equipslot1`, `equipmodel2`, `equipinfo2`, `equipslot2`, `equipmodel3`, `equipinfo3`, `equipslot3`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`) values('40000','1','1','35','2300','2300','0','1','1','1400','3','3.87','0','0','0','0','0','0','0','0','0','0','0','0','0','0','20','0','0','0','0','0','0','2','1','0','0','0','0','0','2.5','8','14','0');
    And as promised here is the .dll and sql file

    >>DOWNLOAD<<

    Last edited by pepsi1x1; 12-04-2007 at 11:16 AM.

    These ads disappear when you log in.

  2. #2
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    This is really cool most server use quest and/or items for this :P +rep

  3. #3
    pepsi1x1's Avatar Sergeant
    Reputation
    26
    Join Date
    Jul 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    Glad you like it, thanks for the rep three more to go, hate bein called a leecher, i just signed up months ago and forgot about these forums lol

  4. #4
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    haha nice script +rep ^^ il use this
    If you need me you have my skype, if you don't have my skype then you don't need me.

  5. #5
    pepsi1x1's Avatar Sergeant
    Reputation
    26
    Join Date
    Jul 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    W00t thanks for the +Rep still calling me a frickin leecher tho! :confused: Use it wisely my friend haha

  6. #6
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    will for mattt to update nice pst bro!

  7. #7
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    Credit to guy on ascentemu.com?

  8. #8
    pepsi1x1's Avatar Sergeant
    Reputation
    26
    Join Date
    Jul 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    Originally Posted by Timmyvacc View Post
    Credit to guy on ascentemu.com?
    that guy is me lol, check the nick

    ive posted there for u
    Last edited by pepsi1x1; 12-04-2007 at 05:02 PM.

  9. #9
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    Oh :P Well nice one

  10. #10
    HumanAlien's Avatar Sergeant
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    nice man! +rep I could :/..

  11. #11
    Gastricpenguin's Avatar Account not activated by Email
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    for sharing a request
    for compiling it


    Your total rep earned is:

    Error: You need to spread more rep in order to give it to pepsi1x1 again.
    Last edited by Gastricpenguin; 12-04-2007 at 07:43 PM.

  12. #12
    Matis02's Avatar Contributor CoreCoins Purchaser
    Reputation
    154
    Join Date
    Mar 2007
    Posts
    377
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    lol you got a new style of repping gastric?


  13. #13
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    Originally Posted by Gastricpenguin View Post
    for sharing a request
    for compiling it


    Your total rep earned is:

    Error: You need to spread more rep in order to give it to pepsi1x1 again.

    lol gg

  14. #14
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    lol. Gastric, very nice btw pepsi1x1, +Rep x4, I'm ganna use on my Server

  15. #15
    cynicalistik's Avatar Private
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [RELEASE] Free Money NPC

    save addin items just to sell fer a bit of gold lol nice, thanxx

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 10
    Last Post: 08-28-2012, 09:21 PM
  2. [Release]City Teleport NPC for Antrix
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-18-2007, 08:38 AM
  3. How to get free money :)
    By pur3fknpawah in forum WoW Scam Prevention
    Replies: 9
    Last Post: 11-25-2007, 10:15 PM
  4. Get free money on PayPal and hack wow accounts on same time
    By Coolbest in forum WoW Scam Prevention
    Replies: 17
    Last Post: 08-20-2007, 08:28 AM
  5. Get free money
    By Ibex_92 in forum World of Warcraft Exploits
    Replies: 26
    Last Post: 08-14-2007, 01:32 AM
All times are GMT -5. The time now is 11:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search