Spawn Set LuaScript (GM) command (resolved)

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Spawn Set LuaScript (GM) command (resolved)

Post by bolly » Sun Sep 27, 2009 8:56 pm

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
Last edited by bolly on Thu Oct 01, 2009 2:49 am, edited 2 times in total.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Spawn Set LuaScript command

Post by Scatman » Sun Sep 27, 2009 9:08 pm

It already exists :) SpawnSet(Spawn, Attribute, Value)

Code: Select all

SpawnSet(NPC, "attackable", 1)
SpawnSet(NPC, "attackable", 0)
SpawnSet(NPC, "show_level", 1)

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: Spawn Set LuaScript command

Post by bolly » Sun Sep 27, 2009 9:21 pm

nononono i mean a GM command to set the lua_script field :-)!!!

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Spawn Set LuaScript (GM) command

Post by John Adams » Sun Sep 27, 2009 9:55 pm

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.

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: Spawn Set LuaScript (GM) command

Post by bolly » Sun Sep 27, 2009 10:05 pm

perfect, thanks! can you move this to the support forum for me?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests