summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-11[PATCH] Add *duplicate/remove npc script commandHEADtmw2Emistry Haoyan1-0/+163
- `npc_duplicate()` duplicate any existing duplicated NPC. - `npc_duplicate_remove()` will remove any existing NPC other than source NPC. Edited by Jesusalva for ease of use in Moubootaur Legends context See also https://github.com/HerculesWS/Hercules/pull/2473
2024-08-03setq with illegal quest <= 0: Abort script execution, report errorJesusaves1-1/+8
2024-07-30I don't know how to squash this security vulnerability, so mark where it is.Jesusaves1-0/+5
No fix was detected upstream*. Vulnerability only happens when printing unsanitzed user input. I'll try to contact 4144, but he is MIA since May, might have been swallowed by the war, so if he doesn't reply I'll hunt someone else to test it in Hercules upstream. *: Naturally, I at very least cherry-pick any security fix they commit and I see
2024-07-27Homunculus evolution or swapping frameworkJesusaves1-0/+72
2024-07-27Add a command to retrieve Homunculus GIDJesusaves1-0/+14
2023-10-29Reject updates from setq to negative values (it is unsigned int)Jesusaves1-4/+5
2022-12-04Fix bug due to stupid syntaxJesusaves1-8/+12
2022-05-08Fix typoJesusaves1-1/+3
2022-05-08Add apiasync, for raw packetsJesusaves1-0/+15
2022-05-06Add support to make API updates with PYTHON_LOGS if set.Jesusaves1-0/+23
2021-12-29Add a fallback if source ends up messed upJesusaves1-0/+6
2021-12-29Allow source to be specified in harm() - for more precise calculationsJesusaves1-12/+15
2021-12-26Add advanced wrappers for Battle GroundsJesusaves1-0/+70
2021-09-20Update consoleinfo wrapper because the whole purpose of it is being caught ↵Jesusaves1-1/+2
by syslog
2021-09-20I'll need notice capability tooJesusaves1-0/+20
2021-09-20Add consolewarn() and consolebug() replacements for consolemes() and debugmes()Jesusaves1-0/+40
For the syslog monitor
2021-06-06add a script command to kick players offlineJesusaves1-0/+34
Author: gumi <git@gumi.ca> Date: Fri Jul 24 15:11:14 2020 -0400 You are currently cherry-picking commit 6d131f8. This reverts commit a22e3af8232b2e72e2c610339b3fd4fc9a0693e9.
2020-09-12add a script command to get craft recipe ingredientsgumi1-12/+77
fixup for getcraftrecipe
2020-09-12Fix all remaining bugsJesusaves1-1/+1
2020-09-12Partly Revert "update the call syntax of some internal functions"Jesusaves1-1/+1
This reverts commit 02963c54fa43b41ed8346e243c415e777e9caa4c.
2020-09-12update the call syntax of some internal functionsgumi1-3/+4
2020-09-12add buildin getnpcsubtype() to get nd->subtypeJesusaves1-0/+24
fix an incompatible assignment in buildin getnpcsubtype() Patch by gumi
2020-08-07Revert "add a script command to kick players offline"Jesusaves1-34/+0
This reverts commit 0902765036bc3fe663317043435b73aabe39677a.
2020-08-07add a script command to kick players offlinegumi1-0/+34
Author: gumi <git@gumi.ca> Date: Fri Jul 24 15:11:14 2020 -0400 You are currently cherry-picking commit 6d131f8.
2020-07-29calcdmg() - Force base attack to fluctuate.Jesusaves1-1/+2
Otherwise I don't think it would be fair. Now only weapon damage won't fluctuate, unlike previous behavior.
2020-07-29Allow calcdmg() to be called without a target (MUST be ID 0 or lower)Jesusaves1-2/+33
NOT TESTED
2020-07-03Fix getskillnameJesusaves1-2/+7
2020-06-25Fix shiny tiny bugsJesusaves1-1/+2
2020-06-25TypoJesusaves1-1/+1
2020-06-25getskillname() - strictly requiredJesusaves1-1/+12
2020-06-07Update harm() - It now accepts element, and now uses raw damage.Jesusaves1-36/+85
Add new command: calcdmg(src, target, type). It calcs ATK or MATK. Already taking in account everything.
2020-05-28Theoretical fix for crafting.Jesusaves1-7/+65
getinventorylist() will now be reliable enough to determine item indexes. Be careful when looping. Hopefully, Nicholas rotten code was squashed.
2020-05-22Improve harm() logic, to allow "true/false" usageJesusaves1-5/+4
2020-05-22New builtin: harm()Jesusaves1-0/+101
Effect: Causes damage :> WARNING: Magic Damage is currently a joke >__>
2020-05-22(I don't like surprises, so load the library, just in case)Jesusaves1-0/+1
2020-05-22Override built-in atcommand() to ensure it'll survive upstream changes.Jesusaves1-0/+38
2020-05-15New (DANGEROUS) Function for Moubootaur Legends runtime: resetrng()Jesusaves1-0/+24
This will select a new seed (between 0 and 4294967295) and replace it. Using this command should affect EVERYTHING ingame - from scripts to monsters.
2020-04-26New builtin script command: aggravateJesusaves1-0/+43
Does what Provoke and Mass Provoke should do, but 10x better. And 40x more hackish.
2020-02-26New utility function: instanceowner.Jesusaves1-0/+18
Will return the ID of the instance owner. "0" means global instance or invalid. Party and Guilds share IDs, so be careful when not using account IDs for this.
2020-01-25ChangePlayerMusic()Jesusaves1-0/+27
2020-01-22Merge branch 'master' into tmw2Jesusaves1-12/+3
Rewrite readbattleparam() to rEvolt syntax
2020-01-13New function: readbattleparam( <param> )Jesusaves1-0/+91
Complements with some info only available with getunitdata(), which only works with non-players. Not everything covered by getunitdata() is covered by this function. TEMPORARY COMMIT, should be replaced with getunitdata() when the function is updated upstream to receive player data as well.
2019-11-06countitem() - add support for RIDJesusaves1-0/+49
2019-10-31This should do the trickJesusaves1-1/+1
2019-10-28Tweak homstatus() to lie if Homunculus is deadJesusaves1-1/+5
2019-10-20Fix the broken functionJesusaves1-7/+1
2019-10-19Explicit the conversion to shut up clangJesusaves1-4/+4
2019-10-19Add a function to retrieve EXP tax for a certain guild role.Jesusaves1-0/+54
There's a prototype (WIP) to retrieve the configured role name. That would allow us in a future to allow guild role name customization
2019-10-04Merge branch 'master' into tmw2Jesusaves1-0/+6
2019-10-04Change packet input limit in each input buildin invocationAndrei Karas1-0/+6