Holiday

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
Plague
Posts: 68
Joined: Mon Jun 29, 2015 3:17 pm
EQ2Emu Server: WiP

Holiday

Post by Plague » Wed Jan 10, 2018 3:11 pm

Probably possible but I'm still learning. Is it possible to create a script to turn on/off specific holiday spawns, items, signs, etc? Could attach the .lua to a spawn in the GMhall to turn the holidays on and off. Logging in for first time today and there is holiday stuff everywhere. I don't want to delete the specific items, it would be nice to have them (when that time comes) it makes my screen seem kind of full.

Plague
Posts: 68
Joined: Mon Jun 29, 2015 3:17 pm
EQ2Emu Server: WiP

Re: Holiday

Post by Plague » Wed Jan 10, 2018 3:36 pm

Should have searched harder....

http://eq2emulator.net/phpBB3/viewtopic.php?f=9&t=3492

Now its about gathering the information about which spawn is for which holiday and actually learning everything in that post ... I'm a slow learner but hey I try.

Also can you have an NPC in one zone spawn Mobs, signs, etc in other zones?

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: Holiday

Post by tyrbo » Wed Jan 10, 2018 3:46 pm

You could.

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: Holiday

Post by Cynnar » Wed Jan 10, 2018 5:34 pm

Plague wrote: Wed Jan 10, 2018 3:36 pm Should have searched harder....

http://eq2emulator.net/phpBB3/viewtopic.php?f=9&t=3492

Now its about gathering the information about which spawn is for which holiday and actually learning everything in that post ... I'm a slow learner but hey I try.

Also can you have an NPC in one zone spawn Mobs, signs, etc in other zones?
Nice post fo sure. You can also check out the wiki for info on Lua functions, and get a full list here

Don't worry about being fast or being slow, you are doing great. Heck I have been here 4 years and all I really have learned is how to aggravate everyone. :D
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

User avatar
Scribble
Team Member
Posts: 157
Joined: Wed Jun 22, 2016 5:30 am
EQ2Emu Server: Norrath Reborn
Characters: Scribe
Location: East Coast , USA
Contact:

Re: Holiday

Post by Scribble » Wed Jan 10, 2018 7:40 pm

Cynnar wrote: Wed Jan 10, 2018 5:34 pm
Plague wrote: Wed Jan 10, 2018 3:36 pm Should have searched harder....

http://eq2emulator.net/phpBB3/viewtopic.php?f=9&t=3492

Now its about gathering the information about which spawn is for which holiday and actually learning everything in that post ... I'm a slow learner but hey I try.

Also can you have an NPC in one zone spawn Mobs, signs, etc in other zones?

Don't worry about being fast or being slow, you are doing great. Heck I have been here 4 years and all I really have learned is how to aggravate everyone. :D
Make a Discord Chat and fill it with Bots that say the same thing every 90 minutes and forget you did that. Profit.
Follow me at https://twitter.com/EqIIEmulator
Like to keep up with news via Discordapp chat?

Join eq2emulator public discord at https://discord.gg/sCR4fPZ
Check me out on Twtich at https://www.twitch.tv/scribbleeq23

Plague
Posts: 68
Joined: Mon Jun 29, 2015 3:17 pm
EQ2Emu Server: WiP

Re: Holiday

Post by Plague » Tue Jan 16, 2018 12:24 am

Using the template I found I came up with this, tho I'm unsure if its the correct way to spawn a NPC from database in a different zone. Wish I worked less so I could test this. but the boss is coming so I gotta close page.

Code: Select all

SpawnMob(ZONE, SpawnID, restricted, x, y, z, heading)
Complete (mostly) script.

Code: Select all

function hailed(NPC, Spawn)

     FaceTarget(NPC, Spawn)

	conversation = CreateConversation()

	AddConversationOption(conversation, "Yes, it's time to spawn Frostfell!", "Choice1")
	AddConversationOption(conversation, "Sadly, it's time to despawn Frostfell.", "Choice2")
	AddConversationOption(conversation, "I hailed the Wrong NPC again, sorry to waste your time.")

	StartConversation(conversation, NPC, Spawn, "Hello again " .. GetName(Spawn) .. ", is it time for Frostfell again?")
end

function Choice1(NPC, Spawn)

	FaceTarget(NPC, Spawn)

	conversation = CreateConversation()

	StartConversation(conversation, NPC, Spawn, "'Tis the season!")

	--I have not yet figured this one out yet
	SpawnMob(ZONE, SpawnID, restricted, x, y, z, heading)
end

function Choice2(NPC, Spawn)

	FaceTarget(NPC, Spawn)

	conversation = CreateConversation()

	StartConversation(conversation, NPC, Spawn, "That is to bad.")

	Despawn(Spawn, delay)
end

function Choice3(NPC, Spawn)

	FaceTarget(NPC, Spawn)

	conversation = CreateConversation()

	StartConversationn(conversation, "Bah humbug.")
end

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests