Commit graph

83 commits

Author SHA1 Message Date
WinterSolstice8
ce5946c9ea [lua] 99% Retail-accurate chocobo prices
The timer isn't exactly 60 seconds, but seems to drift for unknown reasons

Co-authored-by: ThrisStraizo <ThrisStraizo@users.noreply.github.com>
2025-10-08 19:16:53 -06:00
claywar
aa87e30e4d
[chore] Replace double-quote strings with single-quotes 2023-08-28 21:02:36 -04:00
claywar
c3013e9384
[lua] Update event paths to scripts/events 2023-08-20 14:51:27 -04:00
claywar
e78f81f68c
[chore] Remove unnecessary comments and newlines
Additional newlines removed, fix roe references


Fix multiple newlines
2023-08-07 13:57:37 -04:00
claywar
26f70125f3
Split zone.lua into various enum, move global functions 2023-08-07 13:57:37 -04:00
Zach Toogood
dac3357c28 [core] Move SmallPacket0x04B server message logic into Lua
Also removed deprecated/unused SetDropRate & UpdateServerMessage
2023-07-20 11:18:14 +01:00
claywar
ddff2dbab1
[chore] Remove deprecated settings require 2023-06-04 07:24:05 -04:00
Zach Toogood
9cef1a9e19 [events] Add basic event system and startlight music event
Co-Authored-By: InoUno <inoiown@gmail.com>
2022-12-04 00:22:09 +00:00
Zach Toogood
7419ecee66 [lua] Hook up scripts/globals/settings and xi.settings.main 2022-06-26 21:22:30 +03:00
Zach Toogood
39014dcdfe [core] Add binding for onTimeServerTick 2022-04-19 13:44:29 +03:00
teschnei
dba21273b6 SCRIPTS: re-removed server.lua since it's no longer used (and reappeared in an earlier merge) 2014-12-09 22:30:32 -07:00
starlightknight
9d4d38a71b December Update: NPC ID Updates
Npc List SQL: These updates were done by the new next-gen npc id job. This job is way more accurate than the previous version due to the changes we made in reformatting npc_list.sql. A handful of zones were detected as shifted. Since this is the first run of the new job, I tried to do some manual spot checking in each shifted zone, and from the npcs I spot checked, things were looking correct to me. With that said, it's still possible there are bugs. If anyone finds any, please tag me in the issue or change so that I can look at why the job did not update it correctly. I apologize in advance for any incorrect ids :p

Scripts/Transport/Elevators - These were done by a post processing script, which shifts any ids the npc list job shifted in any lua xcript or transport/elevators SQL. This is just done by doing an ordered by descending find/replace. What this means is, if the script was out of sync with the npc ids before this change, it will still have the wrong id and need to be fixed manually - otherwise it will have obtained the new id as according to the batch job. Any scripts that get manually corrected due to being out of sync should be automatically picked up next time its id shifts. Help in verifying these is appreciated - if we get them all in sync, this job should be able to keep them in sync.

Very interested in any bugs that may be found so that we can improve the jobs further. If anyone is interested in the jobs, check the darkstar-utils repo.
2014-12-09 22:54:20 -05:00
whasf
5f6d31aa09 SCRIPTS: Fix IDs for Explorer Moogles 2014-11-30 22:59:35 -06:00
teschnei
85f34a233b Merge branch 'master' into zmq
Conflicts:
	scripts/globals/automatisation.lua
	scripts/globals/server.lua
	scripts/zones/Bostaunieux_Oubliette/TextIDs.lua
	scripts/zones/Cloister_of_Gales/mobs/Garuda_Prime.lua
	scripts/zones/Cloister_of_Tremors/mobs/Titan_Prime.lua
	scripts/zones/The_Sanctuary_of_ZiTah/Zone.lua
	scripts/zones/Yuhtunga_Jungle/Zone.lua
	src/login/lobby.cpp
	src/map/ai/ai_char_normal.cpp
	src/map/entities/charentity.cpp
	src/map/entities/charentity.h
	src/map/packet_system.cpp
	src/map/party.cpp
	src/map/utils/charutils.cpp
	src/map/utils/charutils.h
	src/map/utils/zoneutils.cpp
	src/map/zone.h
	src/map/zone_instance.cpp
	src/map/zone_instance.h
	win32/DSGame-server/DSGame-server.vcxproj
	win32/DSGame-server/DSGame-server.vcxproj.filters
