7913 Commits

Author SHA1 Message Date
zephyrus
e9153a3c17 - Fixed item Nemesis.
- Fixed Tarot Card being used on Emperium.
- First Part of BattleGround Implementation (please wait).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-26 21:27:12 +00:00
FlavioJS
14cbb64848 * Wrong variable being used in StringBuf_Vprintf. (follow up to r13386, fixes bugreport:2798)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-25 16:15:09 +00:00
zephyrus
7311750f56 - Bugreport #2800 ( Atcommands usables without restriction :S )
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-25 06:04:18 +00:00
sketchyphoenix
23f462ad60 Replaced giving dummy sd gm levels in script commands atcommand and charcommand with a check by internal flag.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-24 01:17:36 +00:00
sketchyphoenix
35dbe82eea * Consolidated is_atcommand() and is_atcommand_sub()
- replaced gmlvl arg with a flag arg for internal/player generated checks. (dummy sds that used this arg are given gm levels)
	- each command check runs through is_atcommand() and is checked for its origin (internal or player generated)
	- charcommands are also parsed in this function.
	- script atcommand/charcommand function calls to is_atcommand() have been updated
	- also updated some clif/map functions calls to is_atcommand()
	* charcommands should now log properly with the target of the command included.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 18:32:43 +00:00
FlavioJS
ddf501b224 * Made mob_timer_delete check the deletetimer in the mob.
* Added missing delete_timer's every time deletetimer is being set. (except when allocating)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 16:36:58 +00:00
FlavioJS
92d80d2e99 * Made mob_delayspawn check the spawn_timer in the mob.
* Added missing delete_timer's every time spawn_timer is being set. (except when allocating)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13543 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 15:57:02 +00:00
ultramage
e362a5ce6f Corrected revision number for the previous upgrade script.
Applied changes made inside the script to main.sql.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-21 10:59:18 +00:00
ultramage
c2cc0763d9 Increased variable size for status/skill points to remove the 65k cap (bugreport:1579).
Added sql upgrade script to adjust the appropriate char table columns.
This is an enhancement to r5762.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 19:47:17 +00:00
FlavioJS
8326096602 * Modified WFIFOSET to trigger a fatal error when trying to send a packet that is too big.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 05:53:50 +00:00
FlavioJS
ad963e52e6 * Fixed impropper filling of w4 in npc_parsesrcfile when there are less than 4 fields. (bugreport:1063)
* Simplified atcommand_spiritball. (deprecated msg_txt 204 and 205)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-19 16:57:01 +00:00
Kisuka
d95ad1e02a - Small fix to zeny check in airships.txt (bugreport:2763)
- Fixed a typo in thana_quest.txt (bugreport:2783)
- Added missing dialog to Biological Weapon Quest. (bugreport:2778)
- Optimized and fixed getequipname() in card_remover.txt (bugreport:2156)
- Added missing npc name in Lvl4_weapon_quest.txt (bugreport:2764)
- Updated item scripts for 12294 to 12297. (bugreport:2766)
- Updated item 1483 (Ivory Lance). (bugreport:2753)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-18 23:57:29 +00:00
ultramage
a6d6739409 Fixed card remover commands not preserving item rental time.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-16 00:38:57 +00:00
Lupus
1bdafa4c97 fixed 2nd bug in the event
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-13 20:55:39 +00:00
Lupus
822514596c fixed st.Val exploit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-13 18:36:59 +00:00
Kisuka
3944f69f1d - Added iRO Valentine's Day 2009 Event.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-12 17:43:13 +00:00
ultramage
54d610302d Applied patch to getitem2/delitem2 to handle charid embedding correctly (bugreport:2735).
Added missing codepage option for ipban module in login_athena.conf.
Converted dbghelpplug project in vs9 directory to vs9 format.
Updated effects list doc with new data from 2009/01/21a sakexe.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-12 12:27:59 +00:00
Kisuka
1887aa4d3c - Relocated 'Maseph' npc to moc_fild07. (bugreport:2749)
- Removed duplicate text from hellion quest. (bugreport:2738)
- Starting to translate any Japanese text I find in eAthena.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-07 04:59:49 +00:00
FlavioJS
29183f62d5 * Follow up to r13485. (bugreport:2741)
- @spiritball creates spiritballs without timer (limited to the array size instead of 500)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-06 18:47:30 +00:00
ultramage
913165e7c4 Yet another fix to r13503 - dangling player chatroom pointer in id_db (bugreport:2750).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13508 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-06 18:41:46 +00:00
ultramage
ac6b5f162a Fixed NPC_ALLHEAL being obtainable by players/gms, which also causes client crashes (bugreport:2737).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-03 11:09:58 +00:00
ultramage
7f2589f080 Fixing r13503...
- Added missing id_db removal calls for all flooritem objects (bugreport:2729)
- Added missing destruction of skillunit_db on mapserver exit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-02 08:28:34 +00:00
ultramage
8e35ca3ebb Added skillunit_db for efficient execution of skill_unit_timer() (followup to r13503).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-31 19:31:30 +00:00
ultramage
54993d74aa objects[] array removal (bugreport:2559)
- Removed the 2 MB wide static array in favor of a general-purpose DBMap (id_db for now).
- Inlined functions map_addobject, map_delobject and map_delobjectnofree into their callers' code.
- Replaced the free id lookup algorithm from ancient jathena with something more efficient.
- Moved the algorithm to map_get_new_object_id() (similar idea as r13481).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-31 15:48:04 +00:00
Kisuka
c3859196e0 Fixed "junk symbols". (bugreport:2723)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-30 11:22:59 +00:00
ultramage
f4a36b9b63 Fixed mob_spawn_dataset() not initializing the spawn_timer variable (followup to r13497).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13498 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-29 01:05:29 +00:00
zephyrus
dfe943a397 - Fixed a little spawn_timer bug. Discovered with a previous fix from ultramage and because of this spawn line:
npc/mobs/fields/prontera.txt:
prt_fild06,222,30,40,10	monster	Green Plant	1080,15,900000,450000,1

