Make a custom command menu

User Tag List

Results 1 to 14 of 14
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make a custom command

    I want to add a command which ive seen in some private servers like .mall and it takes them to the mall.
    Anyway i can do this without messing around with C++ and compiling ascent? Maybe LUA or DB or something?

    Make a custom command
  2. #2
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do i think? No

    But ask gastric/another very experienced emudud for a 100% correct answer. mine is only 98% correct:b
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  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)
    Well, it's possible. As B!atch (damn your name) says, could should as gastic about it.

    Else, it's an easier "noobish" way to do this. That is that you make a customised GM group, that got acces to
    .recall
    .recall port mall
    (Not .recall port only)
    With this they will only be able to do .recall port mall, not anything else. (But you must ofc have the mall in your recall list).

    As I said, noobish way, but it works!

  4. #4
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I heard gastric revived dragonscript and is making new commands:P Actually i saw the thread.. And i might have replied to it xD
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  5. #5
    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)

  6. #6
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The group one will work fine for me. how do i do it so they can only do .recall port mall then

  7. #7
    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)
    Make a SQL of this to start with
    Code:
    INSERT INTO `command_overrides` VALUES ('recall', 'L');
    INSERT INTO `command_overrides` VALUES ('recall port mall', 'L');
    Then, the part that I doesn't know so well. Is that you need to configre your account creation page. So when people create their account they will get gm rank L, and it should only be the recall port mall command

    I suggest that you execute that, make a test account with L on. And check if you got any other command.

  8. #8
    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)
    Or if you give me the coordinates, ill make a DLL script for you, so that whenever a palyer says ".mall" they will be teleported
    Life Puzzler WoW - Website | Forums

  9. #9
    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)
    That's even better!

    *Omg Gastic spelled player wrong*
    Couldn't resist

  10. #10
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok gastric if your going to do DLL any chance you could do .home and when typed it will send alliance to:-
    0 1519 -8930.96 539.068 116.18
    and horde to:-
    1 17 -2809.04 -1564.88 232.445
    setup there is MapID, ZoneID, X, Y, Z.

    If not mall is located at
    1, 16203.329, 16257.29, 20.8266 (MapID, X, Y, Z)


    Thanks in advance,
    Controlsx2

  11. #11
    MisterEMU's Avatar Banned
    Reputation
    38
    Join Date
    Feb 2008
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  12. #12
    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)
    Goddamit MisterEMU, Read the thread. He wants his players to have ONE command, only one. Not a whole set of commands that you have made,(that sucks in my opinion).

    MisterEMU starts to go on my nerves when he is posting that thread everywhere there people are asking about commands.

  13. #13
    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)
    I trust you know what to do with these files.

    PlayerCommands.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
        
    #ifdef WIN32
    #pragma warning(disable:4305)
    #endif
    //If set to true, will enable players to port while in combat
    static bool bypassCombat = false;
    
    static string home = ".home";
    
    void PCommands(Player * Plr, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
    {
    if(Message == home && !Plr->CombatStatus.IsInCombat())
        {
        if(Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5)
            Plr->EventTeleport(1, 17, -2809.04, -1564.88);
        else
            Plr->EventTeleport(0, 1519, -8930.96, 539.068);
        }
    }
    
    
    void SetupPCommands(ScriptMgr * mgr)
    {
     mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &PCommands);
    }
    Setup.cpp
    Code:
    #include "../ascent-world/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) {
        SetupPCommands(mgr);
    }
    
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    Setup.h
    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupPCommands(ScriptMgr * mgr);
    #endif
    Life Puzzler WoW - Website | Forums

  14. #14
    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)
    yea command overrides arent very good in my opinion too, much better if you just edit in the core, like im making donator commands that are not over powered and im removing exploits, like you cant announce spam, cant appear to players of opp faction/ cant spam it.


Similar Threads

  1. How do you make a custom command?
    By ~lonewolf~ in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 11-04-2008, 10:54 PM
  2. How to Make a Custom Graveyard
    By JulianX in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 11-16-2007, 09:32 PM
  3. I need on Antrix making a custom lvling zone
    By bigdevilman in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-30-2007, 10:00 PM
  4. How do i make a custom weapons/riding skill trainer?
    By oliver1993 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 09-30-2007, 08:48 AM
  5. How to Make A Custom Mob
    By JulianX in forum WoW EMU Guides & Tutorials
    Replies: 22
    Last Post: 09-26-2007, 10:48 AM
All times are GMT -5. The time now is 04:39 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