VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Development Content Development
  • Search

Day and Night

VGOEmulator content development topics.

Moderators: Moldew, Jakkal

Post Reply
Advanced search
8 posts • Page 1 of 1
User avatar
Xinux
Project Leader
Project Leader
Posts: 2549
Joined: Wed Aug 28, 2013 2:20 pm
Day and Night
  • Quote

Post by Xinux » Wed Jul 20, 2016 4:56 pm

The server now keep's track if it is day or night and I've added LUA functions to support it. It will be active next time I update NT.

Examples

Code: Select all

function use(Item, Player)

	if IsDay(Player) then
	    SendMessageToPlayer(Player, "daytime.")
	end
	
	if IsNight(Player) then
	    SendMessageToPlayer(Player, "Night Time.")
	end

end
Top

User avatar
elquar
Content Designer
Content Designer
Posts: 607
Joined: Tue Jun 03, 2014 2:07 pm
Re: Day and Night
  • Quote

Post by elquar » Thu Jul 21, 2016 10:51 am

OH sweet !

We can use this to have certain mobs spawn at day time or night time only ?
Top

User avatar
Xinux
Project Leader
Project Leader
Posts: 2549
Joined: Wed Aug 28, 2013 2:20 pm
Re: Day and Night
  • Quote

Post by Xinux » Thu Jul 21, 2016 11:01 am

Yes if you are using the SpawnNPC() function and want to check if it's day or night.

I really would like to add a column in the unreal_location_placement so it can be applied to all npc something like 0 = normal 1 = day 2 = night but need to get zippy's input on this since he did a lot of the spawning code.
Top

User avatar
elquar
Content Designer
Content Designer
Posts: 607
Joined: Tue Jun 03, 2014 2:07 pm
Re: Day and Night
  • Quote

Post by elquar » Thu Jul 21, 2016 11:09 am

Oh man you guys are awesome

I was wracking my brains how to implement the by night Quest spawns without flooding the Tremean farm area with spawns of various wolfs if to many players where doing that series of quest at same time.

Now this will help ill go change the quest scripts to check for night time now.
Top

User avatar
Valorith
Content Designer
Content Designer
Posts: 425
Joined: Fri Aug 01, 2014 3:44 pm
Re: Day and Night
  • Quote

Post by Valorith » Thu Jul 21, 2016 2:44 pm

Very nice!
Top

User avatar
Xinux
Project Leader
Project Leader
Posts: 2549
Joined: Wed Aug 28, 2013 2:20 pm
Re: Day and Night
  • Quote

Post by Xinux » Wed Jul 27, 2016 9:04 am

Thanks to Foof you can now set a spawn to only spawn day, night or both now so no need to do it via lua in most situations.

Under the location tab of a spawn you will now see spawn_cycle which is where you can set the value.

0 = day/night
1 = day
2 = night

locplac.JPG
You do not have the required permissions to view the files attached to this post.
Top

User avatar
Jakkal
Content Designer
Content Designer
Posts: 3099
Joined: Tue May 20, 2014 1:59 am
Location: Raleigh, NC
Contact:
Contact Jakkal
Website
Re: Day and Night
  • Quote

Post by Jakkal » Wed Jul 27, 2016 11:44 am

That's really cool!

Maybe now we can make sure the stupid COB entrance quest guy actually shows up at night.
Image
Top

User avatar
elquar
Content Designer
Content Designer
Posts: 607
Joined: Tue Jun 03, 2014 2:07 pm
Re: Day and Night
  • Quote

Post by elquar » Wed Jul 27, 2016 3:51 pm

Wooot!!!!


Thank you Foof and gang!!! i can now have step 5 and step 8 o f By night series of quest work right instead of my work arounds 8).
Top


Post Reply

8 posts • Page 1 of 1

Return to “Content Development”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Development
  • ↳   Content Development
  • ↳   Thestra Adventuring
  • ↳   Qalia Adventuring
  • ↳   Kojan Adventuring
  • ↳   Crafting/Harvesting
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD