Page 1 of 1
Spawn Set LuaScript (GM) command (resolved)
Posted: Sun Sep 27, 2009 8:56 pm
by bolly
Would help save new users from tinkering with db to do basic spawning and scripts. Not sure if you'd want it as a parameter of spawn or just it's own command.
I know this is a low priority one
Cheers
Bolly
Re: Spawn Set LuaScript command
Posted: Sun Sep 27, 2009 9:08 pm
by Scatman
It already exists

SpawnSet(Spawn, Attribute, Value)
Code: Select all
SpawnSet(NPC, "attackable", 1)
SpawnSet(NPC, "attackable", 0)
SpawnSet(NPC, "show_level", 1)
Re: Spawn Set LuaScript command
Posted: Sun Sep 27, 2009 9:21 pm
by bolly
nononono i mean a GM command to set the lua_script field

!!!
Re: Spawn Set LuaScript (GM) command
Posted: Sun Sep 27, 2009 9:55 pm
by John Adams
That too already exists.
Code: Select all
spawn_set_values["spawn_script"] = SPAWN_SET_VALUE_SPAWN_SCRIPT;
spawn_set_values["spawnentry_script"] = SPAWN_SET_VALUE_SPAWNENTRY_SCRIPT;
spawn_set_values["spawnlocation_script"] = SPAWN_SET_VALUE_SPAWNLOCATION_SCRIPT;
Sub-commands of /spawn.
It would help you to open Commands.cpp and see what's already in there.
Re: Spawn Set LuaScript (GM) command
Posted: Sun Sep 27, 2009 10:05 pm
by bolly
perfect, thanks! can you move this to the support forum for me?