Request For Phasing Command menu

User Tag List

Results 1 to 9 of 9
  1. #1
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Request For Phasing Command

    Hello. I am quite new to Lua and have been trying to teach myself how to make custom commands and such. I have been on Mangos, but recently I have switched to test Arc Emu on my Server. I don't usually ask for anything from the site, and before you start asking "Hey, what has she contributed?" The answer is that I have submitted quite a few things to mmowned, but I guess they don't meet standards. Sigh. Anyway I was wondering if anyone had a LUA script or method of creating a phase command for objects and npcs, not unlike that of Echeloned Wow. I hope that someone may be able to help me at least look in the right direction. Thank you for your patience and time.

    Request For Phasing Command
  2. #2
    [Thallium]'s Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 09SMalone View Post
    Hello. I am quite new to Lua and have been trying to teach myself how to make custom commands and such. I have been on Mangos, but recently I have switched to test Arc Emu on my Server. I don't usually ask for anything from the site, and before you start asking "Hey, what has she contributed?" The answer is that I have submitted quite a few things to mmowned, but I guess they don't meet standards. Sigh. Anyway I was wondering if anyone had a LUA script or method of creating a phase command for objects and npcs, not unlike that of Echeloned Wow. I hope that someone may be able to help me at least look in the right direction. Thank you for your patience and time.
    Are you asking for a command to set the phase of an NPC and Object? If so, they're already built into the core, .npc phase x and .go phase x

  3. #3
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, I'm asking for a way to make sure players are in a phase before spawning.

  4. #4
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get the feeling that the commands I'm trying are outdated, but I also feel I'm onto something. Now your going to see this code and laugh, but I just wanted to show I was putting some effort in on my end. If you could revise this, I'd appreciate it.

    Code:

    -- A script to create an object
    local Gobj = "#Gob add"
    function Gobject(event, plr, message, type, language)
    if (message == Gobj) then
    if(Unit:IsInPhase(2) == true) then
    pUnit:SpawnGameObject(VALUE)
    return true
    end
    else
    Player:SendBroadcastMessage("You are not in the correct phase. Type .char phase 2 to be able to spawn objects")
    return true
    end
    end
    RegisterServerHook(16, "Gobject")

  5. #5
    Hellgawd's Avatar Member
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see what you are getting at; I'm not sure why that hasn't been implemented yet.
    If you're using LuaHypArc, have you tried suggesting it to one of it's developers?

  6. #6
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It does exist... GetPhase()/IsInPhase().
    No, what your problem is you're trying to use a variable that doesn't exist in its current context. pUnit/Unit simple doesn't exist in that function, use plr instead.

  7. #7
    09SMalone's Avatar Active Member
    Reputation
    27
    Join Date
    Sep 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No I haven't really suggested anything lol. I run an all GM server (yes hate me if you will) but I wanted to find a way to make a phasing script. Technically, I would really like to do this for Mangos, but I have no idea how much of the scripting works for that. I have compiled my own core for Mangos, but I simply have no idea how to go about creating C++ scripts for it. I have taken two C++ classes in college, but I'm still in the dark about implementing it in gaming. I thank you Dynashock for helping me with that. I will go test that. And I am using LuaHypArc. But currently we are back to our old server core and we will probably stay that way. But I will test your suggestion. Also if you have any suggestions as to how I could create a command that would do something like the above for Mangos, I'm eager to learn.

  8. #8
    Baedon's Avatar Private
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know this is an Old Topic, But I'm having the same problem, I am trying to create something similiar to Echeloned WoW, With the Phase System I mean, I still haven't figured it out, I am also using a Arc Emu Based and Set Server aswell, If someone could find any suggestions Ill be happy to post what I know to MMOwned.

  9. #9
    TehUberkitten's Avatar Corporal
    Reputation
    2
    Join Date
    Feb 2010
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /bump
    I also would love to create some phasing commands, like Echeloned's. I know that I can possibly do this by editing 'Chat.cpp' and 'Chat.h' located in #\:Core\src\arcemu-world\Chat.cpp, Chat.h.
    Seems that Chat.h holds the actual commands? Can someone confirm this incase I'm headed in the wrong direction please?

    I have already created my own command table, very simply and now I need to change the subcommands to phasing ones such as, .phase join, .phase exit, .phase kick, .phase ban, .phase play (song), .phase unban, .phase delete, .phase say, .phase togglecheats, .phase toggleflight, .phase addmember, .phase promote, .phase togglespells.

    Possibly, the 'Unit:RemoveFromWorld(); -- Removes Unit From World' command would be used for .phase exit or .phase kick or .phase ban? Or something similiar.


    Thanks,
    TehUberKitten

Similar Threads

  1. Request for Glider
    By hackxor in forum World of Warcraft General
    Replies: 12
    Last Post: 02-14-2007, 03:30 PM
  2. Tauren male to Orc male request for patch 2.0.1 plz :(
    By marshymallow in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 01-03-2007, 10:19 PM
  3. Few Requests for Tauren Hunter
    By Zacharisjosepi in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-24-2006, 05:57 PM
  4. continued requests for stuff add me to MSN
    By sudnrage111 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-04-2006, 10:08 AM
  5. Model Editing Request for Race Conversion and Other
    By #ClumsyWizard in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-03-2006, 10:27 PM
All times are GMT -5. The time now is 09:42 AM. 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