[Release] Egg Hunt Event menu

User Tag List

Results 1 to 15 of 15
  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)

    [Release] Egg Hunt Event

    This is very fun - make your GMs spawn eggs at random (and fairly hidden) places, then set your players loose and have fun looking at them going around hunting for eggs

    Props to wareagle920 for the idea!

    Code:
    //---------------------
    // Egg hunt Event
    // Made by Spidey
    //---------------------
    #include "StdAfx.h"
    #include "Setup.h"
    
    Player * pCollector = NULL;
    uint32 pCeggs = 0;
    static map<uint32, uint32> eggs;
    
    class Egg : public GameObjectAIScript
    {
    public:
    Egg(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
    static GameObjectAIScript *Create(GameObject * GO) { return new Egg(GO); }
    
    void OnActivate(Player * pPlayer)
    {
    if(pPlayer->GetSession()->HasGMPermissions())
    {
    pPlayer->BroadcastMessage("Silly GM, you can't participate in this event.");
    return;
    }
    this->_gameobject->RemoveFromWorld(true);
    uint32 p = pPlayer->GetGUIDLow();
    eggs[p]++;
    if(!pCollector || eggs[p] > pCeggs)
    {
    pCollector = pPlayer;
    pCeggs = eggs[p];
    }
    char msg[1024];
    snprintf(msg, 1024, "%c has found an egg! His score is %u. Leader is %c with %u eggs!", pPlayer->GetName(), eggs[p], pCollector->GetName(), pCeggs);
    sWorld.SendWorldWideScreenText(msg);
    }
    };
    
    void SetupEggs(ScriptMgr *mgr)
    {
    mgr->register_gameobject_script(99000, &Egg::Create);
    }
    Code:
    INSERT INTO gameobject_names (entry,Type,DisplayID,Name) VALUES ('99000','10','1408','Event Egg')
    Last edited by TheSpidey; 03-18-2008 at 10:26 PM.

    [Release] Egg Hunt Event
  2. #2
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    urewin:

    Epic winz. (I have to spread rep. )


  3. #3
    MysterioussouL's Avatar Banned
    Reputation
    339
    Join Date
    Feb 2008
    Posts
    431
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice work (can't rep , need to spread)

  4. #4
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Prolly same with the rep thing.. but this is GG.
    I'll get a rep to you eventually .

  5. #5
    Nallman's Avatar Member
    Reputation
    1
    Join Date
    Sep 2007
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gj man, i'll use this in my server soon haha.

  6. #6
    dann462's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    107
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx! +rep!

  7. #7
    Viter's Avatar Elite User
    Reputation
    410
    Join Date
    Aug 2007
    Posts
    2,153
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good job +rep x2
    soon contributor
    Edit: need to spread :S



  8. #8
    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)
    Nice mate
    glad someone liked my idea

  9. #9
    sixers2329's Avatar Member
    Reputation
    6
    Join Date
    Dec 2006
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wicked!!

  10. #10
    Sylex's Avatar Active Member
    Reputation
    101
    Join Date
    May 2007
    Posts
    141
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When it broadcasts.. it shows up in weird characters. I am using English..

    Like.. õÚand stuff like that.

  11. #11
    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)
    Change %c to %s everywhere

  12. #12
    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, good job +Rep
    EDIT: I gotta spread

  13. #13
    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)
    Ultra Spidey, your Scripts pwn... rep 2x

    Edit: Have to spread
    Last edited by Cursed; 03-23-2008 at 02:35 PM.

  14. #14
    Cenimap's Avatar Member
    Reputation
    11
    Join Date
    Feb 2008
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yeh

    hahaha, thx D DD

  15. #15
    spira's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome, thanks for this

Similar Threads

  1. [Release] Some custom events
    By thijsd in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-14-2008, 04:54 PM
  2. glad. cleaver's fire file egg hunt
    By selafane in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 04-14-2008, 03:04 AM
  3. [Release] Illidan Stormrage Event Script
    By wowcomputer in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 02-06-2008, 12:57 PM
  4. [Release] Portal Lua Event
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 28
    Last Post: 02-04-2008, 09:46 AM
  5. Netherwing Egg Hunting For Quick Rep
    By Therioni in forum World of Warcraft Guides
    Replies: 6
    Last Post: 12-12-2007, 07:48 PM
All times are GMT -5. The time now is 03:14 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