108 Commits

Author SHA1 Message Date
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
gepard1984
fc400a1838 Removed gvg_eliminate_time battle config, as it was only used by scripts. Replaced its occurences in War of Emperium script with default value (7000ms) (bugreport:137).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-02 21:16:23 +00:00
brianluau
00367cd7b7 - Removed more trailing tabs.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30 20:17:55 +00:00
masao87
b2324030b6 - Lot's of Bugreport fixes and stuff.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-02 19:37:08 +00:00
brianluau
e8b07466ec - Changed Gld_Trea_Protect: guild members (who aren't the Guild Master) ARE allowed in the treasure room. (bugreport:4839)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15339 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-31 21:56:42 +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
b6e6bec3c6 - Fixed .@GID not being set in Gld_Trea_Spawn, since r13559. (bugreport:5067)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-15 22:40:00 +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
ai4rei
e560ba458b * Revised argument declaration of all script commands according to the actual functions' argument usage.
- Fixed many script commands with fixed amount of optional parameters to no longer accept any amount of arguments (faulty declaration).
- Corrected use of dummy parameter for guildopenstorage in scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-10 22:29:12 +00:00
Inkfish
c3f733849c Random fixes to some script typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14153 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-18 15:39:24 +00:00
Gepard
de0efc5bbd Fixed WoE:FE castles spawning too many Treasure Boxes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-10 19:09:00 +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
Playtester
f8ef62df87 * Applied BrianL's castle switch fix (bugreport:2969)
* Fixed slotted Memory Book not giving the combo bonus (bugreport:2997)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13683 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-20 19:11:16 +00:00
Playtester
c8d8f1e3c0 * Optimized the renters.txt thanks to various people
* Fixed an Aldebaran castle flag thanks to BrianL

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13650 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-01 15:48:47 +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
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
L0ne_W0lf
76397f8bc7 * Another round of bug fixes to various scripts.
- Added Satan Morroc spawn and corrected shadow spawn timers. (bugreport:2690)
- Fixed Group of Evil NPC not reactivating  when it should. (bugreport:2696)
- Fixed the Zeny check when summoning guardians in agits. (bugreport:2712)
- Added zeny check to Jawaii bartender (hung the script.) (bugreport:2747)
- Corrected a mapwarp assosiated with the z-gang quest. (bugreport:2757)
- Fixed warps in ice dungeon 3 being usable all the time. (bugreport:2776)
- Corrected impossible condition if in Keil Hyre quest. (bugreport:2789)
- Corrected leftover aegis variables in several scripts. (bugreport:2794)
- Removed duplicate line from nameless quest. (bugreport:2795)
* Implemented official behaviour/Cost for investing in economy and defence
- Eco/Def will be modified on the turn of the day instead of immediately.
- Cost has been updated to official values. Investing twice now costs 4 times the first investment.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-03 04:11:22 +00:00
L0ne_W0lf
23f6662b0b Fixed Econ values in agit_template. Commited by accident, as it's not finished.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-29 21:28:26 +00:00
L0ne_W0lf
0f671dc55a - Corrected issues with the Keil Hyre quest. (bugreport:2511)
- Corrected minor typo in alchemsit quest. (bugreport:2530)
- High Aco is now given skills on change. (bugreport:2552)
- Added item checks to Ice Necklace quest.
- Uncommented a warp in morroc_fild.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13422 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-29 21:22:35 +00:00
zephyrus
c830a56da3 - Item Rental System.
Script Usage:
- rentitem <itemid>,<seconds>;
- rentitem <itemname>,<seconds>;

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-16 16:14:30 +00:00
zephyrus
d2d38d0d53 - Little optimization on agit_template.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-23 17:59:23 +00:00
L0ne_W0lf
d412bbc60d * 13026 Added iRO Repeatable EXP quests care of Kisuka.
* Updated guild scripts, removed interior flag dialog.
* Applied some Payon 1 script fixes from bugreport:1941.
* Cost is now doubled when investing a second time in eco or defence.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-31 14:24:26 +00:00
shadow
a98253bcc4 Converted skill commands integers to strings. Follow up on r12814
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12819 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13 10:13:14 +00:00
Lupus
f7cb030349 Fixed more +name+ garbage to +strcharinfo(0)+
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12756 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-04 06:00:48 +00:00
L0ne_W0lf
93e85de290 Fixed variable typo in guild scripts. (bugreport:1514)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12712 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-16 11:11:10 +00:00
L0ne_W0lf
1ac9289217 * Fixed a loading flag emblem for Payon 1.
- Also fixed two typos regarding Guild Steward name.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-13 21:21:25 +00:00
L0ne_W0lf
966618bee0 * Fixed guild manager charging twice for invest
- Corrected some treasure room switch sent-to spawns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-11 14:30:17 +00:00
L0ne_W0lf
d1a15516f5 * Fixed times-invested not resetting in WoE scripts.
- Fixed a warning when the standard chest spawn time triggered.
- Corrected several flag-in spawn points, (burgerpot:1475)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12691 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08 16:05:45 +00:00
L0ne_W0lf
070b507516 * Rewrote the WoE 1.0 from the ground up nearly.
- Renamed the WoE Time setting NPC to "agit_controller.txt"
- System is set up to mimic Aegis, some parts are still lacking.
- Documentation on the new system is forth-coming.
- Updated Novice WoE scripts to keep them from breaking.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 23:34:14 +00:00
L0ne_W0lf
3191c1edef I hate the guild castle scripts. Reverted a change.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12496 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-05 20:34:16 +00:00
L0ne_W0lf
31256d4e94 Another Small update to castle ownership announcement.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 06:02:15 +00:00
L0ne_W0lf
38b3a9768a Small update to castle ownership announcement.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 04:47:18 +00:00
L0ne_W0lf
edd19c4e08 * Several small fixes to scripts, and updates.
- Updated City warps for Lighthalzen, and dugneon warps.
- Updated castle warps for Schwaltzvalt Castles Map.
- "The Sign" quest is now enabled by default. (bugreport:1011)
- Added Dimensional Gorge map spawns (According to RO Future Wiki)
- Updated Lighthalzen boss spawning mechanisim to official.
- Fixed a small error in the novice potion exchanger.
- Resolves the following: bugreport:879 bugreport:973 bugreport:983 bugreport:1013 bugreport:1021 bugreport:1024 bugreport:1026

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-22 06:16:21 +00:00
L0ne_W0lf
1dd26ae46d Castle ownership displays at the start and end of WoE.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12188 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-08 15:32:18 +00:00
L0ne_W0lf
3fd5ba0c7d Started fixing bugreport:899 and fixed bugreport:875
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12156 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-01 00:38:56 +00:00
ultramage
4cd9a940e5 Corrected one setcastledata call that I missed in r11915
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-20 22:22:36 +00:00
ultramage
1e6922174e Guardian hp handling code removal (see bugreport:342)
- removed guardian hp from the castle data structure, database, savefiles and various script functions (use upgrade_svn11914.sql)
- removed guardian hp calculation and manipulation from the castle manager npc, now the hp values are updated by the server itself (glitch: when castle defense changes, all guardians are healed to full)
- tweaked script function 'guardianinfo' to provide some data needed by the manager npc (currently available are hp, maxhp and visibility); also, it doesn't need a player attached to execute anymore
The whole thing is experimental, use at your own risk (seems to work though...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14 23:38:11 +00:00
FlavioJS
71efbff724 * Commited the quick fix "emps not respawning if the emp breaker logs off". (from r11630 bureport:369)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14 10:57:38 +00:00
L0ne_W0lf
da3f962b22 * Minor fixes, guild manager, and a couple others.
- bugreport:579, attempt at fixing bugreport:581
- Fixed a typo in the hunter quest. (Not noticable really.)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11905 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14 00:58:20 +00:00
ultramage
7dc104912b Fixed a bug in r11633 always spawning only 1 chest type
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09 08:05:22 +00:00
L0ne_W0lf
6182a13c05 * Fixed some minor guild script related bugs.
- And no, this does NOT fix the Emperium spawning issue.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11811 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 22:19:53 +00:00
L0ne_W0lf
cceb752c18 * Fixed Guild Manager access to Guild Master only.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11746 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-17 04:05:51 +00:00
L0ne_W0lf
c5b41e20b8 Another Luina guild manager fix (In an I never updated that worked fine before.)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 17:36:41 +00:00
L0ne_W0lf
c187942eee Corrected aldeg_cas02 treasure room coordinates. Fixed bugreport:359
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11678 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 05:13:03 +00:00
L0ne_W0lf
e63e86fb83 Corrected an typo in the guild flag function.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11649 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-03 21:52:17 +00:00
L0ne_W0lf
675f48c26f * Rather large update to the WoE scripts.
- Eliminated unofficial map-broadcasts (opening treasures/guardian death.)
- Fixed several errors in guardian spawning (script-wise.)
- Treasure spawning itself is done weird... What exactly is the last paramater for anyway? Near as I can see it's ALWAYS 1. Why is it used? what does it do? Why is it undocumented? Mysteries and more!
- Updated dialog and restructured several NPCs.
* Created a unique function for novice WoE as the new manager does not support it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 01:15:07 +00:00
ultramage
78dd6eda46 Removed code that queues OnAgitEliminate after the Emperium is broken, this is now done properly by the gvg script instead (partially deals with bugreport:342).
If you have any extra castles, update your scripts accordingly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-01 16:34:21 +00:00
L0ne_W0lf
37e98485d1 * Added a return at the end of several scripts. Should deal with errors being shown in due to a recent commit by FlavioJS
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11495 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-16 23:40:07 +00:00
ultramage
569049e33d Fixed a typo from r11221 causing castle problems after they've been conquered.
Converted rest of variables used to temporary script vars.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11258 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-09-21 14:20:52 +00:00
ultramage
8f931716ed Some small adjustment to the P.o.S. guild script...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-09-15 20:09:03 +00:00