3043 Commits

Author SHA1 Message Date
ultramage
175d003c6f Updated the TXT login server's account id checker (it was still saying the minimum is 700000 instead of 2000000)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-05 14:15:58 +00:00
ultramage
12a784cf17 Changed the 'getpartyleader' script command so that it returns a map name instead of the useless mapindex number.
Also fixed it so that it doesn't throw a 'args of aFree is not valid pointer' error (although I'm not at all sure that the fix is correct).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-05 14:11:43 +00:00
ultramage
5f0de40e38 Removed the silly and misleading 'firewall detected' message
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9786 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-05 13:33:02 +00:00
skotlex
a23da55db8 - Fixed the flag parameter not working on npcshopattach
- Modified unit_walktoxy so it accepts flag &4. When used, this flag will delay the walk request if the character is unable to move because of the can't walk delay. This is used for player and homunculus walk requests.
- Removed the delay walking code from clif.c as it's now handled by unit.c
- Added a possible crash protection in clif_skillfail when the player is without a connection.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-03 07:48:38 +00:00
ultramage
65796c8765 Fine-tuned the global message processing function
- now detects access-out-of-rfifo attempts (idea from eA++)
- uses the new CHAT_SIZE define to restrict message lengths
- detects Frost Joke/Dazzler and gives them more freedom (from Freya)
- more strict non-conformant message detection 
- logging every problem to the mapserver console

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 22:03:05 +00:00
skotlex
cc141e4bcb - Resetting skills will now automatically remove peco, falcon, cart and homunculus (vaporize).
- Fixed random mob picking choosing clones.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9780 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 20:59:09 +00:00
skotlex
2a5ec09a11 - The define MESSAGE_SIZE was wrong! It is only used for input boxes. Therefore now it is only used for Vending, Talkie box and Graffiti
- Added new define CHAT_SIZE which holds the max length that a client can send from the chat buffer. This value is NAME_LENGTH + 3 (the ' : ') + 70 (the actual text).
- Added define msg_len_check which crops incoming client text if it's longer than CHAT_SIZE. Added cropping to all incoming messages except normal chatting which is already accounted for.
- Removed variable  talkie_mes, this is now handled by sd->message
- Cleaned up parser functions for /b /lb, gm kick, /shift, /recall
- Added crash protection to the logging functions when they receive a too long string.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9778 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 19:59:39 +00:00
ultramage
84ad40528b * Restricted global messages to 255 characters (client shows only ~80 anyway, wanted to use 127 but frost joke's lines are longer than that ...)
- prevented using a ~22+kB long message to crash everyone on screen
- prevented faking the message length to cause an out-of-bounds access crash
- removed the unneccessary 'buf'ffer (inspiration from jAthena)
- Ref: http://www.eathena.ws/board/index.php?showtopic=137770

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 06:37:53 +00:00
ultramage
250fdeee31 Typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 06:37:16 +00:00
ultramage
936937bd46 Corrected the chat system to allow 8-letter passwords
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 02:11:48 +00:00
ultramage
71ca66f8b1 Minor details (pdb file location, improved debug, npc typo)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9771 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-02 00:12:43 +00:00
skotlex
4130bdd3b8 - Cleaned up the npcshop(add/del) item script commands, fixed a possible dangling pointer crash caused by their improper use of realloc. They no longer automatically attach the script to the shop, and they will return true/false based on whether the shop was found or not.
- Added script command npcshopattach to enable attaching/detaching your script from any npc shop.
- Updated doc/script_commands.txt with entries for npcshopitem, npcshopadditem, npcshopdelitem and npcshopattach 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 22:23:14 +00:00
ultramage
3b59523144 A followup to r9761, a header include that somehow didn't commit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 21:50:55 +00:00
skotlex
c848fd71d2 - Item search is now a bit smarter. When no item is found with the same 'aegis name', then the 'normal' name is used instead.
- Updated the @/# commands that take an item name so that you can use quotes when specifying item names with spaces in them. For example, @item "poring card" 1 will work now. Note that only the commands that work on ONE item have been updated, those that do an item list need to be updated as well.
- Removed some garbage from the item_data structure.
- Improved a bit the description of the mvp item get time config settings.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 21:04:46 +00:00
skotlex
aca93bf9ff - Added support for mob skill target 'randomtarget', when specified, it will pick a random enemy from within the skill's cast range.
- Updated the mob_db so that all skills from non-moving mobs that specified 'target' as enemy will use 'randomtarget' instead.
- Amon Ra's meteors now use randomtarget instead of self.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 20:06:06 +00:00
ultramage
a6f1e4972e Added string function strnlen
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 19:19:26 +00:00
skotlex
8ec0ed0d47 - Corrected homunculus's aspd being halved after using some aspd adjusting skill.
- Cleaned up the resetskill function (even though the functionality is the same as before)
- Corrected item 1459 (unused Partizan with no slots) being wlv3 instead of 2 (as the other two partizans)
- Changed the name of the four second versions of homunculi to not have a 2. (so you get a 'lif' and not a 'lif2'
- Removed flag graffiti from abracadabra
- Updated the stun times of Bash, Npc-StunAttack and meteor Assault to 5 secs as reported by Ultra Mage (still pending more data to see if all others need updating as well)
- Removed the log info message 'created homunc...', and the 'loaded homunc' message will only show if the save_log is enabled.
- Some cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9760 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 18:34:05 +00:00
skotlex
8a9e1eaa07 - When when a party-member levels up, the level change is sent to the char-server to update the even-share range values.
- When joining a gvg_dungeon, the pvp packet will be sent to signal versus.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9759 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 18:16:09 +00:00
ultramage
7390d2d950 Removed graph, httpd and webserver
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9757 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-01 01:33:37 +00:00
ultramage
287219ad0d Wiped out the old night code
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-31 18:59:30 +00:00
skotlex
39381ad474 - 'Long Range Attacked' mob skill conditions will no longer trigger on magic attacks.
- Changed the element of Blood Drain from 'take weapon's element' to Dark. And Blood Drain/Energy Drain have a range of 7 now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9747 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-30 18:22:11 +00:00
skotlex
50a03b0751 - Corrected char deletion not working (column is called homun_id, not hom_id...)
- Collapsed config settings produce_item_name_input, produce_potion_name_input, making_arrow_name_input, holywater_name_input, cdp_name_input into a single config produce_item_name_input which uses bitmasks to determine what it affects.
- Updated arrow_decrement to have 3 possible values: Disabled, Enabled, and Enabled as well as giving arrow requirements to skills that do not have them when used with ranged weapons (auto-guess for plagiarized/item-granted skills)
- Minor cleanings


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9746 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-30 17:38:39 +00:00
ultramage
bc5f3f5a4c Removed one grf function that DracoRPG missed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9745 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-30 03:25:39 +00:00
skotlex
cc72c3cd89 - Readded grfio_final to the map_server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9744 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-29 22:26:49 +00:00
skotlex
59faa0164c - Fixed compiltation error ~.~ I was sure I compiled before the previous commit...
- Corrected a null pointer error when a non-player uses amplify magic power.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9743 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-29 22:08:09 +00:00
skotlex
c52340cb3a - Corrected the homunculus deletion functions so that the homunculus is deleted together with the character.
- Added npc_check_areanpc so that Wand of Hermod will correctly check for nearby warps.
- Emergency avoid now stacks with other speed boost statuses
- Item skills and skills that bring up a menu now are cleared on death.
- Minor cleanings


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9742 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-29 22:00:51 +00:00
ultramage
025f66c3c3 Added a nasty hack to prevent multilanguage clients from breaking guild notices
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-29 16:02:57 +00:00
ultramage
e7a00c7e06 Made @reloadscript wipe ALL previous mobs that the script engine spawned
- this way it is manageable via global vars; the other way doesn't allow that

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9734 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-28 01:50:39 +00:00
ultramage
d241d16d2a Some misc cleanups (typos, formatting, forgotten changelog entry etc)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-28 01:30:15 +00:00
ultramage
86221c4e69 Reformatted and translated atcommand.c
Improved @marry, allowing spaces after the first comma

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-28 01:11:14 +00:00
ultramage
13014280f0 Simple cleanup
- removed atcommands @w, @server_date/time, @red, @happyhappyjoyjoy, @shuffle
- synced gm level of @jailfor, @charjailtime, @npcmove, @chardropall, @charstoreall, @send, @mute, @changelook, @exp and @nuke
- added conf entries for @whozeny, @kamic, @tonpc, @petid, @identify, @adopt, @trade, @changelook, @send
- reorganized the atcommand_athena.conf file a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 23:06:38 +00:00
ultramage
f4a0404503 Corrected indentation of the atcommand table (editor compatibility)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 19:15:33 +00:00
ultramage
37ecb00ca5 Fixed a C language restriction preventing compilation
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9729 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 16:29:58 +00:00
DracoRPG
91cbbb26bd Fix for my previous change (already fixed once, yeah...)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9726 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 12:33:57 +00:00
DracoRPG
bf98b03fb0 Removed useless read-from-GRF features
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9725 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 05:04:10 +00:00
DracoRPG
eb4dc651f8 Ooops... I'm definitely too bad.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 04:03:12 +00:00
DracoRPG
31c12a3859 - I'm back, and I begin with an implementation of a good old Aegis bug : Assassins should now be able to use the infamous status arrow + Grimtooth method
- Also added some random stuff about storage password system

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 03:12:38 +00:00
skotlex
6403d303d3 - Kaite and Assumptio no longer stack. One will remove the other in the same way Assumptio and Kyrie do.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 00:53:26 +00:00
skotlex
b55b492943 - Moved the pet rename code from int_pet.c to inter.c and normalized it so it can be used for any object.
- Made homunculus renaming go through the char-server so it can be validated against the allowed characters setting.
- Added battle config hom_rename so you can enable renaming multiple times your homunc.
- Updated the hardcoded defaults for gvg-damage to what they should be.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9720 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-27 00:31:29 +00:00
skotlex
76381834f5 - Fixed the normalizing function not sending first classes back to novice if they do not have basic skill maxed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-26 21:42:04 +00:00
skotlex
d65e051707 - Added a wrapper to delete_timer so it prints out from where the invocation was done.
- Fixed some unsigned warnings.
- Fixed Splash attacks consuming 2 ammo on each attack.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-26 18:49:46 +00:00
ultramage
335723f839 - Removed log_uptime that was accidentally introduced in r1208
- Added some more freedom for the txt log paths since 32 wasn't enough

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-26 17:17:05 +00:00
skotlex
c82708aba9 - Made the pc_deleteinvincibletimer function a define so it auto-checks for the timer value.
- Fixed a missing tab in the skill require info of TWILIGHT3


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9709 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-24 21:29:01 +00:00
skotlex
f904054ce8 - Improved a bit the menu entries counting code (using a while with strchr should yield better performance that a for done on the string's strlen, right? However, it bugs me that strchr's man-page says it won't work on multi-byte characters. But does a strchr(str,':') works any worse than (str[i]== ':')?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-24 15:11:42 +00:00
skotlex
9342b7e4d5 - Also fixed the battle config setting guild castle defense :x
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-24 14:45:28 +00:00
skotlex
f566e76018 - Cleaned up some more the Joint Beat implementation, so the status don't take effect until the attack connects.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-24 14:44:14 +00:00
ultramage
015c0eaa61 Fixed int/dex foods using an incorrect icon for their status
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 19:39:17 +00:00
skotlex
142ca645f7 - Cleaned the initializing for in the hom viewdata to make it overflow-proof.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9700 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 17:49:49 +00:00
skotlex
985abe3b02 - Changed the night status from 149 to 160, which seems to work so much better, and also enabled simplifying the night code. The previous code was there left commented in case it's needed again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 15:08:47 +00:00
skotlex
eab8b52656 - A skill's walk delay will also delay your can-attack time when the skill connects, since this is the behaviour of Sonic Blows as described by Tharis.
- Added missing declaration of merc_get_hom_viewdata in mercenary.h


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 14:40:22 +00:00