summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-26- Fixed item Nemesis.zephyrus1-9/+54
- Fixed Tarot Card being used on Emperium. - First Part of BattleGround Implementation (please wait). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20Increased variable size for status/skill points to remove the 65k cap ↵ultramage1-27/+11
(bugreport:1579). Added sql upgrade script to adjust the appropriate char table columns. This is an enhancement to r5762. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-06* Follow up to r13485. (bugreport:2741)FlavioJS1-1/+3
- @spiritball creates spiritballs without timer (limited to the array size instead of 500) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Ops... missing var from my source. Sorry.zephyrus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13492 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new Pet Bonus System. Enjoy!! :Dzephyrus1-8/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new item bonus scripts required for battlegrounds.zephyrus1-20/+61
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24* Changed pc_spiritball_timer and pc_addspiritball: (bugreport:2705)FlavioJS1-18/+28
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-23Added a missing break; in pc_setstat, messing up LUK increasing (see r13460) ↵ultramage1-1/+1
(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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20Fixed pc_statusup2 to correctly update the client's stat windowultramage1-38/+66
- was sending the increment value instead of the new value itself (bugreport:2614) - wasn't refreshing the increase cost indicator (bugreport:2644) - wasn't handling stats above 255 correctly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13460 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20- Added support for item effect Ignore Def Rate by Race. bonus2 ↵zephyrus1-0/+6
bIgnoreDefRate,<race>,<%>; - Added support for item status effects on skills. bonus3 bAddEff,<sc_effect>,<rate>,ATF_SKILL; - Update to battleground equipment. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-29Fixed broken card insert code (bugreport:2606).ultramage1-1/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-28Cleaned up code for inserting cards into items.ultramage1-34/+35
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13418 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-18Removed charcommand code while allowing atcommand code to support its ↵sketchyphoenix1-0/+1
functionality. Charcommands still retain their '#' symbol but now looks for a character name as the first parameter instead of last. Atcommand configs now support charcommand level configurations by comma seperation (e.g. 60,99) As a result of this, all atcommands that don't affect multiple users already (@kickall, @doom, @mapexit) are capable of remote usage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-22* Hunted down the simpler 64bit pointer truncations.FlavioJS1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-16- Item Rental System.zephyrus1-12/+103
Script Usage: - rentitem <itemid>,<seconds>; - rentitem <itemname>,<seconds>; git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-11* Updated script_commands.txtFlavioJS1-0/+2
* Made scripts terminate with an error: (fixes bugreport:2429) - when getitem/getitem2 tries to delete more items than the player has - when trying to set Zeny to a negative number. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13368 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-30slight cleanup for r13336sketchyphoenix1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13339 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-29* Novice skill, Trick Dead, will no longer be granted to classes upon reset ↵sketchyphoenix1-0/+8
(save for Novice and Baby) (bugreport:2312) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-11Added safeguards to Redemptio's exp penalty code to prevent arithmetic ↵ultramage1-8/+2
overflow in case its requirement checks are somehow bypassed (see topic:152196). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-07Fixed the 'exp calculation overflow fix' from r10291 which wasn't really ↵ultramage1-4/+4
working properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13265 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-13Modified the 'player/GM has logged in' mapserver message to respect the ↵ultramage1-16/+15
lowest_gm_level config setting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-10- Full implementation of mercenary skills.zephyrus1-0/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-07- Skill Reset fix for Taekwon Ranger. (Bugreport 1759).zephyrus1-88/+124
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13198 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01Removed leftover calls to custom sathena guild_canescape() (see r13161) ↵ultramage1-6/+1
(bugreport:2154). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31- Protection for mercenary scrolls. (Don't consume it if you already have a ↵zephyrus1-0/+3
mercenary). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31- Cleanup on pc_isUseitem and added restriction for mercenary items.zephyrus1-25/+78
- Also added restriction for Battle Manual / Bubble Gum. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13161 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31- Implemented script commands for mercenary items (mercenary_heal and ↵zephyrus1-2/+2
mercenary_sc_start). - Fixed a bug crashing server with mercenary. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31* More mercenary updates.zephyrus1-6/+23
- Implemented Mercenary Die, Damage, Run Away when master dies. - Log mercenary damage and gives exp to Master. - Some little bugs. * Fixed Bubble Gums effect works on mvp_sd not sd (according to Doddler). NOTE: Now you can summon a mercenary, make it attack (not skills), follow you even on map change. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31- Limitations to WoE SE Treasures (no steal, drop rates, no class change).zephyrus1-4/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13156 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24- Moving all content of Homunculus code to a proper file Homunculus.c/hzephyrus1-1/+2
- Update of all project files. NOTE: All functions on homunculus.c should be renamed i think, to remove all the merc_*. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13122 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-23- Added column `mer_id` on char_dbzephyrus1-1/+3
- More mercenary implementations (delete, load, create) - Some fixes. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-15Some cleaning in script.cultramage1-2/+2
- documentation of functions translation of japanese comments - usage of const char* instead of char* where appropriate - removal of unused isstr() function git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-02Player shops will not close on death anymore (bugreport:1955).ultramage1-4/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-02Added itemid defines for Stone and Skull_ (used by Pick Stone skill and pvp ↵ultramage1-1/+1
skull drop, respectively). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13035 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-31Removed the mob controller system, now a customization (see topic:194375).ultramage1-2/+0
The system consists of * script command to spawn a controlled mob * script commands to attach npcs to such mobs and manipulate their AI * a page of documentation for these commands * callbacks at various source code locations that invoke the attached npcs * two npc examples git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26Merged the /loginmerge branch (topic:192754)ultramage1-50/+4
* the login server storage, ipban and logging systems have been abstracted and now provide a common interface; the rest has been merged into a single login server core (no more login/login_sql duplicity) * storage systems are now added via compiler options (WITH_SQL / WITH_TXT) * multiple storage engines can be compiled in at the same time, and the config option account.engine defines which one will be used. * due to MySQL autoincrement limitations, accounts with id '0' will not be supported; account IDs from this point on should start from '1'. * login_log() functions now again record IP addresses in dotted format, not as 4-byte integers (undo from r6868). * removed config options that defined column names in the login table * removed `memo` and `error message` columns from login db/savefile * moved `loginlog` table to the logs database * added sql files upgrade_svn12975.sql and upgrade_svn12975_log.sql * due to changes to the login table layout, I added an !optional! sql file (upgrade_svn12975_view.sql) that will provide a certain degree of backwards compatibility with existing software; read the instructions inside carefully! * moved third-party includes/libs to a separate directory * updated project files / makefiles Changed the way GM levels are handled * removed conf/gm_account.txt * added the gm level column to the txt savefile (after 'email' column) * gm level information is now transferred along with account data For open problems see bugreport:1889. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26Replaced occurences of '-1' with the more appropriate 'INVALID_TIMER' value ↵ultramage1-9/+9
where appropriate. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26- Implemented official Convex Mirror (With help of Yomanda and Sirius White)zephyrus1-0/+2
- Fixed SC_WARN don't receiving reflecting damage (Bug Report 1854). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-06* Slight cleanup of item-based walk speed bonusesultramage1-8/+2
- removed bSpeed bonus code (was just disabled until now) - changed speed_rate to use base value 0% instead of 100% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-04* Homunculus will no longer auto-vaporize on master death.L0ne_W0lf1-1/+1
- Added config option to allow for this to be turned on or off. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12912 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-18Fixed cash shop not using points to make up the cash difference when ↵sketchyphoenix1-15/+4
purchasing an item. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13Fixed Grandcross and darkgrandcross, should only cause blind against undead ↵shadow1-1/+1
race. Also confirmed that ME, evil land, sanctuary, grandcross/DGC and status recovery are versus element, not race. Removed confusion effect part from AL_CURE, it doesnt work on official anymore. Partial revert of signum crucis modification, it doesnt work against players, but work on ELEMENT undead monsters. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13Fixed some skills working on undead element when they were supposed to work ↵shadow1-1/+1
on undead race. Skills Fixed: GrandCross, Dark GrandCross, Cure, Head Crush, Signum Crusis, Blessing, Demons Bane, Divine Protection. Skills needing confirmation: Magnus Exorcismus, Evil Land, Sanctuary, Status Recovery. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07Swapped the weapon type IDs of Shotgun and Gatling Gun weapons to match aegis.ultramage1-4/+4
Added Mace Mastery bonus to 2handed maces, and made them unbreakable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-29- Support for SP Regen status just like HP Regen (by items, by a little ↵zephyrus1-1/+1
time). Required in some new items from Ep 12.1 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12743 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-28Added extra safeguards against invalid inputs to pc_equipitem / ↵ultramage1-2/+11
pc_unequipitem (bugreport:1568). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12739 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-28Fixed stat values displaying incorrectly when increasing them past 255 ↵ultramage1-4/+4
(wraparound, ack packet only has 1 byte). Reordered the packets so that a status update for the increased stat is sent immediately after the buggy ack packet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-09- More scripts fixes.zephyrus1-12/+12
- Some cleanups to the code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07- Added function battle_attr_ratio to handle just getting the attribute ↵skotlex1-42/+17
table data. Fixes Sense messing up with elemental based statuses. - Added Throw tomahawk to the list of items that do not trigger the equipment breaking code. - Moved a bit around the SC_ start of dancing skills to fix Moonlight petals pushing back the casters. - Modified status_damage to handle SC_KAZIEL. The return value of *_dead functions can pass 8 to specify that kaziel should not be triggered (ie: pvp/gvg) - Infinite Endure won't be passed on to devoted characters. - Infinite Endure is no longer saved on logout. - Added check to avoid gms opening vending shops if they don't have the required level. - Moved around the Steel Body S. Novice code, simplified it so it triggers before most of the penalties (death is cancelled). - Fixed the flee penalty not applying when you walk into a gvg map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02Replaced the very ineffective clif_foreachclient() with map_foreachpc() ↵ultramage1-4/+4
since they essentially do the same thing (bugreport:1174). Rewrote map_foreachpc() so that its callback function signature now uses a more natural 'sd' instead of a DBKey/void* pair. Rewrote atcommand_users() to use a single function, instead of depending on two helper functions and global objects. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12683 54d463be-8e91-2dee-dedb-b68131a5f0ec