4989 Commits

Author SHA1 Message Date
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
skotlex
da11e41ed4 - Added view_data support to mercenary.*, so that the Homunculus entries are no longer required on the mob_db.
- Removed homunculus entries from mob_db.
- Added the status icon to NPC_CHANGEUNDEAD and the Flee/Hit foods
- Corrected the check that lets you walk when vending/chatting/etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 14:08:34 +00:00
skotlex
e6e31a01d2 - Moved the homunculus setting from pet.conf to homunc.conf
- Fixed homuncs not triggering land spells if they are spawned on top of them and hom_setting&0x2 is not set to make them bypass them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-23 14:00:22 +00:00
skotlex
81a9313a9d - Removed sd->max_menu, sd->npc_menu is now reused to store what is the max number of valid entries and prevent clients from picking invalid options.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-22 15:10:15 +00:00
skotlex
53949e4131 - Reverted the battle_calc_return_damage code as the previous one was correct, ninja self-targetted skills CAN be reflected.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-22 14:35:28 +00:00
ultramage
e034ce07bb Typo hunt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-21 12:12:04 +00:00
ultramage
af4ac5e72c Synchronization of the trunk&stable npc directories
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9683 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-21 11:40:27 +00:00
Lupus
f13bf6e679 fixed equip loc of "Father's" event items
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-21 09:47:33 +00:00
FlavioJS
5117e39fac - Fixed while statements not "reserving" the curly before parsing the test expression.
Ref: http://www.eathena.ws/board/index.php?showtopic=134596

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-21 03:17:04 +00:00
ultramage
89f25a569d * Fixed the server not reacting properly to atcommands/charcommands when using langtype 10/11 (the |XY codepage indicator wasn't being trimmed)
* Fixed some joker's code trying to dereference a null pointer in atcommand_param

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-20 14:33:31 +00:00
skotlex
fa2d2ced6e - Updated merc_reset_stats to handle resetting skill tree and points as well.
- Updated @homshuffle so that the skill tree and current skill points are not messed up.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9678 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-20 08:14:40 +00:00
skotlex
3838afbf52 - Fixed the label dup code, it now works correctly with const.txt switch labels.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-19 18:22:31 +00:00
skotlex
9d049827d7 - Reverted the dup-label check code since it has a bug that needs to be fixed first (it fails to recognize const.txt values)
- Reverted clif_skill_damage receiving the blewcount value since the whole code update that was involved didn't help any anyway.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-19 18:00:11 +00:00
ultramage
c356b3a461 Fixed a client crash during SQL char selection if you for some reason had more than 9 characters in your account
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9674 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-19 17:04:12 +00:00
skotlex
3b1e03537d - Merged Rayce's cleanups of the script engine that account for duplicate labels, non-numeric labels and makes the engine case-insensitive towards keywords like if/case/switch/etc/
- Added the icons for the Food boosts (need packet version 8 to get them).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-19 15:27:53 +00:00
skotlex
eb86aea493 - Updated @homshuffle to preserve current hom's exp.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9672 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-18 20:08:24 +00:00
skotlex
ae58a47909 - Modified the Storm Gust freeze counter code. It now takes into consideration the ID of the skill before increasing the counter, which should effectively yield the closest aproximation to official (even though the counter will reset if you step out of a SG and into another one, we do not know yet what should happen in such a case).
- Added @homshuffle. It recalculates the homunculus stats, as if the homunc was sent back to level 1, and then releveled. This command is mean to help fix those previously created Homunculus that are much stronger than they should be.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-18 19:30:22 +00:00
skotlex
81e6fbf053 - Fixed overflow on the mob delay adjustment setting.
- Fixed characters being unable to trade again if you attempt a trade on someone who is on storage/npc when you accept the trade.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9669 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-18 14:14:33 +00:00
ultramage
aa89a8d655 Fixed a crash when a castle from [0..MAX-1] wasn't in the db
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-18 13:38:26 +00:00
Lupus
95cded1bd6 Fixed Ulle's Cap + Odin's Blessing Combo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-18 12:21:14 +00:00
skotlex
ed5678ed7d - Corrected atcommand @homstats so it shows the correct minimum/maximum possible values.
- Simplified the hom level up function, now decimal stats are no longer stored. This should correct eA's homunculus on average being much stronger than Aegis's.
- Modified the homun db read code so it forces the "max" value to be higher than the "min".
- Cleaned up pc_allskillup, @allskills should work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-17 14:16:11 +00:00
skotlex
07b63243a3 - Added atcommand @homstats so you can check your homunculus stats and compare them to the minimum/maximum values that you could have at your current level. This command is meant to help figure out if homuncs are indeed getting a faster stat growth than they should have.
- Fixed some of the default @ levels for hom related commands.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9663 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-16 21:42:07 +00:00
skotlex
0c68bf4e54 - Fixed the next invoked skill after AbraCadabra not having requirements even when it is a different skill than the one chosen by AbraCadabra.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-16 19:49:33 +00:00
skotlex
29b474c8ab - Implemented Intravision as it should be. Thanks to HelloKitty2 for the captured packets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-16 14:44:27 +00:00
skotlex
bc9daa6048 - Added function unit_escape to simplify the run-away code a bit in the mob ai.
- Some cleaning on the mob_ai to enable mobs to run away from their current target when they are rude-attacked by them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-16 13:56:17 +00:00
skotlex
9e0791f775 - The NPC elemental attacks will display a skill animation again.
- Mob instant cast skills will use their adelay now.
- Spirit of Wizard won't work on Ganbantein
- The pc normalize job function will consider you as novice if you don't have maxed out basic skill.
- Cleaned up pc_calc_skilltree and related functions so that the id is left as 0 when you can't raise the skill even if you meet the prerequisites. This is to prevent raising quest/soul/marriage skills through packets.
- Slaves should lock unto their master's target even if they are not attacking yet (eg: in chase mode)
- Updated the Summon Slave skill to use the slave distance define as valid distance to spawn from master.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-15 21:45:19 +00:00
skotlex
539fe020dc - Fixed Joint Beat's speed penalty.
- Added a pc_authok check to prevent the case in which somehow another character of the same account manages to log in as well.
- The pc normalize job function will now recognize you as a novice if you don't have NV_BASIC maxed.
- Accessories will now by default go into the rigth-side rather than the left-side of the equip window.
- Added a check in the mob_ai_subhard function to make mobs unlock targets which have their invincible timer set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9655 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-15 19:16:44 +00:00
skotlex
1fcb743f2b - Probably fixed the registration flood protection code being broken.
- Readded a commented piece of code that's meant to prevent @warp from printing "invalid target cell!" messages on the console.
- Joint Break should only re-start the bleeding timer when it currently IS the one that causes bleeding.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9653 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-15 16:43:01 +00:00
ultramage
c4d4b77cae Talking about copy-paste... t_t (missing closing curly brace)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9650 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 21:06:04 +00:00
FlavioJS
78ec0c3b38 yup, i need to rest... (also, copy-paste is eeeevil)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9649 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 20:28:11 +00:00
FlavioJS
fa8de3cb7e ups
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9648 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 17:15:53 +00:00
FlavioJS
a7ee9a9961 - Cleaned up the ip rules/DDoS section of the code. (the allow,deny and deny,allow cases were switched)
- Updated the information about ip rules and DDoS protection in packet_athena.conf and commented out the line "allow: all" so connections are rejected when a DDoS is detected.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9647 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 13:51:38 +00:00
KarLaeda
60f4e80cc1 Fixed exploits in Valentine Event Scripts
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 11:16:19 +00:00
ultramage
d50f358f5e Disambiguation
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 06:54:44 +00:00
FlavioJS
dde66aee4e - Fixed autotrading characters not being able to reconnect. Seams like I misunderstood how id_db and pc_db are used.
Ref: http://www.eathena.ws/board/index.php?showtopic=131873

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 03:40:18 +00:00
ultramage
4194ea17da Update to the new locations, adds more warps (thor_camp)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 20:08:39 +00:00
FlavioJS
8d7a0bd454 - Fixed the script engine not parsing strings in multibyte charsets correctly (should have been done in r9532).
Ref: http://www.eathena.ws/board/index.php?showtopic=132004

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 08:34:34 +00:00
FlavioJS
6e27509f86 - Console plugin working when built as Windows native.
The linux part has the same strategy but uses the new asynchronous input abstraction layer.
The abstraction layer is there to facilitate changes, was really handy when trying to get it working as windows native. :)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 08:02:45 +00:00
ultramage
0a09549be2 Combined most of the txt/sql mobdb reading code
- mob.c is now some 10kB less redundant (now using a common function)
- automatically filled in some missing parts of the txt part (view_range_rate, chase_range_rate, line counting, etc)
- also cleaned it up significantly

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-10 16:45:04 +00:00
FlavioJS
aa371b3af3 - Fixed the define script_lastdata, introduced by me at r9637 (had the wrong sign)
really hate these types of bugs, no more committing late for me >.>

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-10 14:57:54 +00:00
ultramage
dc139362e8 Small typo fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 18:19:26 +00:00
FlavioJS
1f54e62d13 - Updated some functions calls that where using the wrong number of arguments with checkcart,checkfalcon,checkriding,getgmlevel,basicskillcheck.
hmm, maybe I should add a config option for lazy scripter that still want to run script code that uses too many arguments

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 17:59:27 +00:00
FlavioJS
4b78fc3c9f - Changes to script buildin functions:
* functions checking if a player is attached as soon as possible.
  * functions that required a player attached and would crash if none was 
    there terminate the script now. (others keep the current behaviour to 
    maintain full backward compatibility)
  * removed the unused flag argument in guildskill.
  * bonus,bonus2,bonus3,bonus4 use the same function now (remains the same 
    script-wise)
  * added an optional parameter to setcart,setfalcon,setriding so it's 
    possible to remove the cart/falcon/mount or select a specific cart
  * other cleanups

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 17:31:13 +00:00
Lance
e8303f77cc And the changelog :B
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 02:45:46 +00:00
Lance
6827bc726b * Hotfix: Freeing of freed pointer when replacing script functions. [Lance]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9634 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 02:45:01 +00:00
ultramage
b0aa97039b Unimportant cleanups
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 16:50:54 +00:00
ultramage
284b66e65c * Silenced the plugin export messages during startup [ultramage]
* Fixed an old debug message displaying %d instead of a number
* Commented out a login_log call (sql doesn't implement that function!)
* Found the reason why the console didn't want to run on windows
* Moved the plugin.def file to the plugins dir and added console.def

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 15:40:41 +00:00
FlavioJS
0129172c63 - Added a precompiler error when the shutdown defines are not found.
- Added parse_console to the plugin API.
- Added plugin for parsing the console. (working with cygwin)
- Added the console plugin to plugin_athena.conf commented out.
- Copied the parse_console code form login txt to login sql and char.
- Added propper plugin version compatibility tests.
- Better output when a plugin fails to load.

-----

The console plugin (at it's 3rd version) uses two pipes and another thread.
- the other thread reads data from stdin and sends it through one of the pipes
- the other pipe serves as semaphore (and terminator) to that thread
- the normal thread checks if the pipe has data once every timer cycle, if data is found it invokes parse_console with that data

Worth noting: the first version didn't use another thread and just checked if data was available on the input stream, but apparently that can't be done to standard input in windows

It's only been tested on cygwin (and should work on most *nix systems), can't test native windows right now because I'm having trouble exporting the required plugin variables in VS8
src/plugins/Makefile hasn't been updated because it's not working properly for me

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 08:35:32 +00:00
FlavioJS
da5d22b67f - Fixed the sleep timers not being removed when the an npc was being unloaded and when reloading scripts.
Ref: http://www.eathena.ws/board/index.php?showtopic=131464

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07 17:59:25 +00:00