Commit graph

39 commits

Author SHA1 Message Date
sruon
b51a58c147 Migrate addStatusEffect 2026-02-20 18:42:33 -07:00
claywar
1af0cee384
[type] Add Command type, command script annotations 2024-08-25 10:54:45 -04:00
Zach Toogood
e98de08e90 [core, Lua] Rename PrintToPlayer and PrintToArea to lowercase 2023-12-09 23:54:00 +00:00
claywar
8d17652f97
[chore] Update command scripts to return table
Update remaining commands

Remove unused, and correct missing items
2023-09-02 07:01:35 -04:00
claywar
aa87e30e4d
[chore] Replace double-quote strings with single-quotes 2023-08-28 21:02:36 -04:00
claywar
478d95fd11
[chore] Remove status global requires
Part one of the removal, to be continued

Fix comment alignment
2023-06-01 18:33:34 -04:00
claywar
a24cee9a62
[chore] Remove outer parens from Lua conditions (12) 2022-11-04 10:44:34 -04:00
claywar
81e868df4c
[chore] Remove outer parens from additional Lua scripts
Undo unintentional lua CI changes
2022-11-02 15:41:32 -04:00
claywar
4ca2edda31
[chore] Remove outer parentheses from conditionals (weaponskills, commands) 2022-10-30 09:13:30 -04:00
claywar
d552b9d333
[lua] Format tables from CI - 4 2022-09-17 14:07:38 -04:00
Zach Toogood
8bc86d34ac [chore] Clean up some newline issues 2022-07-05 12:40:32 +03:00
Zach Toogood
7e93e972f7 [lua] Various linting changes 2021-05-28 17:49:13 +03:00
TeoTwawki
09d90643fa Remove "branding" from all lua. 2021-04-01 15:10:15 -04:00
wrenffxi
0ed5cb8f59 [sol refactor] scripts/commands headings 2021-01-18 13:34:00 -05:00
Zach Toogood
9ddba57610 Roll back tpz.core global function binding 2021-01-09 08:01:35 +02:00
Zach Toogood
eb44c9a638 LuaRefactor: GetPlayerByName, GetPlayerByID 2020-12-28 16:37:20 +02:00
Mark Klara
c52431e2c4
Remove trailing whitespace from script/ files. (#426)
Commands used (on Mac):
```
  export LC_CTYPE=C
  export LANG=C
  find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
```
2020-03-20 01:41:42 +00:00
MrHappyAsthma
36fdb3ea7e Bulk remove semicolons from Lua scripts/commands.
This may not actually be every file, but I did the best I could.

Command applied:
    find . -type f -name "*.lua" | xargs -d '\n' sed -i 's/;//g'

Semicolons are not appropriate in Lua per the style guidelines:
    https://github.com/project-topaz/topaz/blob/master/CONTRIBUTING.md
2020-02-19 21:42:47 -08:00
Topaz
3eb1c1570f Remove DSP branding (copyright notices retained) 2019-12-02 12:40:02 -08:00
wrenffxi
b085c02c58 let !addeffect accept duration of 0 for permanent effect until zoning. 2019-01-02 07:49:11 -05:00
wrenffxi
11a7ad6eb5 for consistency, rename existing dsp tables to singular 2018-04-28 15:23:47 -04:00
wrenffxi
fc13e8c387 fixed scripts that weren't converted to tabled status effects 2018-04-06 03:04:58 -04:00
TeoTwawki
3ff2fefa3d Table the status effects (#4722)
* Table the status effects

* move EFFECTS table to dsp.effects table per request by Demolish

* fix comments caught in crossfire.

pew pew! MEDIC!
2018-04-02 11:21:47 +01:00
Ninjistix
3b629bcd2d update comments in cmds to reflect change from @ to ! 2017-08-22 20:44:32 -04:00
wrenffxi
4b8c25cda3 command input validation and standardized output 2017-08-02 21:32:09 -04:00
TeoTwawki
889a4fc8d3 Fix several command issues:
..The nil checks needed to be for string manipulations..
..A lot of commands were getting the name from the player to get the player from the name still..
..I accidentally committed something I didn't intend to last round when I was eliminating case sensitivity, that's undone now back to how it was..
2017-07-29 18:55:23 -04:00
TeoTwawki
bde0fe7c9b More removals of case sensitivity in GM commands. 2017-07-24 20:55:28 -04:00
Tyler Schneider
41169a5a9c Revert "Deprecated @ symbol use in GM commands. It still works for now alongside its replacement $ and all documentation has been updated."
This reverts commit 88c2a81735.
2016-07-29 08:35:15 -06:00
TeoTwawki
88c2a81735 Deprecated @ symbol use in GM commands. It still works for now alongside its replacement $ and all documentation has been updated.
I cannot guarantee that the automation didn't mangle the human readability of a line or two someplace, but I did make sure the console log was clean of errors after.

Also, during this process a great many script errors were spotted. Most incidents were missing requires in quest scripts and these are now corrected.

Reasoning:
Many modern sites and services use the AT symbol (`@`) to direct messages to users, including the service currently hosting our repository. Someone unfamiliar with this (or simply doesn't consider it or doesn't care) can easily create situations where persons not involved in the project could be spammed.
2016-07-29 01:49:37 -04:00
Tahir Akhlaq
a896910982 commands can now use global vars for arguments
- added animation enums to status.lua
- added target to wallhack
- changed a few commands to take string for argument to allow hex params
2016-05-04 22:32:43 +01:00
TeoTwawki
8209f73159 Line ends, round 2. Fight! 2016-01-16 01:26:33 -05:00
Santssoft
d0dbdaf5b2 [SCRIPT]: Add/Update commands
* addeffect: add subid and subpower to command
 * animatenpc: add name of npc after id
 * animatesubnpc: change animatesub of a npc
 * deleffect: delete effect of a pc
2015-10-25 11:44:48 +01:00
teschnei
d2557c5bc0 SCRIPTS: cleaned up GM commands
removed setpvp as its binding was removed already
removed deprecated resetplayer
2015-04-29 17:21:36 -06:00
teschnei
566322ea93 CORE: increased weapon damage for Notorious Monsters
-modified the AOE_MAX_TARGETS to appear in the action packet instead (this way, everyone is still hit, but the packet is cut off to prevent client crash)
-added support for mobskills to hit everyone in the area (ie. outside party/alliance)
-added support for monsters that do not turn to attack their target (currently Fafnir and Nidhogg only)
-modified isBehind slightly to be more accurate
SQL: fixed Fafnir name flag
-corrected Spike Flail aoe type
-corrected Horrid Roar and Absolute Terror animation
SCRIPTS: modified wyrm skills to only be used when target is in front or behind and in the correct subanimation
-updated angle calculation on Dragon Breath
-increased damage/accuracy on Spike Flail (don't stand behind them, seriously)
-added Nidhogg's "two-hour"
-modified addeffect command to allow 0 (forever) as a valid duration
2014-01-11 22:17:54 +00:00
atom0s
64d91c454a CORE: Refactored/recoded command handler to be entirely dynamic.
CORE: GM commands are now loaded/ran at runtime allowing GMs to add/remove commands on the fly during runtime.
CORE: Removed commands.conf as it is no longer used.
SCRIPTS: Recoded all commands to follow suit with the new command system.
SCRIPTS: Modified a handful of scripts to have more error checks to prevent debug breaks.
SCRIPTS: Modified a handful of scripts to better handle their purpose.
2013-12-29 00:11:55 +00:00
ben.dangelo2
da5ea2506e CORE: fixed issue where server would sometimes crash when casting a spell. opo-opo necklace will now give tp when asleep 2013-08-02 05:10:22 +00:00
ben.dangelo2
d5e2941a7b CORE: r3895 wasn't good enough. Made a better subjob fix. Fixed small issue with addeffect command 2013-08-02 02:10:50 +00:00
ben.dangelo2
734725f18c CORE: fixed issue where subjob restriction wouldn't unequip sub weapon and other bugs. Bst pets have a little less hp. Maat will spawn pet sooner. 2013-08-02 01:54:53 +00:00
ben.dangelo2
226c9b8aa3 CORE: added new gm command addeffect. Give effects to yourself or other players. Fixed bug where dying then being stunned would lock you. Refactoring mobskills 2013-07-31 22:10:42 +00:00