2014-11-18 21:14:30 -07:00
starlightknight
26e5b3c143 SCRIPTS/SQL: November Update - Misc Id Shifts
Attempts to locate and shift script ids to match new npc ids as necessary

I double checked any that were noted in a comment, but otherwise largely assumed they shifted by one, since all zones shifted by 1 with the addition of UnityMaster npc.

This means that if the npc was broken before from neglect, it probably still is, but otherwise its likely fixed.

I couldn't possibly test everything myself so please help test and report remaining issues.
2014-11-18 19:22:12 -05:00
starlightknight
7216a67f77 SCRIPTS: Fix Grounds Tome Ids in Boyahda Tree
These were off by 2 after the recent npc id updates
2014-11-04 22:58:24 -05:00
teschnei
a310d5a7ed SCRIPTS: removed server.lua and separated its functionality into each zones onInitialize
-moved harvest_festivals.lua into a new events folder
-getZone now returns a lua_zone instead of the zone ID
CORE: added new functions to lua_zone class
-fixed an SQL error loading mob lists
2014-09-29 23:38:39 -06:00
Killeon
b0a582e4d3 NPCID corrections in few zones, corrected/added ground tomes in server.lua, north gusta maneating hornet was missing dropid 2014-09-26 19:17:43 -07:00
Killeon
9d3c1760d1 some NPCID updates, minor clean-up/fixes 2014-09-21 05:13:26 -07:00
TeoTwawki
7b15e536dd Remove duplicate ID entry. 2014-06-30 19:12:39 -04:00
TeoTwawki
6479cdd0b1 Setting to enable/disable Grounds Tomes, which was supposed to be in prior commit and somehow was lost...The settings.lua entry made it but not these. Should work now. 2014-06-04 12:27:00 -04:00
starlightknight
35418ef360 May Update: NPC ID Updates
Attempted batch update of NPC IDs with my batch job from #215. The new mapping file approach helped the job a lot in its verification, but it still struggles a lot with some of the more generic npc name (csnpc, blank, etc).

I will need to see what I can do to improve this approach further -- but we should also start standardizing on a naming convention. The lesser used zones (WoTG, etc) are all extremely inconsistent, and these areas are the hardest for automation right now because of it.

After the batch update I did some basic manual review of my own, but @gedads should probably eventually glance over it with his usual process. I specifically looked out and fixed areas I knew the batch was weak at currently, and left the areas it seemed to be updating fine alone.

Covered the basics of - the file still loads, the server seems to work, and I did fix the startup warnings in conquest.lua and server.lua right off the bat as well this time.

Overall, there didn't seem to be nearly as many changes detected this time around as last time when the random achieve masters all over the place bumped almost all zones.

