896 Commits

Author SHA1 Message Date
Gepard
100bb34a4f Fixed codepage indicators being included in NPCs' whispervars. (bugreport:4325)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-20 20:11:13 +00:00
L0ne_W0lf
4d87e0aefe * Blocked being able to use the skill CR_DEVOTION on players under the status SC_HELLPOWER.
- Additionally, users afflicted by the status can also no longer use Token of Siegfried to self-res.
* Added Manuk, Splendide and SC_HELLPOWER statuses to the status effects that can't be dispelled.
* Changed SC_SPEEDUP0 to use the correct status icon SI_MOVHASTE_HORSE.
* Changed SI_SPEEDUP1 to use the correct status icon SI_SPEEDPOTION1.
* Added updated 13.2 drops to existing monsters. (Most rates are unknown, and set to 0.1%)
* And time to squish database bug reports!
- Fixed guild event quest log entry time limit. (Bugreport:4204)
- Fixed Musika healing while attacking and not when attacked. (Bugreport:4211)
- Corrected the Int and HP/SP reduction on the Dead Tree Cane. (Bugreport:4217)
- Fixed the non-set bonus for Glorious Ring's heal increase. (Bugreport:4223)
- Fixed Death Guidance not casting NPC_HELLPOWER on the user. (Bugreport:4250)
- Changed the usable job for Bone Plate from all to thief class. (Bugreport:4286)
- Changed the bonus on alternate large bapho horns to subrace. (Bugreport:4291)
- Added slots to blu and pink night caps, and a couple others. (Bugreport:4301)
- Removed an extra comma from the Mini_Propeller_M headgear. (Bugreport:4307)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-14 19:37:59 +00:00
Inkfish
da59a9f4a0 'clif_hpmeter' shouldn't send the packet to the player himself.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-14 02:53:07 +00:00
Yommy
fccc67c6be * Added support for packet 0x7fe which changes the bgm temporarily for a single player.
* Added 2 script commands, playBGM and playBGMall, documented use in doc/script_commands.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-09 19:57:53 +00:00
Paradox924X
e2bd29e7c2 Replaced all occurrences of 'leaved' with 'withdraw'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14319 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 00:52:39 +00:00
Paradox924X
024b015009 Rewrote and optimized clif_hpmeter to employ map_foreachinarea() rather than an iteration over every session (bugreport:3956).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 00:10:31 +00:00
brianluau
6881ab87f5 partial revert of r14295
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-05-19 16:45:43 +00:00
brianluau
a47eaa02d9 - Fixed a small typo in a shop name. (bugreport:4235)
- Removed a duplicate 'next' in Kiel Hyre Quest. (bugreport:4222)
- Fixed pc_checkitem() running before sending the client the inventory list, resulting in "Unknown Item is taken off" messages. (topic:245385)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14295 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-05-16 15:22:16 +00:00
skotlex
2b3c602ea7 Merged a few updates for supporting renewal clients (thanks to Diablo): [Skotlex]
- Updated packet_db entries
- Added slot info on packet 0x6b (PACKETVER > 20100413)
- Trade add-item use packet 0x80f (PACKETVER > 20100223)
- Guild storage add-item use packet 0x1c4 (PACKETVER > 20090603)
- Vending list use packet 0x800 (PACKETVER > 20100105)
- Allow client to change item-share party settings (PACKETVER > 20090603)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-04-23 13:19:25 +00:00
L0ne_W0lf
7a0e11a502 * Implemented NPC_TALK (Credit to SnakeDrak and Daegaladh)
- Also added in the ability to use '@npctalkc' as a GM command.
- Added supporting information to the databases.
- Sneaking in a fix to the Refined Ballista.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-03-24 03:49:39 +00:00
ultramage
1ac0e13994 Changes to how right-click gm kick checks gm privileges:
* moved @kick gm level check to the part that kicks players
 * added @killmonster gm level check to the part that kills monsters
 * added missing reply to client in the part that unloads npcs

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-21 00:51:22 +00:00
Inkfish
3fd1d9ca2b * Fixed NPC_INVINCIBLE can be dispelled. (bugreport:4046)
* Fixed a compliation warning.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-19 03:17:00 +00:00
Paradox924X
dde953ee4a Expanded range for cached and stored-in-db guild member exp (devotion) from uint32 to uint64. (bugreport:3983)
Capped value when sending to client to INT_MAX to prevent confusion.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14242 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-09 20:26:42 +00:00
Inkfish
27801bb67f 2010/02/06
* Added official packet to display received expirience. (info provided by papkil)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-06 05:08:37 +00:00
skotlex
e91f9882ec - Added support for PACKETVER 20100105, which updates the vending related packets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-30 10:24:10 +00:00
Inkfish
f741065ee6 Fixed a wrong interpretion to "clif_addskill" packet. follow up to r14218
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14222 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-20 15:40:39 +00:00
Inkfish
9622957e11 * Fixed change cart packet doesn't check for skill.
* Added new packets for Plagiarism.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-15 10:40:18 +00:00
ultramage
622de6a2da Quick-added support for the new whisper packet (bugreport:3942).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-20 11:37:28 +00:00
skotlex
c92ff591f1 - Applied the renewal client support patch from Diablo (eA forum topic 222623)
- Added support for strcharinfo(3) to retrieve the player's map
- Added script command "searchitem" for name item searches.
- Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now
- Changed the status valX from int to long so that it won't break for pointer-storage in other architectures.
- Moved the change party leader code to party.c
- A few bugfixes or packet field completions based on my past experience messing around with my server.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-19 18:19:09 +00:00
ultramage
c517fd305a Resolved a client hang in the scenario where the client sent loadendack before the server finished loading all data (bugreport:3700).
Improved the performance of pc_autosave() to stop scanning players after it has already found the player it wanted to save (bugreport:3717).
The 'overweight' status changes (SC_WEIGHT50/SC_WEIGHT90) will now be cleared on logout, to avoid saving them into the database (they get derived from player weight during login anyway).
Improved lock.c on windows to use C's access(0) function instead of doing fopen/fclose when testing for existence of files.
Re-added the 'static' attribute to mapindex_getmapname_ext's buffer; returning the address of a non-static local variable is undefined behavior (see r13901).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-13 21:06:21 +00:00
Gepard
f9cff9c6e0 Extended broadcast implementation:
- support for font formatting, like font-size
 - `bc_woe` flag to allow client-side filtering of WoE announcements
 - new broadcast packet 0x40C  

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14120 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03 15:56:54 +00:00
Inkfish
da07c3b06e Reverted renaming foreach functions and create a new one for OnTouch so that last commit will hopefully break NOTHING in use.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-25 11:20:47 +00:00
Inkfish
42987f61ad * Implemented the official version of 'OnTouch' named as 'OnTouch_'.(it can be defined in script_athena.conf)
* Adapted 'map_foreachinarea' to 'map_forsomeinarea' so that it allows you to specify the number of bl you wanna operate on.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14097 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-25 09:38:33 +00:00
Inkfish
d9c5d83bda Fixed rental items can be moved into guild storage from cart.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-06 02:24:10 +00:00
zephyrus
115d6a3fd0 - Implemented new packets for rental items (from Jobbie and Natz and fixed by me).
- Rental items now can be moved to storage and cart.
- Autotrade cannot be used when user is dead, and it's not dispelled if user dies to prevent abuse.
- Fixed pc_checkitem to do a proper item check and remove.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-04 21:42:15 +00:00
Inkfish
fbfe547333 * Clarified the names of some questlog functions and eventually implemented kill counts updating.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-12 02:43:02 +00:00
Inkfish
6b89176cc9 * QuestLog Fix.
- mob id no longer stores in sql.
- counts won't increase if you have killed sufficient mobs.
* Fixed Merchant's medalion wrong aspd bonus (bugreport:3554)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-04 11:14:27 +00:00
brianluau
12c9a5a877 - Fixed typo in Hyegun_Hat (5367). (bugreport:1935)
- Added missing bonuses to Mask_Of_Ifrit (5420). (bugreport:2188)
- Added better examples for some documentation.
- Fixed item loss from mail if you are OVER 100% overweight. (bugreport:1862)
- Fixed 'waitingroom2bg' checking wrong parameter. (bugreport:3330)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-27 05:14:42 +00:00
ultramage
e6ee176e74 Fixed mercenary info not being re-sent after using @refresh (bugreport:2335).
Patch provided by [Diablo].

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-26 22:41:09 +00:00
Inkfish
88abf3daee Implemented Progress Bar.(topic:207933)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-25 13:41:58 +00:00
Inkfish
e9379c3be0 Fixed the wrong packet length makes client choke when add_quest packets are sent.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-21 07:16:40 +00:00
zephyrus
6b710571ad - Optimization to instance system.
* Removed the crc feature to generate instance npc names. The instance npc name will be "dup_" + instanceid + "_" + srcnpcid.
* Removed the big array under map structure and coded in a different way. It was only used to generate map names, but i just used the instance_id + "origin map name".
* Moved all instance features to separated files.
* Moved the npc duplication for instances into npc.c as Ultramage says (removed npcname_db from npc.h).
* Added recomendations for scripts commands by Saithis.
- Testing required, i will prepare Endless Tower script soon. I hope this do almost anything in bugreport 3276.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-12 21:44:02 +00:00
Inkfish
79d0f3595e * Fixed autospell and autobonus will still trigger even if the chance is 0.
* Disabled "show_party_share_picker" functioning on client older than 20071002 to prevent from disconnection. (bugreport:3457) 
* Fixed units other than players and mercenaries using Devotion will cause crashes. (bugreport:3475)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-11 06:26:27 +00:00
Inkfish
52bac46cfe * Questlog code cleanup.
* Fixed range check of autospell and autospell2 using wrong target when it should be used on yourself.
* Implemented official behavior of party_show_share_picker.
* Restricted zones in 'item_noequip.txt' can now stack.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-02 04:10:23 +00:00
Inkfish
698e7a0fc0 Rewrote Quest Log system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 20:55:35 +00:00
Inkfish
b1445ca0ae * Some updates for range check. (bugreport:3339)
- Monsters shouldn't use skills if the target is within its attack range but is out of the skill range.
- Monsters' skill range is no longer 9 by default. 
- Range for players' attacks and skills should always check for a circular area.
- The range of Magnetic Earth is 2.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11 04:48:40 +00:00
brianluau
3bc93f0426 - Re-added { } that were accidentally removed in last commit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02 19:30:49 +00:00
brianluau
973a96f9aa - Added mosk_que to the mapcache (follow up to r13903).
- Fixed some input checks and variable types in Megingjard quest.
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02 18:56:16 +00:00
zephyrus
33e1fbbd66 - Instancing System (Thanks to Sirius White who did most of the code, with some of my work to implement client side information, some optimizations and bugfixes). Also thanks to contributions from UEAUP team and Orcao.
- Fixed a bug on areamobuseskill and changed it to make it as Aegis.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20 17:56:01 +00:00
Inkfish
e447a8a92a * Changed Asura Strike/Jump Kick to target skill to get rid of the "target delay". (bugreport:2174)
- skill tree will be re-sent on status change to handle using these two skills during combo.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20 08:22:52 +00:00
Inkfish
1d90917604 * Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and NPC_INVINCIBLEOFF. (topic:217330)
* Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259)
* Fixed Butterfly Wings not working during GVG. (bugreport:3264)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19 13:26:50 +00:00
Inkfish
94583ef92f * Skill through items will not be blocked when 90% overweight. (bugreport:3246)
* Now you can drop items when hiding.
* Now you can't logout when hiding, cloaking or chase walking.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15 15:29:32 +00:00
ultramage
042688ca7a Adjusted the code order in clif_parse_gmkick() to avoid invalid pointer access crashes when kicking mobs/npcs (bugreport:3229).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-11 10:36:39 +00:00
skotlex
3919db5df2 - Fixed Swordsman Medallion to be usable by Star Gladiators.
- Fixed Thief Medallion to be usable by Ninjas.
- Fixed Valorous Assassin's Damascus to reduce the strength of its effect.
- Corrected the AUTOLOOT_DISTANCE code not checking for map changes.
- Fixed clif_change_option's "unknown field" to be the character's karma.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08 15:57:51 +00:00
ultramage
b2223e43f5 Fixing the 'name requests work at any distance' exploit (bugreport:3206).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07 16:16:06 +00:00
Inkfish
e7faa7e498 * Some clean ups on autocast and itemskill code. (see topic:220921 for some info)
- Autocasted Teleport now skips the menu.
- Fixed nullpo info when defensive autocasts are triggered. (follow up to r13815)
- Fixed Warp portal used in item script never worked.
- Item skills now bypass skill delay check.
- Implemented SM_SELFPROVOKE. 
- Updated item db using 'itemskill' for some items.
* Basic skills will never be reset. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-03 15:30:11 +00:00
Inkfish
2b1109483f * Miracle should only be dispelled on map change.
* The "party invite" and "view equip" state messages are ought to be sent on every map change instead of login.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19 10:06:05 +00:00
Inkfish
47f91b6387 Added missing packet 0x2c9 and fixed 0x2da's length error
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19 08:58:08 +00:00
ultramage
34def63ece Cleaning/fixing the previous commits a bit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13775 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15 11:41:40 +00:00
skotlex
418f0d9200 - Fixed a bunch of invalid memory access bugs as reported by Valgrind.
- Updated unit_stop_walking to not move character an extra cell when it is already half-way there unless flag 0x4 is        passed. (bugreport:3078)
- Fixed the monster MD_CASTSENSOR code not correctly setting the monster's aggressive state.
- Corrected a few compiler warnings
- Changed a bit the code for SC_BOSSMAPINFO so it is not so hideously ugly.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15 10:27:05 +00:00