83 Commits

Author SHA1 Message Date
Daegaladh
354c632732
Fixed place names and other typos (#4475)
* Fixed common misspelled names from iRO and other typos.
2019-12-15 20:55:19 +01:00
Atemo
43b3bc08be
Fixed variable typo in agit_main_se.txt (#3889)
* Guardians were randomly spawn on the map
2019-01-25 17:42:00 +01:00
Aleos
7045d585e4
Added constants for Castle Data manipulation (#3531)
* Fixes #3530.
* Added constants for script commands getcastledata and setcastledata.
* Adjusted the guardian constants to adjust based on MAX_GUARDIANS define value.
* Updated scripts to reflect changes.
Thanks to @keitenai, @Atemo, and @Lemongrass3110!
2018-11-08 16:27:03 -05:00
Atemo
78edf851a0
Suggestion of implementation of is_party_leader and is_guild_leader script commands. (#3617)
* Implemented is_party_leader and is_guild_leader script commands.

Thanks to @cydh !
2018-11-06 16:28:09 +01:00
Atemo
3d8104d7fb
Suggestion: checkwall script command (#3393)
* Added checkwall script command
- Included the checkwall in npc folder
2018-08-14 20:58:49 +02:00
Lemongrass3110
f42c2ff211 Moved some remaining constants into src (#2501)
* Moved all npc view constants into src

Source side the constants will use Gravity's naming standard(JT_*)
NPC side still supports the old names without JT_

* Moved all effect constants into src

Added check for effect validation to atcommand effect and all script commands using them
Removed the unused and broken function unit_changeviewsize from unit.c
Replaced a lot of hardcoded effect ids with their respective constants
Cleaned up the effect documentations

* Moved all hat effect constants into src

Added check for effect validation to script command hateffect
2017-10-14 18:13:51 +02:00
Lemongrass3110
2043c95e66 Refactored hardcoded npc event names (#1767)
While refactoring those events the following other changes were made:

Introducing OnInstanceDestroy event. This event can be used to hook script code right in front of the instance destruction. This can be useful if you have any stored references to an instance id for example.

The script command cmdothernpc will now check if the target event exists and report failures. Therefore it now returns true or false.

All agit(FE,SE,TE) start and end commands from atcommand and script commands have been merged in their respective guild function which now returns a bool value of true for successful actions and false if it did not succeed(if the specific WoE was [not] running).

All global triggered events with mapserver status output now call the same function and therefore have the same mapserver output(including their respective event name of course).

Renamed a few events in the script configuration to match the other names

Added constants for months and weekdays

Additionally added constants for gettime types to make it easier to read.

Replaced all existing usages I found with their proper new syntax or better fitting functions.
2017-01-10 22:58:04 +01:00
Atemo
d2651c45c1 Issue #1760 in woe 2
- The firsts barricades are now indestructible until both Guardian Stones are destroyed.
2016-12-01 23:58:43 +01:00
Lemongrass3110
9040613fa6 Added missing empty newlines to a lot of files 2016-11-23 13:54:45 +01:00
Jittapan Pluemsumran
bd6539a9ba Follow up to c23688c
Unify all checks into one function.
Suggested by @Cydh.
2016-03-26 10:52:30 +07:00
Jittapan Pluemsumran
c23688cea4 Clean up basic skill checks 2016-03-23 21:11:57 +07:00
Atemo
3a45dd97f9 Another clean-up 2015-12-09 23:09:17 +01:00
Euphy
90b187ff3e Changed all "Compatible With" fields to "rAthena Project".
Edited a handful separately, as appropriate.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-01-12 16:24:38 -05:00
Euphy
97687ca10c Global_Function updates.
* Added the following functions:
  - "F_GetPlural" (returns plural of noun) / "F_InsertPlural" (returns plural if arg != 1)  [credits: EnglishClub for formation rules]
  - "F_InsertArticle" (returns 'a' or 'an' preceding word)
  - "F_InsertComma" (formats number with commas)
  - "F_GetNumSuffix" (formats number with '-st', '-nd', '-rd', or '-th' suffix)
* Added and removed new functions where necessary. (incomplete)
* Added new types to "F_GetArmorType" function, and weapons will now pass to "F_GetWeaponType".
* Reformatted comments.

Other changes:
* Removed some garbage text from scripts.
* Slight edits to custom warper script.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-01-03 20:13:44 -05:00
Euphy
454781a24d * Fixed a WOE:SE issue with 2nd Guardian Stone respawn. (tid:86918)
* A couple of other tiny fixes.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-30 18:02:48 -04:00
Euphy
3beb7833f9 * Fixed Guardian Stone respawns in WOE SE. (bugreport:7849)
* Fixed job checks in Falcon Flute Trader script. (bugreport:7839)
* Fixed Guillotine Katar slots. (bugreport:7838)
* Fixed @itembound type 4 not working.
* Bossnia changes:
- Monsters should not be spawned with 'boss_monster' according to official scripts; removed 'notomb' mapflags accordingly (partial revert of r17404).
- Merged file into events/bossnia.txt, since the spawns and warps should be disabled by default.

Signed-off-by: Euphy <euphy@rathena.org>
2013-07-17 23:16:15 -04:00
euphyy
f488861298 * Implemented Buwaya Cave instance.
* Implemented Bakonawa Lake instance.
* Monsters can now spawn on unwalkable cells, as required by the new instances. (credits: Akinari)
* Implemented 2012 RWC Enchants script, disabled by default.
* Reverted change to Mora Enchants from r17387, as the additional items are only present on iRO. (credits: Ziu)
* Fixed some errors from recent updates.
* Applied eol-style:native property to newly added files.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17397 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-07-01 00:16:43 +00:00
euphyy
b2a3bdd1c9 > Guild fixes:
* Added a check to prevent double Emperium spawns in WOE SE castles (since r16571).
* Added guild disbanding events for WOE SE castles (since r12531).
* Fixed an incorrect parameter in WOE FE guild disbanding event (since r12673).

> Other:
* Fixed .@atcmd_numparameters, code by Zephyr (bugreport:7198).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17106 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-27 06:37:20 +00:00
cookiecrumbs
7b7e244fef Small fix (confirmed) to the barricade spawn coordinates in schg_cas02. This caused the cades to only be target-able via specific skills as they were lodged into the wall.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16741 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-03 22:58:09 +00:00
j-tkay
dd130860d3 - Fixed partially bugreport:6572, where WoE:SE Flag Emblem not showing. (npc/guild2)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-02 17:42:33 +00:00
euphyy
2adc9cdf28 * Follow-up r16726, more standardization on docs.
* Replaced and added dividers in many script files with one standard divider.
* Other misc. cleaning...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-01 00:37:36 +00:00
j-tkay
e68f5ef201 - Fixed invalid duplicates in arug_cas05.txt. Hopefully it fixes bugreport:6446 =\
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16650 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-17 12:35:42 +00:00
euphyy
bd7de23625 * Attempted fix at a rare error in guild2 scripts where Emperium would respawn immediately and without an owner after breaking. If this still happens, please file a bug report.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16622 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-11 05:30:33 +00:00
euphyy
cfeba803ed * Fixed a critical typo in the new guild2 scripts - why hasn't anyone reported this? D:
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-10 18:09:57 +00:00
brianluau
eccf002de1 - Added svn:eol-style=native property on some recently added text files.
- Renamed upgrade_svn16517.sql to the correct SVN revision it was added in (r16518).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-09 18:01:21 +00:00
euphyy
9441082024 * You may notice that your /guild2/ folder shrunk considerably - you're welcome. x.x
* You may also notice that your /guild2/ folder no longer functions. If that's the case... blame Maki (you can find him on the forums, IRC, TS, TSR, etc...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-03 21:28:27 +00:00
daegaladh
47e59df253 Reverted and optimized treasure room protection script, and disabled by default since isn't working anymore on official servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-02 10:44:36 +00:00
daegaladh
f49b3d6f55 Full npc folder reorganization. (I hope I didn't break anything D:)
-Now common scripts goes to the main npc folder, and pre-re-only/re-only ones goes to their respective folders.
-NPCs with practically the same script but little differences have been left in the main folder and uses the command checkre() for the differences.
-For those NPCs with different coordinates but same script, the script has been left in the main folder but the NPCs splitted as duplicates.
-All pre-renewal files has been reverted back to their pre-renewal behavior.

TODO:
-Correct pre-re quest rewards.
-Check for pre-re/re differences in mapflags.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-01 04:29:56 +00:00
shennetsind
086af74531 Okie ladies and gentleman if this commit breaks anything it's jman's and maki's fault, yes, blame them.
Fixing pre-re / re npc support, moving /config/ folder to src root so other servers may also make use of the #define renewal dir and other stuff.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-08 19:30:07 +00:00
brianluau
79767f97bd - Fixed guild emblems not showing on flags at server start. (bugreport:5796, since r15657)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-24 17:32:14 +00:00
gepard1984
f810293de3 - Guild Castle code cleanup:
- removed `MAX_GUILDCASTLE` limit
  - char-server now caches guild castles in `DBMap`
  - improved guild castle SQL queries to support non-default values of `MAX_GUARDIANS`
  - disallowed declaring guild castles on maps that are on other map-servers 
  - map-server now requests data for all guild castles from char-server on initial connect (bugreport:287)
  - removed ''guildcastleinfo events'' as they were esentially duplicated ''OnAgitInit''
  - optimized castle data load packets (bugreport:287)
  - updated WoE scripts to reflect source changes (scripts no longer need or should request castle or guild data)
  - updated related docs
- Added `db_size` macro.
- Replaced manual counting of castles occupied by a guild with `guild_checkcastles()` calls.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-04 18:37:29 +00:00
mercurial123
0f47604f2d - Replaced all occurrences of "eAthena" to "rAthena" string
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24 21:30:42 +00:00
brianluau
1c0abe84ef - Fixed a possible exploit in guild castle investment. (bugreport:4929, topic:272783)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-24 07:59:43 +00:00
L0ne_W0lf
6e837a5214 * Added bard/dancer songs and duets to the nodispell list. (bugreport:4411)
* Applied Ai4rei's patch for the skill WE_CALLPARTNER (bugreport:4437)
* Lots of updates to monster stats/drops, all fairly minor.
* Updated the price and weight of a handful of etc items.
* Removed drops for quest-spawned Satan Morroc. (bugreport:4425)
* Changed weight on novice consumable items to 0 (bugreport:4442)
* Updated Sage quest skill quest with the file curtosy of 5511.
* Fixed the Pink Crystal being named Blue Crystal in Flavius.
* Touched up the archer tutorial, and phantasmic arrow quests.
* Fixed Turbo Track records for 8 and 16 normal saving as expert. (bugreport:4433)
* Corrected the positions for the arug castle 04 exterior flags. (bugreport:4436)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-09-18 17:15:37 +00:00
L0ne_W0lf
271c2201f2 * Fixed wrong events being called for flavius02 BG waiting rooms. (bugreport:4395)
* Fixed the setwalls in Tierra gorge, again. Removed extra mapflags.
* Moved overlapping guild flags outside arug_cas05 to proper points.
* Fixed kRO Name for Women's Bundle. (bugreport:4398)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14385 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-20 15:53:35 +00:00
L0ne_W0lf
fba25b34bd * Fixed setcell in arug_cas04 and 5 extending past what it should. (bugreport:4323)
* Minor item database bug fixes!
- Corrected some lower headgears being able to be refined. (bugreport:4328) 
- Fixed wrong view ids for crown of deceit and musical note headband. (bugreport:4328) 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-21 15:35:42 +00:00
brianluau
e1dd821ee7 - Fixed a typo in arug_cas03 flag. (bugreport:3917)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-09 02:36:38 +00:00
brianluau
789f9fd1d5 - Added mob_avail IDs for iRO Halloween Event 2008, added in r14112. (bugreport:3703)
- Fixed Tatacho's race, should be Brute. (bugreport:3664)
- Fixed a label name in Control Device01#aru04. (bugreport:3716)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-02 20:45:52 +00:00
Kisuka
bcc93a061b - Fixed typo in WoE:SE Castle announcements (bugreport:3714).
- Fixed typo of a check in god_weapon_creation.txt (bugreport:3613).
- Fixed missing changequest in Knight Job Quest (bugreport:3757).
- Fixed placement of Control Device01#aru04 (bugreport:3716).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14178 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-29 23:23:42 +00:00
L0ne_W0lf
c652787562 * Added known info for WoE SE Guild Dungeon monsters.
- Movement speed, and attack delays are not official. (copy/pasted)
- Skills are, like above, copy, pasted, edited. Not official.
- Decided not to drops added for the mentioned monsters.
* Added mapflags for WoESE guild dungeon.
* Added official WoESE Guild Dungeon NPCs, and custom spawns.
- As the mobs are not 100% (missing stats, no drops, etc) they are disabled by default.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-04 00:13:52 +00:00
L0ne_W0lf
82fd1bd8be * Added new broadcasting support from r14120 to WoE scripts.
- "Conquered" messages can now be effectively toggled off in Battle log
- Added fontsizes for WoESE messages. (At least the non-default sizes.)
* Added font weight constants, although they don't seem to do anything.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14122 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03 19:41:37 +00:00
L0ne_W0lf
1b8628e876 * Changed attribute_recover to no, being hit by the same element should not recover HP.
* Added monster_noteleport to Okolnir quest maps. Will fix the tarot card issue.

- Fixed Brynhild dialog in the Asprika quests. (bugreport:3085)
- Removed "Disabled" tag from Volcano base quest. (bugreport:3342)
- Attempted to fix the sign quest dancing portion. (bugreport:3382)
- Fixed Guardian in schg_cas03 using invalid coords. (bugreport:3462)
- Fixed Turbo Track records using wrong variable type. (bugreport:3484)
- Fixed the checkweights in the Crow of Fate quest. (bugreport:3500)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-18 22:33:33 +00:00
zephyrus
86563064db - Fixed a bug cleaning instance variable on party when instance is destroy.
- Fixed a bug on Yuno Castle 2 and 3, not killing guardians.
- Moved battleground team leave on unit remove map to prevent a crash on multimap servers.
- Fixed a bug on checking range with the wrong target. Fix a crash on Item 2002 at refine >= 9.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29 09:10:51 +00:00
brianluau
1eaef19afe - Fixed double-quotes not being escaped in the custom xmas_rings_event. (bugreport:2546)
- Renamed an OnClock label so it's consistent with the other castles. (bugreport:2831)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13756 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12 07:47:02 +00:00
L0ne_W0lf
4dd82cd1e8 Follow up to r13559, r13560 and r13561. Moved some stuff around in the WoESE agits, and corrected a few mistakes I made.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-04 18:28:22 +00:00
L0ne_W0lf
317e54657b Removed extra lines from schg_cas02 resetting data before eco/def is applied.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-03 17:49:09 +00:00
L0ne_W0lf
d28267ebcd * Applied the updated eco/def investment system to Juno WoESE castles.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-03 06:01:21 +00:00
L0ne_W0lf
ee268541d4 * Applied the updated eco/def investment system to Rachel WoESE castles, Juno's next.
* Corrected the conditions in the if block that I goofed up, in agit_template.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13560 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-03 05:41:17 +00:00
zapbomb
5597a4fb60 Corrected wrong treasure spawn position in schg_cas01.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13369 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-13 18:48:56 +00:00
L0ne_W0lf
0c8ec88edc * More boredom and bugfixing to various scripts. :D
- Updated an outdated comment in refine.txt. (bugreport:2370)
- Fixed two bad event calls in arug_cas04/05. (bugreport:2386)
- Fixed wrong check in haire dresser script. (bugreport:2392)
- Fixed infinite loop in archer quest scropt. (bugreport:2393)
- Bonus: Updated the blacksmith supply dealer in Einbroch


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13330 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-28 04:29:37 +00:00