summaryrefslogtreecommitdiff
path: root/npc/other
AgeCommit message (Collapse)AuthorFilesLines
2020-07-29Remove unused dirsAndrei Karas35-32913/+0
2020-01-13Update copyright headers for year 2020Haru35-160/+160
Signed-off-by: Haru <haru@dotalux.com>
2019-09-26Fix a missing end in Slipslowrun NPC that allowed to reset the timerskyleo1-0/+2
This bug allowed you to have no time limit on the party mode of Izlude Arena, making it quite easy for you to farm OCAs. Thanks to Vector from oRO Staff for finding this!
2019-07-28Sanitize handling of the input() values.Emistry Haoyan12-248/+241
- avoid potential hacks for old scripts that use `input()` script commands. Signed-off-by: Haru <haru@dotalux.com>
2019-06-02standardize script commands to small lettersAnnieRuru1-9/+9
Signed-off-by: Haru <haru@dotalux.com>
2019-05-05Merge pull request #2068 from AnnieRuru/37-F_MesItemInfoHaru1-1/+22
Add F_MesItemInfo function to show item name with description link
2019-01-29Update Global_Functions.txtsigtus1-18/+9
2019-01-29Added missing return on F_GetTradeRestrictionsigtus1-0/+1
2019-01-27Add F_MesItemInfo function to show item name with description linkAnnieRuru1-1/+22
also fix OldGlastHeim ITEMLINK display incorrectly
2018-12-16Merge pull request #2246 from Emistry/scriptcommand_pcneedstatuspointHaru1-0/+27
Implement status reduction script command.
2018-12-14Add script and item for inventory expansion.Andrei Karas1-0/+63
2018-11-13Merge pull request #2289 from EyesOfAHawk/buildin_getnpcidHaru1-2/+2
Remove type argument from buildin_getnpcid.
2018-11-13Remove type argument from buildin_getnpcid.EyesOfAHawk1-2/+2
2018-10-21Updated getiteminfo and setiteminfo.Dastgir1-0/+37
Added ITR_TRADE (Trade restriction) for both script commands
2018-10-05Implement status reduction script command.Emistry Haoyan1-0/+27
- for stat reduction support. - return the amount of status point required to increase a status.
2018-05-04Implementation of Private AirShipAsheraf1-0/+66
2017-11-12Rewrite F_GetArmorType to reflect the fact that ITEMINFO_LOC returns a bitmaskHaru1-27/+72
The function now handles multi-slot headgears and other uncommon cases better. Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add F_GetAmmoType global function, counterpart to F_GetWeaponType for ↵Haru1-0/+25
ammunitions Both functions have now been updated to only check the subtype if the item type is correct (IT_AMMO for F_GetAmmoType, IT_WEAPON for F_GetWeaponType) Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add type constants for the getiteminfo()/setiteminfo() buildinsHaru2-49/+50
Replacements are as follows: 0 => ITEMINFO_BUYPRICE 1 => ITEMINFO_SELLPRICE 2 => ITEMINFO_TYPE 3 => ITEMINFO_MAXCHANCE 4 => ITEMINFO_SEX 5 => ITEMINFO_LOC 6 => ITEMINFO_WEIGHT 7 => ITEMINFO_ATK 8 => ITEMINFO_DEF 9 => ITEMINFO_RANGE 10 => ITEMINFO_SLOTS 11 (Subtype, for weapons and ammunitions) => ITEMINFO_SUBTYPE 11 (ViewSprite, for other item types) => ITEMINFO_VIEWSPRITE (NOT AVAILABLE YET) 12 => ITEMINFO_ELV 13 => ITEMINFO_WLV 14 => ITEMINFO_VIEWID 15 => ITEMINFO_MATK (NOT AVAILABLE YET - this was documented but never implemented) Calls to getiteminfo() and setiteminfo() have been replaced with the newly introduced constants. Other constants (such as W_ weapon subtypes) in related code have been replaced as well, to improve code readability. This fixes an issue in the Eden Tutorial script "Tutorial Goal", where ITEMINFO_ATK was accidentally used instead of ITEMINFO_WEIGHT. Note: calls to getiteminfo or setiteminfo with numeric type arguments in third party scripts must be replaced with the respective constants. The use of numeric literals is no longer recommended, and those values may change in the future without notice. See the getiteminfo documentation for details. Signed-off-by: Haru <haru@dotalux.com>
2017-09-03Update F_GetArmorType()Emistry Haoyan1-3/+16
- update missing equip types.
2017-09-03Fix errors in the Diamond seller script that were making the NPC check for ↵Mathy1-6/+5
weight incorrectly.
2017-06-03convert specialeffect calls with strings to use GIDgumi1-2/+2
2017-06-03remove specialeffect2 from npcsgumi9-34/+34
2017-05-28remove the pow buildin from existing scriptsgumi1-4/+4
2017-04-25Merge pull request #1689 from Jedzkie/2-GiantFlyWingHaru1-4/+8
Implemented official Giant Fly Wing Effect
2017-04-23Merge pull request #1548 from AtlantisRO/goto_removalRidley2-36/+35
Removed the usage of deprecated command goto from npc scripts (except custom folder)
2017-04-23Implemented official Giant Fly Wing EffectJedzkie1-4/+8
Update the *warpparty script commmand, credits to Dastgir Coding-style fixes & whitespace adjustments in warpparty part in script.c
2017-03-08Removed the usage of deprecated command goto from npc scripts (except custom ↵AtlantisRO2-36/+35
folder). Signed-off-by: Ragno <ragno@atlantis-ro.net>
2017-03-05Update Global Function - Remove F_SexEmistry Haoyan1-10/+0
- not using in any script, could be easily replace by simply if-else condition.
2017-02-20Fixes getbattleflag on npc/other/auction.txt ( Fixes #1580 )KirieZ1-1/+1
2016-10-16Merge pull request #1473 from Ridley8819/0hpHaru1-1/+2
Fix cases were player were executed
2016-10-16Fixes cases where player were executedRidley1-1/+2
On Aegis players set their HP to 0 by script are still alive. Since we don't want to copy this, scripts that set HP to 0 and expects the player to stay alive are changed. Additionally some scripts where changed where the HP were set to 1% instead to 1 HP and also the percentheal -100 with intended death set into close2. In megingard_seal.txt a end; was missing.
2016-10-16Change *getcharid to use constantsAsheraf4-24/+24
2016-09-02change *strcharinfo to use constantsAsheraf17-123/+123
2016-08-29*strnpcinfo now uses constantsAsheraf5-221/+221
- NPC_NAME for the whole npc name including hidden part - NPC_NAME_VISIBLE for the visible part of the npc name - NPC_NAME_HIDDEN for the hidden part of the npc name - NPC_NAME_UNIQUE for the npc unique name - NPC_MAP for npc map
2016-03-12Fixes to Typo Errors.AtlantisRO1-1/+1
2016-02-29Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriateEmistry3-16/+17
2016-01-17Script Standardization: changed select format in other folderDastgir23-168/+168
2015-12-31Replaced leftover -1 view IDs with FAKE_NPCHaru5-1481/+1481
Signed-off-by: Haru <haru@dotalux.com>
2015-12-31Replace -1,{ with FAKE_NPC,{AnnieRuru14-218/+218
replace using Notepad++
2015-12-20Add color constants for announcement and mesAnnieRuru1-0/+8
Added F_MesColor helper function Closes #897 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-18Replaced numeric values with UNITTYPE_ constants in getmapxyHaru4-8/+8
Follow-up to dbe5f2237cada6a261e297b60857dc305860a88d Signed-off-by: Haru <haru@dotalux.com>
2015-12-18More ItemID to ConstantsDastgir1-20/+20
2015-12-18ItemID to Constant: other FolderDastgir10-68/+68
2015-12-17Standardize the comments in Global_Functions.txtAnnieRuru1-6/+4
follow up https://github.com/HerculesWS/Hercules/commit/d4832df6929653561e6867149e4ecaa63a860cbe
2015-12-15Standardized header in scripts (part 14)Haru33-714/+1237
- Now including GPL-compliant license/copyright info - Restored some missing copyrights - Other scripts folders Signed-off-by: Haru <haru@dotalux.com>
2015-12-13Add 'F_ShuffleNumbers' as Global FunctionAnnieRuru1-0/+30
2015-11-17Add some FAQ documentation that some script command can return valueAnnieRuru1-4/+4
- getitemname can return "null" - getmapusers can return -1 and fix the bad ... misleading global function example
2015-11-15Fixed too-generic constant names of gettime() typesHaru5-20/+20
- Follow-up to 3bd77ffc0daca508352834add828766490075aee - The names were too generic (not namespaced), and were easily clashing with custom (and potential future official) constants or variables. - Constants are now prefixed with a 'GETTIME_' namespace: - GETTIME_SECOND - GETTIME_MINUTE - GETTIME_HOUR - GETTIME_WEEKDAY - GETTIME_DAYOFMONTH - GETTIME_MONTH - GETTIME_YEAR - GETTIME_DAYOFYEAR - Fixed some excessive (and some times incorrect) parentheses in various scripts using gettime(). - Updated documentation. Signed-off-by: Haru <haru@dotalux.com>
2015-11-08Fixes Chance of Comodo Gambling (Thanks to @michaelforge for pointing itDastgir1-2/+2
out)