This is an impossible spawn area, and the engine just keep trying each 5 seconds to spawn it again.
So we need to fix this line with a correct spawn too.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13497 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-29 00:13:25 +00:00
Kisuka
df1e61b6e0 - Fixed typo on Sprint Set item (bugreport:2679)
- Fixed typo on Poison Bottle Box item (bugreport:2715)
- Fixed Kafra coordinates for moc_ruins kafra (bugreport:2714)
- Added items 14228 - 14241 (bugreport:2716)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13496 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-26 21:46:50 +00:00
L0ne_W0lf
9b5bfcf8c5 Changed guild_skill_relog_delay to yes. Relogging no longer resets delay on guild skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13494 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-26 05:00:15 +00:00
zephyrus
96c953126c - Implemented monster skill "Full Heal" NPC_ALLHEAL.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 20:14:19 +00:00
zephyrus
c728878085 - Ops... missing var from my source. Sorry.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13492 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 20:07:55 +00:00
zephyrus
d4c7aad803 - Implemented new Pet Bonus System. Enjoy!! :D
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 20:06:13 +00:00
zephyrus
ede9af3b29 - Implemented new item bonus scripts required for battlegrounds.
- Battlegrounds items rewards for Tierra Valley and Flavius done (but autoscript rate is suggested - 5%).
- Restricted trade/storage/drop for those items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 19:50:02 +00:00
Kisuka
64f56705f8 - Added 'Acorn Dealer' NPC to Moscovia (forgot to add it).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 19:35:06 +00:00
FlavioJS
4d467728cf * Changes to the configure script:
- added option --enable-profiler (supports gprof)
- added option --enable-64bit (don't force 32bit)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 16:12:20 +00:00
FlavioJS
743de085b2 * Changed pc_spiritball_timer and pc_addspiritball: (bugreport:2705)
- don't make assumptions about the calling order of timers
- ensure that sd->spirit_timer is is ordered by expiration time

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 23:43:27 +00:00
FlavioJS
9a8c2a60c9 * Changed the variables of the mapcache structs to fixed size equivalents. (64bit portability issue)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 19:38:48 +00:00
FlavioJS
58e4991d42 * Changed all uses of struct skill_unit_group* to group_id in status_change_entry's. (last known 64bit portability issue)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 17:38:17 +00:00
FlavioJS
1a2d2c0d4e * Changed npc_get_new_npc_id to ensure that it never returns invalid/used ids.
- npc_get_new_npc_id is used to generate ids for npcs/mobs/homunculus/mercenaries/pets. If the server runs for long enough (years to months or less, depending on settings), the auxiliary variable npc_id will eventually overflow and go negative, then go through the range of object ids, then through the range of account ids. This can lead to all sorts of random crashes and memory leaks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13481 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-23 17:49:44 +00:00
ultramage
47fad03c47 Added a missing break; in pc_setstat, messing up LUK increasing (see r13460) (bugreport:2697).
Corrected clif_bladestop(), void function returning a value (see r13471) (bugreport:2698).
Fixed npcs with touch area not stopping walk timers (see r6516) (bugreport:2700).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-23 11:53:52 +00:00
ultramage
9c93c098e8 Removed outdated bSPDrainValue command from item bonus documentation (see r3149).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13474 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-22 10:43:16 +00:00
Kisuka
def28213f4 - Fixed some item checks on gunslinger quest. (How was this not noticed for so long?) (bugreport:2693)
- Fixed Pheeroni spawn. (bugreport:2682)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-22 10:35:27 +00:00
FlavioJS
e3d5e89496 * Changed val4 of SC_BLADESTOP from a block_list pointer to an id. (64bit portability issue and potential dangling pointer crash)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-22 09:37:47 +00:00
FlavioJS
672dbf2946 * Added a limit of 1MB of pending data in the write fifo for non-server sockets. Connections that go over the limit are closed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 15:18:51 +00:00
ultramage
5ccc68e16a Fixed Assassin Dagger's item script (typo in r13457).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 08:09:35 +00:00
ultramage
9c255d04a4 Fixed a null pointer crash in r13463 (thanks to Ramsey for reporting it).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 07:58:50 +00:00
Kisuka
de3008f248 - Moscovia NPCs. (All the generic, kafra, and guide NPCs.)
(Moscovia quest npcs still have horrible english, so that's why they aren't being committed yet.)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 02:35:38 +00:00
FlavioJS
69720a42bf * Replaced the fake timer heap (sorted array) with a real heap. (improves performance)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 01:21:24 +00:00
FlavioJS
013d104eff * Added a generic binary heap implementation based on defines. (round 2)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 00:35:33 +00:00
ultramage
dfe2b1edaa Efficiency improvement for clif_send (use pc_db iterator instead of sockets array).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20 21:55:07 +00:00