I'm running a 2.4.3 ArcEmu server, and there is -no- settitle command. Is there a way I can add one, or if possible, how would I go about setting titles manually?
I'm running a 2.4.3 ArcEmu server, and there is -no- settitle command. Is there a way I can add one, or if possible, how would I go about setting titles manually?
Im pretty sure there was back then, but that was a long time ago, try looking under .char or .mod or .set, it might be there, if not, there isn't a way i dont think.
you can add the titles to your char in the DB or you can just use a lua script
Last edited by mag1212; 04-11-2010 at 05:06 AM.
.character settitle #
Hey, I'm running an ArcEmu 2.4.3 server, and I was wondering, is there a way to make it so an npc is unable to move out of the position it's spawned at? So that it doesn't like, follow you if you go out of its melee range while fighting it.
As I said before, there isn't a set title command for some reason, I tried that already, and it does nothing.
Last edited by P1raten; 04-14-2010 at 12:19 PM.
A Lua script:
function X_OnSpawn(pUnit, Event)
pUnit:Root()
end
RegisterUnitEvent(mobid, 18, "X_OnSpawn")
Edit: Or what Reflection said if there is
Last edited by stoneharry; 04-14-2010 at 11:37 AM.
Should be a column in the creature_spawn table.
Freelance Digital Artist
https://reflectionartwork.deviantart.com
You did not desert me
My brothers in arms
No column, but the script works fine. Thanks guys.
Hey, was wondering if there was any way to make it so it's impossible to click on a certain NPC, and so it's impossible to target an NPC with /target. So the NPC will be there, but nobody will be able to interact with it.
Last edited by P1raten; 04-14-2010 at 12:20 PM.
Oh sorry I mixed up movement and CanFly. The script works.
Freelance Digital Artist
https://reflectionartwork.deviantart.com
You did not desert me
My brothers in arms
There's no reason to make a thread for every question you have.
Just post all questions in one thread in the future.
Merged Threads.
Seems like your trying to create a training dummy? Im not sure but you could just give it ALOT of health, this is what quite alot of servers have done, even though in patch 3.2 there is a option to make them invincible, im sure Stone will provide a way too
Lua script:Hey, was wondering if there was any way to make it so it's impossible to click on a certain NPC, and so it's impossible to target an NPC with /target. So the NPC will be there, but nobody will be able to interact with it.
Code:local OBJECT_END=0x0006 local UNIT_FIELD_FLAGS= OBJECT_END+0x0034 local UNIT_FLAG_NOT_SELECTABLE= 0x02000000 local UNIT_FLAG_DEFAULT = 0X00 function shit(pUnit, Event) pUnit:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE) end RegisterUnitEvent(npcid, 18, "shit")For this just go into creature_proto and there is a column called is_dummy or something, just set it to 1.Seems like your trying to create a training dummy?
Was that added in patch 2.4.3? Or was it 3.0? As i remember having to add it to FDE at some point, just cant remember what one!
Oh if it's for 2.4.3 (Doh!) then there won't be that column... Best way to do it is to make a Lua script that simple heals the unit every X amount of seconds and also make it not move. Example:
Code:function onspawn(pUnit, Event) pUnit:RegisterEvent("healself", 5000, 0) end function healself(pUnit, Event) pUnit:Root() pUnit:SetHealth(pUnit:GetMaxHealth()) end RegisterUnitEvent(npcid, 18, "onspawn")
Last edited by stoneharry; 04-15-2010 at 11:37 AM.
Hehe, I thought that it was added later on, Thats a smart use of Lua there stone, I like that! The capabilitys of Lua are endless... aslong as you can work your head around and create diverse ways of handling it xD