581 Commits

Author SHA1 Message Date
ai4rei
ad4e9bbee1 * Replaced remaining occurences of '-1' with 'INVALID_TIMER', where appropriate (follow up to r12998).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-14 21:00:38 +00:00
ai4rei
f543097124 * Fixed @homlevel usage message stating, that deleveling is possible, although it is not (bugreport:1485, since r10272).
- The command now fails, if it is given a zero or negative value.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08 12:05:13 +00:00
ai4rei
b7ab5cac1d * Fixed @alootid using 'autolootitem' (internal name) in it's usage message (bugreport:1445, since r12203).
- Reworded the turn off message of @alootid.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14654 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-07 22:06:07 +00:00
ai4rei
75ca2f146a * Fixed improper use of itemdb_search. It does not return NULL but a dummy item, if the item id is invalid.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-30 17:23:54 +00:00
ai4rei
226fa32b4c * Fixed items, that get dropped at 100% chance, being reported in @iteminfo as 'available in the shops only' (since/replaces r3482).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26 13:32:07 +00:00
ai4rei
708ea3bf59 * Updated commands @delitem/#delitem.
- No longer deletes stackable items one by one (bugreport:1914).
- Fixed pets not getting deleted when a pet egg was deleted.
- Fixed outdated usage message (since r13403).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26 12:19:36 +00:00
ai4rei
1e81541e66 * Resolved random compiler warnings.
- Silenced pointer size mismatch gcc warning for variables passed to script_setarray_pc (bugreport:4661, since r14613).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-22 14:06:37 +00:00
ai4rei
b19741a68a * Cleaned up MOTD reading (related r292 and r4552).
- Added a warning for common client crash caused by the sequence ' :' in MOTD.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12 14:53:57 +00:00
ai4rei
e26ea94a2f * Reverted r14563, due to multiple issues which render the source malfunctioning or uncompilable. To be redone later (bugreport:4627).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-07 19:45:24 +00:00
Paradox924X
ca53ef6f4a Changed almost all instances of sprintf() to snprintf().
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-07 18:38:03 +00:00
ai4rei
5cfc017080 * Removed leftovers of the item_value_db.txt feature (bugreport:2031, since athena-dev-2.1.1-mod377, followup to pre-svn 2004/05/29).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-03 09:15:29 +00:00
ai4rei
cd78795961 * Various code tweaks and updates related to item types.
- Replaced item type literals with their appropriate constants.
- Added itemdb_typename to replace the ugly "BUG!" filled array in @iteminfo (since r1741, follow up to r14550).
- Made the item database parser verify item type for validity.
- Added item type constants to const.txt for use in scripts (getiteminfo).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14551 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-02 22:33:32 +00:00
ai4rei
df41665d39 * Added support for IT_CASH to @iteminfo, logging filters and item drop rate adjustment. Added 'show_picker.item_type'-specific IT_CASH value to it's description (follow up to r14549).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-02 20:44:38 +00:00
ai4rei
c8cae9e659 * Removed clif_weather_sub and clif_misceffect2 in favor of clif_specialeffect_single and clif_specialeffect (all of them are ZC_NOTIFY_EFFECT2).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-02 12:08:44 +00:00
ai4rei
cbc43338bf * Made skill_tree.txt reading use sv_readdb. [Ai4rei]
- Added define for skill entry requirements.
- Reports duplicate skills within same job class.
- Updated comments for skill Berserk in skill_tree.txt, among others because they would cause errors the way they are read now.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-30 08:55:22 +00:00
ai4rei
5d1bbf6c2a * Added clr_type enumeration for vanish effect constants.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 21:41:38 +00:00
ai4rei
5042f8262c * Fixed base and job exp not getting reset on (de)leveling through commands (bugreport:85).
- Fixed level up related functions not updating client-side exp information, causing the exp percent value display random values.
- Fixed party system not getting notified of level-ups through parameter changes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 07:44:35 +00:00
ai4rei
4ffaed9527 * Various small cleanups.
- Fixed truncation warnings in @statuspoint, @skillpoint and @str/@agi/@vit/@int/@dex/@luk (since r14436).
- Fixed data type inconsistency in @statuspoint and @skillpoint (since r5762, related r13541).
- Silenced truncation warnings in CR_ACIDDEMONSTRATION damage calculation and cardfix application (since r13700).
- Reformatted unit_blown to make it look cleaner (follow up to r14492).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 11:13:49 +00:00
ai4rei
53fd4cef96 * Fixed guild and guild member exp truncation issue (bugreport:4130, since r14242).
- Fixed guild member position, hair, hair color, gender, class and level could potentially become corrupted due to shorts being read as ints (partially since r2986).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 16:52:46 +00:00
ai4rei
bf02bec085 * Made atcommand declarations use ACMD_FUNC macro (bugreport:4252, related r11607).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14477 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 11:38:53 +00:00
ai4rei
35e99e93a8 * Fixed @doom and @doommap spamming packets for the visual effect on invoker unnecessarily over whole map and server respectively. The effect is now displayed on each killed character (bugreport:871, since r311).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14475 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 08:19:44 +00:00
Paradox924X
95c5d9c4f1 Modified certain atcommands to use 64 bit arithmetic before capping a value to correct boundary logic for overflowing values.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-02 01:36:14 +00:00
Gepard
123a803ccb * Removed unused 'indoors' mapflag (follow-up to r3729).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14434 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-10-21 00:38:57 +00:00
Paradox924X
aad461e0f5 Prevented direct transformation into dummy jobs via @jobchange command. (bugreport:4227)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-10-13 10:22:59 +00:00
Paradox924X
a724b440b9 Prevented @stpoint and @skpoint from causing overflows.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-10-13 07:33:18 +00:00
Paradox924X
2f9e3dbf81 Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-10-09 01:57:04 +00:00
L0ne_W0lf
c7531e095a * Follow up to r14383, changed use of clif_font_area to clif_font, seems Skotlex forgot them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-19 17:24:27 +00:00
Skotlex
e19451d423 - Implemented usage of packets 0x7fa and 0x7f7, 0x7f8, 0x7f9. These are used for proper deletion of items as well as movement/spawn packets for Renewal clients.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-19 15:46:55 +00:00
Paradox924X
4a01d8b2c5 Updated several buffers to use an appropriate size of CHAT_SIZE_MAX rather than 200 or 256. This will help prevent buffer overflows with long atcommands.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14372 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-10 11:28:31 +00:00
Paradox924X
081b3107e8 Made the rates command much more verbose.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14371 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-10 11:25:10 +00:00
Paradox924X
f8270ee5f1 Ensure exp rate changes from a reloadbattleconf cause a call to mob_reload().
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-10 07:02:29 +00:00
Paradox924X
5db61a0b0a Rewrote the autotrade mapflag check and display from r14322.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14324 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 03:24:04 +00:00
Paradox924X
6a72859405 Fixed a few typos from r14322.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14323 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 03:20:25 +00:00
Paradox924X
00a2a3283e Added support for using 'town', 'autotrade', 'allowks', 'monster_noteleport', 'pvp_nocalcrank' and 'battleground' mapflags in scripts (bugreport:4226).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 03:08:13 +00:00
Paradox924X
b2f667910d Rewrote and reorganized checks in @autotrade to check and display most useful information first (bugreport:4253).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-05-31 23:54:48 +00:00
brianluau
2dbc188909 - Fixed the Juice Maker's "As many as I can" option. (bugreport:4155)
- Removed a duplicate 'next' in Kiel Hyre Quest. (bugreport:4222)
- Fixed 'checkequipedcard' not counter-checking for signed items. (bugreport:4231)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-05-10 00:53:22 +00:00
brianluau
6f7ff85a03 - Fixed a comparison check in OBB quest. (bugreport:4167)
- Fixed the equipment position numbers displayed by @refine. (bugreport:4173)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14281 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-04-10 00:16:06 +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
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
brianluau
ed86db530d - Fixed a typo in Orc's Memory.
- Fixed a weight check in quests_13_1.
- Fixed some grouping variables in the sample PCRE npc.
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-08 19:18:27 +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
brianluau
f3ca552ec5 - Fixed a typo in Strawberry Cake (12319). (bugreport:3702)
- Fixed a typo in Halloween 2009 Event. (bugreport:3711)
- Updated SQL item/mob databases to latest. (thanks Peter)
- Applied the change from r14087 to @tonpc, @shownpc, @hidenpc. (bugreport:3599)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14142 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-11 21:49:50 +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
b9c5a5fc32 * Quick fix to char command checking gm level of the target player instead of the command user (bugreport:3255).
* Disalbed @jump/@jumpto usage when dead.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-02 14:31:24 +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
137e993d52 Partially revert r14085, NPC names are allowed to be more than 24 character long in Aegis.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14087 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-12 08:57:02 +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
ultramage
e54bf092d2 Fixed sql char deletion code using a broken pet deletion query (ran very slow, and had a typo in a binary shift operation) (bugreport:3304).
Fixed change r13774 to the code responsible for deciding whether to move 1 extra cell when stopping walking; it had its logic inverted by mistake (bugreport:3312).
Cleaned up the itemlist, cartlist and storagelist gm command code:
- fixed buffer overflows in all three functions (bugreport:456).
- merged all three atcommand functions into a single one; the appropriate behavior is detected from the command's name.
- using the StringBuf class instead of static-size buffers and string operations for more efficient and safe processing.
- using 'jname' (the one without underscores) as the primary item name in the list, and not using the aegis name for cards at all (since it's almost identical).
- fixed forged item details never being displayed due to a missing strcat().
- extended item info (crafted/named items, pet eggs) will now be displayed for storage and cart list as well.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30 09:21:28 +00:00
Paradox924X
c52de2b250 Minor update to atcommand_jailfor and atcommand_char_ban's modif_p var incrementation for minute-based bans/jails.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-23 21:42:16 +00:00