Page 1 of 1
Holiday
Posted: Wed Jan 10, 2018 3:11 pm
by Plague
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.
Re: Holiday
Posted: Wed Jan 10, 2018 3:36 pm
by Plague
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?
Re: Holiday
Posted: Wed Jan 10, 2018 3:46 pm
by tyrbo
You could.
Re: Holiday
Posted: Wed Jan 10, 2018 5:34 pm
by Cynnar
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.

Re: Holiday
Posted: Wed Jan 10, 2018 7:40 pm
by Scribble
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.
Make a Discord Chat and fill it with Bots that say the same thing every 90 minutes and forget you did that. Profit.
Re: Holiday
Posted: Tue Jan 16, 2018 12:24 am
by Plague
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