[Ascent]Added New GM command !! Change Gender of characters! menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Ascent]Added New GM command !! Change Gender of characters![UPDATE: 07/11]

    Nothing important, but it add's new GM command to change gender


    Started as .gender, but changed it a bit; it's now sub command of .mod
    .mod gender [optional <0 (male) / 1 (female)>]
    Note that player has to relog to see changes
    Code:
    Index: Chat.cpp
    ===================================================================
    --- Chat.cpp (revision 2204)
    +++ Chat.cpp (working copy)
    @@ -181,6 +181,7 @@
      static ChatCommand modifyCommandTable[] =
      {
       { "hp",   'm', NULL, "Health Points/HP", NULL, UNIT_FIELD_HEALTH, UNIT_FIELD_MAXHEALTH, 1 },
    +  { "gender",  'm', &ChatHandler::HandleGenderChanger,   "Changes gender 0=male / 1=female.",  NULL, 0, 0, 0},
       { "mana",    'm', NULL, "Mana Points/MP",   NULL, UNIT_FIELD_POWER1, UNIT_FIELD_MAXPOWER1, 1 },
       { "rage",    'm', NULL, "Rage Points",   NULL, UNIT_FIELD_POWER2, UNIT_FIELD_MAXPOWER2, 1 },
       { "energy",  'm', NULL, "Energy Points",    NULL, UNIT_FIELD_POWER4, UNIT_FIELD_MAXPOWER4, 1 },
    Index: Chat.h
    ===================================================================
    --- Chat.h (revision 2204)
    +++ Chat.h (working copy)
    @@ -310,6 +310,7 @@
      bool HandleMoveCommand(const char* args, WorldSession *m_session);
      bool HandleLearnCommand(const char* args, WorldSession *m_session);
      bool HandleReviveCommand(const char* args, WorldSession *m_session);
    + bool HandleGenderChanger(const char* args, WorldSession *m_session);
      bool HandleMorphCommand(const char* args, WorldSession *m_session);
      bool HandleAddGraveCommand(const char* args, WorldSession *m_session);
      bool HandleAddSHCommand(const char* args, WorldSession *m_session);
    Index: Level3.cpp
    ===================================================================
    --- Level3.cpp (revision 2204)
    +++ Level3.cpp (working copy)
    @@ -38,7 +38,7 @@
       return false;
     
      uint32 type = atol(ptype);
    - float intensity = (float)atof(pintensity);
    + float intensity = atof(pintensity);
     
      BuildWeatherPacket(&data,type,intensity);
      m_session->GetPlayer()->SendMessageToSet(&data,true);
    @@ -3261,4 +3261,31 @@
     
      m_session->GetPlayer()->bGMTagOn = true;
      return true;
    +}
    +
    +bool ChatHandler::HandleGenderChanger(const char* args, WorldSession *m_session)
    +{
    + int gender;
    +
    + Player* target = objmgr.GetPlayer(m_session->GetPlayer()->GetSelection());
    +
    + if(!target) {
    +  SystemMessage(m_session, "Select A Player first.");
    +  return true;
    + }
    +
    + if (!*args)
    + {
    +  if (target->getGender()== 1)
    +   gender = 0;
    +  else
    +   gender = 1;
    + }
    + else
    +  gender = min((int)atoi((char*)args),1);
    +
    + target->setGender(gender);
    + SystemMessage(m_session, "Gender changed to %u",gender);
    +
    + return true;
     }
     No newline at end of file
    Patch download link:
    New Download link: Filebeam - Free Fast File Hosting
    Credit goes to our admin: Aceindy (from The Lowland Realms - Home)

    hope you all like it

    grtz
    Last edited by latruwski; 11-07-2007 at 05:54 AM. Reason: Updated !! NEW Command!

    [Ascent]Added New GM command !! Change Gender of characters!
  2. #2
    Lakelog's Avatar Member
    Reputation
    27
    Join Date
    Jun 2007
    Posts
    118
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Very nice indeed. I've always wanted to know how to make a command, since I'd like one that teleports you to a special place, non-GM... but thanks for sharing

    <SA> Lakylog - Cobylog WoW

  3. #3
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Originally Posted by Lakelog View Post
    Very nice indeed. I've always wanted to know how to make a command, since I'd like one that teleports you to a special place, non-GM... but thanks for sharing
    no problem, i am happy i helped you some way with this

    grtz

  4. #4
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Hmm cool^^ First: How do i use it. (I mean the patch, not the command ) 2nd: Can you make other commands?
    Last edited by Cursed; 10-30-2007 at 01:22 PM.

  5. #5
    Hazshadow's Avatar Member
    Reputation
    10
    Join Date
    Oct 2007
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Hmm... How do you get this to work? I'm a noob at this lol

  6. #6
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Very Nice, latruwski
    Ill +Rep when i can

  7. #7
    Zokmag's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2007
    Posts
    928
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Blizz got owned! xD If you read hot issuses in ticket system it will stand like ''No you can't change gender/race/class! Nice!

  8. #8
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Originally Posted by Zokmag View Post
    Blizz got owned! xD If you read hot issuses in ticket system it will stand like ''No you can't change gender/race/class! Nice!
    hehe ty ty i am sure we can own them even harder though

    grtz

  9. #9
    Dalamar's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2007
    Posts
    388
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Interesting to say the least.. +rep for the share.

  10. #10
    777devil777's Avatar Member
    Reputation
    66
    Join Date
    Sep 2007
    Posts
    396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    0.o

    Now thats just trippy... I wouldn't dare put this on my server at the risk of all my GMs having a gender war

    "I am a hacker, and this is my manifesto. You may stop this individual, but you can't stop us all... after all, we're all alike."

  11. #11
    Dalamar's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2007
    Posts
    388
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Originally Posted by 777devil777 View Post
    0.o

    Now thats just trippy... I wouldn't dare put this on my server at the risk of all my GMs having a gender war
    Simply having that fear should make you question whether or not your GM staff consists of the right people...

  12. #12
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Originally Posted by Dalamar View Post
    Simply having that fear should make you question whether or not your GM staff consists of the right people...
    i agree with you Dalamar

    anyway thx for +Rep and i am glad to see you guys are happy with this
    From now on you can have transexual taurens on your server ! how interesting

    grtz

  13. #13
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Hay, Dude could i ask Were do i
    put the txt Document That i downloaded?

  14. #14
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Originally Posted by Illidan1 View Post
    Hay, Dude could i ask Were do i
    put the txt Document That i downloaded?
    this might help you :

    Save the text in a *.patch file in your computer.
    Then rightclick on your Ascent SVN folder (where the sourcecode is located), now look here :

    Choose "Apply patch" and then open the patch you want to apply.
    (sorry for german...)
    I hope you can at least read the English things from "Tortoise SVN".
    To answer your question - they will be added to the sourcecode.
    If you have any errors, make sure that the patch is compatible with the revision you got (where you want to apply it), as wrs said.
    grtz

  15. #15
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Ascent]Added New GM command !! Change Gender of characters!

    Yeah... I don't have a
    Ascent SVN ?? lol

Page 1 of 2 12 LastLast

Similar Threads

  1. Help with adding a new chat command
    By OverlordMathias in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 05-03-2010, 12:33 PM
  2. [ASCENT] Adding custom GM commands w/ pics!
    By insignia96 in forum WoW EMU Guides & Tutorials
    Replies: 16
    Last Post: 06-13-2009, 11:08 PM
  3. [question] adding new stuff to ascent and WoW
    By Tuup in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 04-09-2008, 12:18 PM
  4. [Question] Adding new maps to Noggit
    By jasperjag in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 01-09-2008, 01:48 PM
  5. New twink items/ Changed items (19)
    By shindaustin in forum WoW Items & Quests
    Replies: 6
    Last Post: 10-30-2007, 08:33 PM
All times are GMT -5. The time now is 04:32 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search