PDA

View Full Version : [Release] Egg Hunt Event


Kyoshero
04-06-2008, 02:40 AM
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 :D



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')

howling
04-06-2008, 07:18 AM
Dude are you going to release everything that is on MMOWNED??? Jus so i can know:rolleyes::rolleyes::rolleyes:
GIVE THE FUCKING CREDITS ASSHOLE!

$hadow
04-06-2008, 07:43 AM
:D

LarasFriend
04-06-2008, 12:30 PM
man...can someone ban this leecher?
really pissing me off now...at least give credits

$hadow
04-06-2008, 01:29 PM
I have reported that idiot someone need to ban him his like a spam copying other work and posting as his work !!! IDIOT !!!

djoksa
08-03-2008, 09:02 PM
shadow u r retarded moron

Artilles
08-03-2008, 09:38 PM
He is dumb indeed :P but got a LITTLE point ><

nigel2727
08-03-2008, 11:09 PM
Copying of work and giving no Credits aint cool >.>
but Copying of Work and giving credits would be cool ( well i wont think it is like but xD )

D3m0n1x
08-03-2008, 11:43 PM
Djoska... Reviving dead threads ....

wowenable
08-03-2008, 11:45 PM
shadow u r retarded moron

Dude Shut Up You Stupid Noob

Artilles
08-03-2008, 11:47 PM
Well said by the Oomkin :P

wowenable
08-03-2008, 11:48 PM
Well said by the Oomkin :P

Its Not Oomkin Its Moonkin :p

aspiree
08-03-2008, 11:48 PM
rawr love it when newbies try say shit and that about legds makes em look like assholes ><

even more off an ass should i say

Artilles
08-03-2008, 11:49 PM
what with elite pandas?^^

i scared newbies too :O

warlcok
08-03-2008, 11:57 PM
lol this is newb verse vet + :P

soul02
08-04-2008, 12:08 AM
Dude Shut Up You Stupid Noob

lol

Mbz
08-04-2008, 02:43 AM
lol this thread was from 4 months ago wow XD

QQrofl
08-04-2008, 02:53 AM
shadow u r retarded moron

Go away Noob and stop Bumping few month old threads- If your going bump a thread at least read if its useful to people.
---------------------------------------------------------------------------------------------------------------------
http://img1.jurko.net/286.jpg (http://avatars.jurko.net)