[Release] Event Commands menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  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] Event Commands

    This will allow players to quickly teleport to the event location, without the need to .summon every one of them.
    A GM says #eventon where he wants players to port to, and from now all players can say #event to teleport there.
    After the event ends the GM says #eventoff to disable the #event command (which will now show a message - "There's no active event at the moment.").

    This works perfectly, I use it on my own server and it's getting huge success. Players much rather say #event than whisper the GMs, and my GMs thanked me because it saved them countless .summons.

    Code:
    //---------------------
    // Name: Event Teleporter v2
    // Author: Spidey
    //---------------------
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    //If set to true, will enable players to #event while in combat
    static bool bypassCombat = false;
    
    static string evon = "#eventon";
    static string evoff = "#eventoff";
    static string evplr = "#event";
    
    //Default Values
    static bool eon = false;
    static uint32 emapid = 0;
    static float ex = 0.0f;
    static float ey = 0.0f;
    static float ez = 0.0f;
    
    void EventChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
    {
       if(Message == evon && pPlayer->GetSession()->HasGMPermissions())
       {
          eon = true;
          ex = pPlayer->GetPositionX();
          ey = pPlayer->GetPositionY();
          ez = pPlayer->GetPositionZ();
          emapid = pPlayer->GetMapId();
       }
       else if(Message == evoff && pPlayer->GetSession()->HasGMPermissions())
       {
          eon = false;
       }
       else if(Message == evplr)
       {
          if(eon)
             if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
                pPlayer->EventTeleport(emapid, ex, ey, ez);
             else
                pPlayer->BroadcastMessage("You can't port while in combat.");
          else
             pPlayer->BroadcastMessage("There's no active event at the moment.");
       }
    }
    
    void SetupEvent(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &EventChat);
    }

    [Release] Event Commands
  2. #2
    Aveelo's Avatar Member
    Reputation
    6
    Join Date
    Mar 2006
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice ty man

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice man, but any setup.h and StdAfx.h ?

  4. #4
    мιяаgє's Avatar Member
    Reputation
    42
    Join Date
    Jan 2008
    Posts
    210
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One of my lead developers made something exactly liek this months and months ago. Posted now.
    Last edited by мιяаgє; 05-19-2008 at 02:41 PM.


  5. #5
    Gastricpenguin's Avatar Legendary
    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)
    If only i could rep you again :P
    Life Puzzler WoW - Website | Forums

  6. #6
    мιяаgє's Avatar Member
    Reputation
    42
    Join Date
    Jan 2008
    Posts
    210
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gastric, I have a feeling this is a script leak because my server has had this exact same script for ages, it was coded by our top coder and he did it himself.. =S


  7. #7
    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)
    I made this back in April, and yes I made it myself.
    Ascent Forums • View topic - [RELEASE] Event Teleport Commands

    As for Setup.cpp and Setup.h, I just shove custom scripts in existing projects because i'm too lazy to make Setup.cpp/h for every script, and the structure is pretty much the same.
    StdAfx.h is in your core.

  8. #8
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see, will +Rep you tomorrow, given out to much rep today it seems like. =S

  9. #9
    мιяаgє's Avatar Member
    Reputation
    42
    Join Date
    Jan 2008
    Posts
    210
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very well. +Rep Spidey. Thanks for showing me my developer was a complete hash..


  10. #10
    Greeko's Avatar Banned
    Reputation
    47
    Join Date
    Feb 2008
    Posts
    366
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Epid Dude! Epic
    +Rep If i can =D

  11. #11
    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)
    Amazing! Nice Spidey you always amaze me +Rep x3

  12. #12
    pachuco55's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would it be possible to implement a separation of alliance and horde? as in horde would be ported to one spot and alliance to another?

  13. #13
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not just do .mass summon or .mass

  14. #14
    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)
    .mass - players can accidently click it or cancel it.
    #event - players can use it whenever they want as long as the event is open.

  15. #15
    pachuco55's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Bloodsin View Post
    Why not just do .mass summon or .mass
    Because often players are either not on yet or not paying attention, so you would need multiple mass summons. With this, the player can come whenever they want, or until the gm turns off the command.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] .mall command to port players
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 08-02-2008, 11:19 AM
  2. [Release] Event - Happy Treehouse
    By wurstbr0t in forum World of Warcraft Emulator Servers
    Replies: 28
    Last Post: 05-06-2008, 05:27 AM
  3. [Release] Event - Crystal Labyrinth
    By wurstbr0t in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-19-2008, 05:44 AM
  4. [RELEASE/EVENT] The MMOWNED Faire.
    By Tobii in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-26-2008, 11:57 AM
All times are GMT -5. The time now is 12:16 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