Jump to content

Recommended Posts

  • Active+ Member

service.h

add

#define NEW_PLAYER_COMMANDS

cmd.cpp
add

#ifdef NEW_PLAYER_COMMANDS
ACMD(do_list_commands);
#endif

find

{ "user_horse_feed",    do_user_horse_feed,        0,        POS_FISHING,    GM_PLAYER    },

add

#ifdef NEW_PLAYER_COMMANDS

    { "list_commands",        do_list_commands,            0,            POS_DEAD,    GM_PLAYER    },

#endif

cmd_general.cpp
add to bottom

#ifdef NEW_PLAYER_COMMANDS
ACMD(do_list_commands)
{
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: You must put / at the beginning of all written codes.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: Example code usage is /war.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: war. It is useful for guild structure.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: it is now suitable for Guild structure.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: stat st, dx, ht, iq. Adds 1 point to the status you choose.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: stat-st, dx, ht, iq. Removes 1 point from your selection.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: restart_here. Being dead makes you wake up.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: restart_town. Teleports you to the city if you're dead.");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: ungroup. Allows you to exit your existing groups. ");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: close_shop. It closes your open market. ");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: set_walk_mode. Your character can only walk, not run. ");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: set_run_mode. If your character is walk, it will run. ");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: pkmode. Sets your character's aggression level (guild, free, peace. ");
    ch->ChatPacket(CHAT_TYPE_INFO, "Usage: unmount. Your character dismounts. ");
}
#endif

I wanted to do this so that new players can do something by looking at the commands, I don't know what benefit it will be, maybe very different things can be done based on thought, the rest is up to your imagination.

example usage

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Think 1
  • Love 3

hasanmacit

Link to comment
https://metin2.dev/topic/27571-command-list-for-new-players/
Share on other sites

  • Active+ Member
5 hours ago, hachiwari said:

in such an ugly way?

i am just shared if you think you can do better, don't hesitate, we are here for the community after all, I said that idea can be developed, but I just did it like that.

  • Good 2

hasanmacit

  • 3 weeks later...
  • Active+ Member
On 7/29/2021 at 10:18 PM, Ace said:

do it better.

 

@thread 

thanks very usefull, 

you can customize it for you and that's very good.

thanks bro

  • Metin2 Dev 1
  • Good 1

hasanmacit

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.