Hopefully that means less scripts to fix, since we still haven't fixed all of them from the April update.
2014-05-15 23:33:57 -04:00
GreasyD
fa91fea509 More field manual npcID fixes 2014-04-20 15:55:54 -05:00
GreasyD
287ed9cd22 fixed field manuals npcIDs. 2014-04-20 00:37:53 -05:00
Luis Santos
0032921145 Update Treasure Chest & Coffer to Version 30140402_2
SQL: Update ID's of treasure chest & coffer
SCRIPTS: Fix error in lua
SQL: Add treasure points to:
* Gusgen Mines
* Maze of Shakhrami
* Labyrinth of Onzozo
* Ru'Aun Gardens
* Ve'Lugannon Palace
2014-04-13 23:08:22 +02:00
Apocalypse612
31366f9cba NM add: Aynu Kasey 2014-03-23 14:15:17 -04:00
Apocalypse612
b6723819c2 SCRIPTS: Fixed a few wrong FoV IDs.
SQL: Fix Morion Worm not dropping his Tathlum (it was on his steal)
2014-02-15 15:04:23 -05:00
Apocalypse612
83cc28f292 SCRIPTS: Added correct positions checks & offsets for Phomiuna Aqueducts doors. Also added in missing scripts for all doors in PA. Conquest.lua offsets and FoV ID update for Qufim. Fixed a few more random non-locals. 2014-01-10 12:24:41 +00:00
atom0s
57627d2ec7 SCRIPT: Added new server variable for when the server is started. 'server_start_time' Can be used to track a servers uptime. 2014-01-07 05:00:25 +00:00
Apocalypse612
fc51290611 SCRIPTS: FoV/Conquest M. Mountains / Buburimu 2014-01-06 14:18:08 +00:00
Apocalypse612
338671fc7c SCRIPTS: NPC ID Updates & conversions to Offsets/Text ID's/local declares/general comment cleanup to over 50+ zones where applicable (Too long to list). automatisation update romaeve moongate, davoi storagehole, Flame spout. conquest.lua updated with offsets for a few more zones. FoV manual ids updated for several more zones. Faust will now WS twice every WS round.
SQL: Fix for Davoi Elevator
2014-01-06 03:50:50 +00:00
Apocalypse612
f09bdd26ac SCRIPTS: Conquest ID/Text ID/FoV ID/General Cleanup to: West Ronfaure, Valkurm Dunes, West Sarutabaruta, Yuhtunga Jungle, Yhoator Jungle, Ru Aun Gardens, Lufaise Meadows. Homepoints added to RuAUn gardens, Beastmens Banners to a few zones. 2013-12-29 23:27:16 +00:00
Apocalypse612
a167cee478 SCRIPTS: Padfoot will now work to retail :) Fixed some scripts/IDs causing game server to complain at startup. Diabolos tiles will work properly for instance 2. Fix NPC ID's and gave offsets to Automatisation Sacrarium walls.
DATABASE: Gave Jorgy and Tiamat proper NM Spawn tables. Gave retail accurate Shrouded Maw Instance 2 positions. Restoring a deleted mob_spawn_points entry I added for Bloodsucker NM a while back :(

SRC: New LUA binding for getSpawnPos (Get Mob Position, x y z) (Thanks Lautan!)
2013-12-29 11:34:58 +00:00
teschnei
097128301a SCRIPTS: update treasure chest and coffer IDs (thanks santssoft) 2013-12-24 19:24:16 +00:00
Apocalypse612
974b1a14f2 SCRIPTS: Chests/TextIDs/Cleanup to Gusgen Mines, Labyrinth_of_Onzozo, East Ronfaure, King Ranperre's Tomb, Metalworks, West Ronfaure.
- Added Home Point 1 script to Metalworks, Fixed Doors in Gusgen, Made King's tomb teleporter work to retail. Fixed Ranguemeont pass door to remove hardcoded NPC ID. 

SQL: Renamed groundstomes and homepoint# in NPC_list so there is consistancy for script use.
2013-12-24 04:48:28 +00:00
Apocalypse612
1e292a3fe8 SCRIPTS: Gave proper Tile Animations for Diabolos-BCNMs. Improved logic on Diabolos.lua in Shrouded Maw, and Diablolos-related BCNM.luas. Chests/TextIDs/General Cleanup where needed to: Attohwa Chasm, Bearclaw Pinnacle, Boneyard Gully, Pso Xja, The Shrouded Maw, Uleguerand Range.
DATABASE: bcnm.lua's for Shouded Maw were calling many mob spawns, moved all to BCNM_Instance. Corrected Status's of the tiles for Diabolos in NPC_List.
2013-12-22 16:39:37 +00:00
Apocalypse612
a030673caf SCRIPTS: TEXT/CHEST&COFFER/FIELD MANUAL ID & General Cleanup where needed to: Saromague Champaign, Garlaige Citadel, Bibiki Bay, Carpenters Landing, Manaclipper, Phanauet Channel 2013-12-21 23:30:18 +00:00
Apocalypse612
e4bc6e3df0 SCRIPTS: TextIDs and FieldManualIDs for East Sarutabaruta 2013-12-21 19:48:04 +00:00
Apocalypse612
6446e6a196 SCRIPTS: TextID,FoVID update for Rolanberry and Shrine of RuAvitau 2013-12-21 17:52:22 +00:00
Apocalypse612
d7895e0e2a SCRIPTS: More NPC ID corrections for Conquest/Field manuals/Chests/Coffers & Text ID's for: Beaucedine Glacier, Inner. H. Ruins, Jugner Forest, Ro Maeve, South Gustaberg, North Gustaberg, Sanctuary of ZiTah, VeLugannon Palace, Xarcabard.
I also improved logic of hard-coded NPC ID's where I could in scripts for these zones.
2013-12-21 00:57:23 +00:00
Apocalypse612
9ab37cb785 SCRIPTS: Text ID's for North Gusta, Both Altepa Deserts. Adjusted Altepa gate to be more update-resilient. Partial update to conquest.lua to allow easier adjustment on ID shifts. Updated sever.lua to easier identify error-types and update to some Field Manuals.
DATABASE: Corrected NPC ID's in both Altepa Deserts. Fixed several wrong status's on Conquest-related NPC's and Banners.
2013-12-20 16:32:00 +00:00
Apocalypse612
ffe4be3971 SCRIPTS: Added some AI to Old Professor Mariselle. Cleaned up Keremet's script a bit. Fixed a lot of doors in Sacrarium and added new scripts where needed. Minor corrections to my previous Castle O. commit (mainly a few non-local variables). Fixed Tonberry hate reset door in Temple_of_Uggalepih to mimic retail (also can no longer be exploited). Gave roaming logic to the Manipulator NM.
DB: ID Fix for Explorer Moogles not spawning.
2013-12-20 01:28:06 +00:00
Apocalypse612
44c2e1b6f6 SCRIPTS: | Fixed Text ID's for Altar Room, Balga's Dais, Dragon's Aery, Mhaura, Middle Delkfutt's Tower, Outer Horutoto Ruins, Qu'Bia Arena, Selbina, Upper Delkfutt's Tower, Waughroon Shrine, Windurst Woods, Castle Zvahl Baileys, Castle Zvahl Keep, Toraimarai Canal, Uleguerand Range, Windurst Waters. Added new scripts for Marble Door (Toraimarai), Eternal Ice (Ulegurand), and a revision to the Altepa Gate to open it from inside (3 Seconds). Server.lua adjusted accordingly for new Chest IDs (Thank you Killeon) | Fixed a missing requirement for Shantoto
DATABASE: | Fixed NPC ID's in Castle Zvahl Baileys, Castle Zvahl Keep, Toraimarai Canal, Uleguerand Range, Windurst Waters. Treasure_Spawn_points adjusted accordingly for new Chest IDs (Thank you Killeon) |
2013-11-30 18:24:38 +00:00
Apocalypse612
3024388f36 Scripts: Text ID's updated in Upper Jeuno, Ru Lude Gardens, Port Windurst, Port San dOria, Ordelle's Caves, Holais Peak, Heaven's Tower, Dangruf Wadi, Crawler's Nest, Beadeaux. Added Guidestone, qm1 (D. Wad). (Thank you killeon)
DB: NPC ID's updated for East Sarutabaruta, Beadeaux, Dangruf Wadi, Ordelle's Caves, Crawler's Nest, Upper Jeuno. Treasure spawns updated: Beadeaux, Dangruf Wadi, Crawler's Nest. (Thank you killeon) I also fixed non-town Chocobos from being targetable. They were also too small. 

LUA: Updated Treasurespawn point and Field Manual ID's for corresponding zones. (Thank you killeon)

(Adjustments for Nov. 4th Update)
2013-11-20 02:31:28 +00:00
Apocalypse612
3dff353ee6 DB: NPC ID's fix for Western Altepa. SCRIPTS: Fixed Western NPC scripts. 2013-11-17 04:15:12 +00:00
Apocalypse612
6efd2d6d1c DATABASE: Forgot to update the Eldieme treasure spawns. 2013-11-16 02:35:55 +00:00
Apocalypse612
c250779d2d SCRIPTS: Added/fixed Text IDs in Fort Ghelsba, King Ranperre's Tomb, Monastic Cavern, Sauromugue Champaign, Ru'Aun Gardens. Cleaned up Conquest.lua (Thank you Killeon)
SQL: Fixed NPC ID's in Fort Ghelsba, King Ranperre's Tomb, Monastic Cavern, Sauromugue Champaign and many previously committed zones. LUAs: server, conquest (IDs in conquest.lua are all updated, just cleaned up some extras spaces throughout). Fix treasure_spawn_points in Monastic Cavern, King Ranpare's Tomb, and Fort Ghelsba. (Thank you Killeon)
2013-11-15 00:26:40 +00:00
xdemolish
cf49506e92 SCRIPTS: Corrected TextIDs in Beaucedine Glacier, Behemoth's Dominion, Eastern Altepa Desert, Meriphataud Mountains, Northern San d'Oria, Qufim Island, Rolanberry Fields, South Gustaberg, The Sanctuary of Zi'Tah, Valley of Sorrows, Chateau d'Oraguille, Labyrinth of Onzozo, Lower Jeuno, Xarcabard.
Updated Guide_Stone.lua and Parike-Poranke.lua with correct dialog. 
Added Giant_Footprint.lua. 
Added dialog to Bubbly Bernie's qm npc. 
Updated conquest.lua and server.lua.
(Thank you killeon)

SQL: Corrected NPC IDs in Beaucedine Glacier, Behemoth's Dominion, Eastern Altepa Desert, Meriphataud Mountains, Northern San d'Oria, Qufim Island, Rolanberry Fields, South Gustaberg, The Sanctuary of Zi'Tah, Valley of Sorrows for Nov. 4th Version Update.
(Thank you killeon)
2013-11-13 17:23:30 +00:00
xdemolish
4f7aa405bd SCRIPTS: Correct TextIDs in Bostaunieux Oubliette, Castle Oztroja, Ghelsba Outpost, Inner Horutoto Ruins, Jugner Forest, Konschtat Highlands, La Theine Plateau, Lufaise Meadows, Misareaux Coast, Pashhow Highlands, Valkurm Dunes, Buburimu Peninsula, Caedarva Mire, East Ronfaure [S], Fort Karugo-Narugo [S], Jugner Forest [S], Kazham, Norg, North Gustaberg [S], Port Bastok, Port Jeuno, Southern San d'Oria
(Thank you killeon)

SCRIPTS: Updated Signpost.lua, Novalmauge.lua, Runic_Portal.lua, conquest.lua, server.lua, logging.lua. Added scripts for NPCs in Caedarva Mire, Konschtat_Highlands, La Theine Plateau, Port_Jeuno, Valkurm Dunes and corrected some typos.
(Thank you killeon)

SQL: Updated NPC IDs in npc_dummies.sql, npc_list.sql, treasure_spawn_points.sql.
(Thank you killeon)
2013-11-12 19:08:42 +00:00
xdemolish
1e3afaeb81 SCRIPTS: Corrected TextIDs in Batallia Downs, Davoi, Maze of Shakhrami, Giddeus, Gusgen Mines, North Gustaberg, Palborough Mines, Yughott Grotto, Aydeewa Subterrane, Bhaflau, Grauberg [S], Ifrit's Cauldron, Metalworks, Newton & Oldton Movalpolos, Ranguemont Pass, Wajaom, West Sarutabaruta [S], Yhoator & Yuhtunga Jungle for Nov. 4th Version Update.
(Thank you killeon)
SCRIPTS: Fix for leypoint.lua. Updated conquest.lua, server.lua, excavation.lua, harvesting.lua, logging.lua, mining.lua
(Thank you killeon)

SQL: Corrected NPC IDs in Batallia Downs, Davoi, Maze of Shakhrami, Giddeus, Gusgen Mines, North Gustaberg, Palborough Mines, Yughott Grotto for Nov. 4th Version Update.
Updated npc_dummies.sql for Quemaricond.
Updated treasure_spawn_points.sql for Nov. 4th Version Update.
(Thank you killeon)
2013-11-07 18:29:22 +00:00