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?
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?
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:>
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!
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:>
Thats true, link is here
http://www.mmowned.com/forums/emulat...your-help.html
The group one will work fine for me. how do i do it so they can only do .recall port mall then
Make a SQL of this to start with
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 commandCode:INSERT INTO `command_overrides` VALUES ('recall', 'L'); INSERT INTO `command_overrides` VALUES ('recall port mall', 'L');
I suggest that you execute that, make a test account with L on. And check if you got any other command.
That's even better!
*Omg Gastic spelled player wrong*
Couldn't resist![]()
Ok gastric if your going to do DLL any chance you could do .home and when typed it will send alliance to:-
and horde to:-0 1519 -8930.96 539.068 116.18
setup there is MapID, ZoneID, X, Y, Z.1 17 -2809.04 -1564.88 232.445
If not mall is located at
1, 16203.329, 16257.29, 20.8266 (MapID, X, Y, Z)
Thanks in advance,
Controlsx2
There you go mate http://www.mmowned.com/forums/emulat...tml#post784413
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.
I trust you know what to do with these files.
PlayerCommands.cpp
Setup.cppCode:#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.hCode:#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
Code:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void SetupPCommands(ScriptMgr * mgr); #endif
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.