Can NPCs cast GM commands? menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did, and I look at your tutorial for basic Gameobject scripting as well, and I did the copy/paste thing like you suggested, and it didn't work.

    Can NPCs cast GM commands?
  2. #17
    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)
    Read what you posted and tell me if it makes any sense.

    Code:
    bool ChatHandler::HandleStartCommand(const char* args, WorldSession *m_session)

  3. #18
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Honestly, I don't know, I just copied and pasted the command from the level0.cpp file, and I was assuming it made sense.

  4. #19
    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)
    The command assumes you have the player selected. Read the function and find the place where it actually starts teaching the player. You WILL need to mod it abit.

  5. #20
    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)
    you cant just copy and paste because things are a little different. you will need to use something like
    if(Plr->getRace() == RACE_HUMAN)//you check race if is equal to humans
    { run the teleport to human starting area}//if so then it teleports them
    else //if theyre not then it goes through the rest of the if statements checking the race, and once it find the right race it uses that teleport
    { if(Plr->getRace() == RACE_DWARF)
    { run the teleport to dwarf starting area}
    //and so on and so forth


  6. #21
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Spidey, you are a genious....I love you, can I have you kids?

    And DoubleHex, thanks for the edit, I understand this now well enough that I do this again without needing you guys. Thanks so much, +Rep for both!

    EDIT: Spidey, rain check on the rep, it seems I need to "spread rep". How many people need to get rep from me before I can re-rep you?

  7. #22
    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 have no idea

  8. #23
    metehan's Avatar Banned
    Reputation
    19
    Join Date
    Feb 2008
    Posts
    317
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gastricpenguin View Post
    Yup, I have a "welcoming" npc which advances your skills to 350 and will teach you max professions. This is accomplished through C++
    You could just do it through the playercreateinfo_skills table or moon++ has a skills NPC.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [question] how to make an custom npc cast spells?
    By INS4N3K1LL in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 07:45 AM
  2. LUA help, how to make npc cast a spell at a certain HP???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-30-2008, 06:27 PM
  3. I'd like to ask if there is a website where I can find all /script commands
    By Loaril in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 01-04-2008, 08:27 AM
  4. [Guide] NPC factions and commands
    By Denelly in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 11-02-2007, 09:03 PM
  5. Can't use GM commands. (Broken)
    By Saridormi in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-30-2007, 09:06 AM
All times are GMT -5. The time now is 04:30 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