summaryrefslogtreecommitdiff
path: root/npc/custom
AgeCommit message (Collapse)AuthorFilesLines
2019-04-29Merge pull request #2440 from Emistry/scriptcommand_consolemesIbrahem Zidan3-7/+7
Added *consolemes script command
2019-04-29Added *consolemes script commandEmistry Haoyan3-7/+7
- deprecated `*debugmes` script command. - added `*consolemes` script command which display the console message based on `type`. - allow map-server console to auto logging into text file depend on type of message.
2019-04-29Fix issue #1955Emistry Haoyan1-3/+6
- fix error due to event terminated by GM using `@killmonster` command.
2019-01-14Add barter shop demo script.Andrei Karas1-0/+21
2019-01-14Fix a bug that causes the event to run indefinitelyAnnieRuru1-0/+10
- the .RoundCount only increase when having players answer correctly if nobody playing this event, or players give up before .Rounds(10) rounds, it will continue run forever
2017-11-12Add type constants for the getiteminfo()/setiteminfo() buildinsHaru3-13/+9
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-06-03add missing constants to specialeffect callsgumi13-25/+25
2017-06-03remove misceffect from npcsgumi10-23/+23
2017-06-03remove specialeffect2 from npcsgumi17-37/+37
2017-05-28remove the pow buildin from existing scriptsgumi1-2/+2
2016-11-20Replaced some unsupported symbols in AegisNames (step 2)Haru6-16/+16
This removes the remaining unsupported symbols (despite they being official names) in AegisNames: The apostrophe (`'`) sign is suppressed. The full replacement rules (cumulative with the step 1 commit) are thus: - Any apostrophe is suppressed. - Any non-`[A-Za-z0-9_]` character is replaced with an underscore (`_`). - If the replaced symbol is at a word boundary (beginning or end of the string, or next to another underscore), it is suppressed instead. - If the replacement causes an AegisName conflict, underscores are appended appropriately. Signed-off-by: Haru <haru@dotalux.com>
2016-10-16Merge pull request #1473 from Ridley8819/0hpHaru2-2/+4
Fix cases were player were executed
2016-10-16Fixes cases where player were executedRidley2-2/+4
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 constantsAsheraf9-32/+32
2016-09-02change *strcharinfo to use constantsAsheraf33-193/+193
2016-08-29*strnpcinfo now uses constantsAsheraf3-5/+5
- 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-08-21Removed some of the leftover calls to menu() in custom scriptsHaru16-2074/+2047
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Fixed some script errorsHaru4-8/+8
Signed-off-by: Haru <haru@dotalux.com>
2016-02-29Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriateEmistry4-31/+38
2016-02-07Merge pull request #1110 from dastgir/22-ScriptClean-Phase2Haru26-79/+79
Script CleanUp Phase 2
2016-01-30Fixes conditions in itembind.txtDastgir1-4/+9
2016-01-16Script Standardization: changed select format in custom folderDastgir26-79/+79
2015-12-31Replaced leftover -1 view IDs with FAKE_NPCHaru3-8/+8
Signed-off-by: Haru <haru@dotalux.com>
2015-12-31Replace -1,{ with FAKE_NPC,{AnnieRuru23-54/+54
replace using Notepad++
2015-12-18Replaced numeric values with UNITTYPE_ constants in getmapxyHaru1-2/+2
Follow-up to dbe5f2237cada6a261e297b60857dc305860a88d Signed-off-by: Haru <haru@dotalux.com>
2015-12-18uneasy Cemetry fixDastgir1-3/+3
2015-12-18ItemID to Constant: custom FolderDastgir19-202/+202
2015-11-15Fixed too-generic constant names of gettime() typesHaru6-17/+17
- 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-14Standardized script-queue related commandsHaru1-4/+4
- The commands queueadd, queueremove, queueopt, queuedel and qiclear now all return true (success) or false (failure). - Taken/extended from AnnieRuru's PR #847. - The constants HQO_OnDeath, HQO_OnLogOut, HQO_OnMapChange were renamed to QUEUEOPT_DEATH, QUEUEOPT_LOGOUT, QUEUEOPT_MAPCHANGE respectively. - The name of the variable @QMapChangeTo$ used during the QUEUEOPT_MAPCHANGE event has been renamed to @Queue_Destination_Map$. Signed-off-by: Haru <haru@dotalux.com>
2015-10-27Replaced parameter type with constant.Emistry6-17/+17
constant for gettime( <type> ) constant for Weekday and Month.
2015-10-13Added Items needed in eden_iro.txtmoguri852-13/+13
Changed NPC id->constant in eden_iro.txt Fixed case warning errors on may_hats.txt and mushroom_event.txt
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru22-211/+191
Signed-off-by: Haru <haru@dotalux.com>
2015-06-25JobChanger UpdatedDastgir1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-06-25Updated RockPaperScissorsDastgir1-267/+109
Signed-off-by: Haru <haru@dotalux.com>
2015-06-05Renamed guild and guild2 folder to woe-fe and woe-seDastgir1-2/+2
2015-05-16Merge pull request #515 from EPuncker/masterDastgir1-140/+163
Updated warper. Changed close; to end;
2015-05-16updated warperEvil Puncker1-140/+163
2015-05-13Changed close; into end; to try to fix bug 8666, since there is no dialogue ↵Evil Puncker1-1/+1
window a close; is not needed
2015-05-08Replaced checkre() calls with constantsHaru2-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-03-29Avoid binding rental items.Emistry1-2/+2
Prevent the NPC to show rental items when players try to bind an items.
2015-01-30Fixes Warper NPC Overlapping. #8018Dastgir1-1/+1
2014-12-14Fixed some improper grammar.Mysteries1-1/+1
2014-11-14Fixed a typo in npc/custom/breeder.txtHaru1-1/+1
Special thanks to Ridley8819 Signed-off-by: Haru <haru@dotalux.com>
2014-10-30Deprecated checkriding and setriding commandsHaru3-20/+21
Replaced their use in scripts with checkmount and setmount, respectively. Signed-off-by: Haru <haru@dotalux.com>
2014-10-30Deprecated checkdragon and setdragon commandsHaru1-1/+2
Replaced their use in scripts with checkmount and setmount, respectively. Signed-off-by: Haru <haru@dotalux.com>
2014-10-30Deprecated checkmadogear and setmadogear commandsHaru1-7/+12
Replaced their use in scripts with checkmount and setmount, respectively. Signed-off-by: Haru <haru@dotalux.com>
2014-10-28Removed use of 'checkquest' from scripts (common folder)Haru2-44/+44
Signed-off-by: Haru <haru@dotalux.com>
2014-10-24Renamed ismounting, setmounting, @mount2Haru2-3/+3
To avoid ambiguity: - The script command ismounting is now hascashmount - The script command setmounting is now setcashmount - The at-command @mount2 is now @cashmount Signed-off-by: Haru <haru@dotalux.com>
2014-10-06Fix Bug 8133dastgir1-1/+4
* Disguise Event was having Renewal and Pre-Renewal Monster Constant in an array without any checks
2014-09-23Fix blackjack script by logging out to prevent zeny deletionAnnieRuru1-6/+15
there is a well known bug of this script (I've known this since eathena actually) when you are certainly going to lose the bet, log out immediately while the card are still dealt and you don't get zeny deletion thx to Holiness to bring this up again