2783 Commits

Author SHA1 Message Date
DracoRPG
deb34a8ae5 New mapcache system :x
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 02:02:32 +00:00
skotlex
07e53259a5 - Corrected the define for NK no cardfix (def).
- Updated skills that shouldn't ignore the target's cards: Smoking, Fling, Zenynage
- Fixed the char sql server not escaping the server name before inserting it on the ragsrvinfo table.
- Corrected @lvup not doing the party even share check.
- Corrected breaker's misc part not ignoring element.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-06 16:16:25 +00:00
skotlex
0c7ca5de82 - Added NK value 0x80: ignore target's cards (0x8 will now only ignore attacker's cards).
- Corrected the NK values of skills (0x08 -> 0x80): Self Destruction, Smoking, Pressure, Fling, Zeny Nage, BioExplosion
- Soul Burn & Gravitation got NK 0x80 (previously hardcoded)
- Corrected Soul Breaker ignoring target's cards instead of the caster's.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 22:00:01 +00:00
toms
5a7f6ded40 Fixed an infinite loop if script name contains a single ':'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 16:59:20 +00:00
skotlex
58da8d54fb - Soul Breaker no longer ignores elemental adjustments.
- Simplified the Utsusemi/Bunsinjyutsu check to only block weapon skills that do not ignore offensive cards.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9960 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 16:24:13 +00:00
skotlex
de694a2c08 - Removed delete_session invokcations from ladmin.c...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9956 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-04 23:31:29 +00:00
skotlex
a0bfff19a1 - Removed delete_session from socket.h since it shouldn't be used by them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-04 22:51:22 +00:00
ultramage
5625383530 More tweaks to socket.c to simplify the code
- many generic cleanups - reformatting, useless code removal, etc
- made the mode_neg setting a compile-time decision, not a run-time one
- removed the silly frame_size setting (there since r1)
- added some TODOs to http://www.eathena.ws/board/index.php?showtopic=127988

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-04 21:06:28 +00:00
skotlex
4c9c8bb7a3 - Added the +20hit that were missing the NPC elemental attack skills.
- Added support for autospells using "a random skill level". The last value of bonus4 bAutoSpell is used for determining this as well as the target. &1 is to cast on target (otherwise cast on self), and &2 is to use a random level UP to the level specified in the script (otherwise always cast the specified level)
- Updated item_bonus.txt with the documentation for the bAutoSpell/bAutoSpellWhenHit changes.
- Corrected @refresh not reupdating the basic stat bonuses.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-04 16:39:30 +00:00
skotlex
56896a79da - Modified the Storm Gust freeze counter code so it is resetted when standing on a different storm gust before landing the hit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-02 20:02:08 +00:00
skotlex
4dd0c95c58 - Modified set_reg so that it returns whether it succeeded or not in setting the requested variable.
- Externalized battle skill range and blewcount bonus into their own static functions (battle_range_type & battle_blewcount_bonus).
- Sped up the skill range flag setting code.
- Added automatic support of damagesplit. This means that if a skill's nk value includes damage split among targets, it will do a divide by the number of targets (whereas before the list of skills where this worked was hardcoded)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-02 16:39:33 +00:00
ultramage
4ca0b15de3 EOL-styled some more files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-02 00:11:54 +00:00
skotlex
c4757be7e0 - Forgot to made Tatami Gaeshi state (proyectile blocking) end when you move.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-01 16:31:29 +00:00
skotlex
cf8a93db38 - Updated the stun length to 5 secs of: Meteor Storm, Sonic Blow, Throw Stone, Sightless Raid, Smite, Cart Termination
- SG Union will consume now SP if you use it while not soul linked.
- Added variable "skip" to the mob spawn data, to know how many mobs to skip when spawning because they were not removed due to the "mob_remove_damaged" setting.
- Corrected the Hp/Sp regen formulas from Hp/Sp/Spirit Recovery and Happy/Peaceful break according to recent forums discussions (formula is changed from x*lv +max*lv/500 to lv*(x+max/500).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-01 16:29:09 +00:00
skotlex
7bd79db58f - Corrected raid not doing the "can hit?" check on splash area targets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9940 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-01 00:00:43 +00:00
Lupus
7beec2d152 added setiteminfo function, updated setitemscript func, added NPC sample for them
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 22:31:55 +00:00
skotlex
c6d349bcee - Made it possible to modify the server packet version from the Makefile.
- Merged packet 2b22 (from my server) to handle quick fame updates whenever someone's fame in the ranking changes, but no position swaps take place (prevents having to resend the whole fame list in such events, you lazy Draco <.<)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 16:42:34 +00:00
skotlex
155552d89f - Fixed the definition of warpwaitingpc so that it allows an optional argument (number of people to warp).
- Modified the Palm Strike packet so the initial hit animation does not displays "Miss".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9935 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 16:24:39 +00:00
skotlex
3fe667ca28 - Added a check to prevent trades from being commited if either character is in final-save state.
- Checked and cleaned up the online_check code in the char-server. Further connections to the char-server are rejected when the account already has a connection (previously this would happen only if there was already another character IN game, not just waiting on the char-select screen).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 15:21:24 +00:00
skotlex
6c66c2095f - Simplified a bit mmo_char_tobuf (at least it looks cleaner to me now)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9932 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 06:07:41 +00:00
DracoRPG
0477c7a88f Added experimental new mapcache generator
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9928 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 00:57:29 +00:00
skotlex
05afc3cf73 - Removed an auth procedure check that is no longer needed (fixes double-login checks not working right)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-27 03:51:39 +00:00
skotlex
8c52b6b21d - Now when a player logs out while it's running an attached npctimer, OnTimerQuit of that npc will be invoked.
- Updated scripts_command to add info on OnTimerQuit
- Corrected the double login check in pc_authok


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-27 02:30:55 +00:00
skotlex
9bc7a5db40 - indent cleanups
- Fixed Self Destruction causing double-free'd errors and triggering twice when a self-destruct cast makes other objects trigger self destruct as well


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9924 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-26 04:09:58 +00:00
skotlex
d493f0078a - NPC_AGIUP now boosts flee by 100% and duration is 5+5*lv secs, as stated on the Ragnarok Bible.
- Fixed Soul Breaker's misc part not ignoring flee.
- Fixed misc attack's flee check being backwards (the less hit%, the more chance you had to connect)
- Corrected the range check in vending.c (TRADE_DISTANCE -> AREA_SIZE)
- Added define DEFAULT_ENEMY_TYPE in mob.c to simplify the enemy bl check (for easier reading/customization)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-26 02:31:18 +00:00
Lupus
e878d20fe0 added vender <-> buyer map & distance check
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 21:29:33 +00:00
FlavioJS
d6b5fe4b78 - infinite loop pwned me x.x
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9919 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 21:16:37 +00:00
FlavioJS
8f8fca4481 - Fixed a compiler warning in char_sql\login.c
- Minor source documentation/cleanup.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 15:38:12 +00:00
skotlex
433b9826e2 - You are allowed to expel guild mates that are not online now.
- Corrected damage of BloodDrain
- Moved the "already connected" checks to pc_authok, since a dual login doesn't needs to be checked until the new connection is accepted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 10:13:52 +00:00
ultramage
df84862163 Added missing header for r9914
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 06:59:39 +00:00
skotlex
046dd34c58 - You are allowed to attack/use skills now when your cloaking level is below 3.
- Small change to Stone Curse that may fix the permanent "semi-stone" status.
- Corrected "taming monster" having your skill-use be stuck if you cancel the target selection process.
- config setting party_show_share_picker now displays the jname of the item picked as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 04:53:27 +00:00
ultramage
32618b7ddd Corrected some typos and small details
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9912 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 03:23:45 +00:00
FlavioJS
8723e53a06 - Minor cleanup/documentation on the script engine.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-24 11:59:32 +00:00
ultramage
1e4c395e22 Fixed a typo in r9906 (C language restriction)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9908 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-24 09:42:05 +00:00
skotlex
f457d842bc - Fixed the mob_override_name setting not working on summoned mobs.
- The server now prints an error message when it the produce_db reaches the max number of allowed produce recipes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9907 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-23 23:37:52 +00:00
skotlex
182ccc62a8 - The NK value of the skill_db has been made a hexadecimal value, and expanded to include more information about a skill's damage properties: 0x8 - ignore caster's cards, 0x10 ignore element adjustments, 0x20 ignore target's defense, 0x40 ignore target's flee.
- Magic attacks always ignore flee, and misc attacks always ignore defense.
- Autoguard will no longer work on skills that don't take in card adjustments
- utsusemi & bunsinjyutsu no longer work on skills that don't take in card adjustments.
- Corrected damage of the NPC elemental attack skills, Blood Drain and Energy Drain


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9906 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-23 21:55:18 +00:00
skotlex
cf8685131d - Minor cleanups
- Adjusted menu-based skills so you can't reuse the same skill until you've dealt with the menu.
- Adjust autospells so that removing an autospell works when the script of the card that removes the autospell is triggered before the script that adds the spell.
- The "requested name of gm-hidden char" warning will not be displayed when the object in question is an NPC (since you can use Intravision to do this).
- Corrected the header format for invisible npcs.
- Venom Knife no longer takes into accounts cards or EDP.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9905 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-23 18:41:56 +00:00
skotlex
031cd5fb58 - Updated Box of thunder to use "agi up" effect for 30 secs instead of NPC Agi Up for 20.
- Guild expulsion now will fail when the character to be kicked is in a guild castle (rather than checking for the character doing the expulsion)
- pk damage reduction settings now will take effect only on Player VS player damage.
- Fixed produce_db2.txt entries overwriting produce_db.txt ones.
- Fixed item-granted/plagiarized skills unlocking skill trees when only your real learned level should.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-23 04:17:40 +00:00
skotlex
d403e06178 - Updated Box of thunder to use "agi up" effect for 30 secs instead of NPC Agi Up for 20.
- Guild expulsion now will fail when the character to be kicked is in a guild castle (rather than checking for the character doing the expulsion)
- pk damage reduction settings now will take effect only on Player VS player damage.
- Fixed produce_db2.txt entries overwriting produce_db.txt ones.
- Fixed item-granted/plagiarized skills unlocking skill trees when only your real learned level should.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-23 03:26:49 +00:00
ultramage
49096125fb Applied a consistent look to all header files (copyright, ifdefs)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-21 15:09:20 +00:00
ultramage
84cb63e650 Minor stuff (typos, socket.c, junk in login reply packet)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-21 13:09:22 +00:00
Lupus
7abe6b32a4 fixed @cartitems typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-19 16:07:58 +00:00
ultramage
987eb74e86 Fixed a typo from r9778, allowing non-gm chars to use /kick
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9875 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-17 23:08:19 +00:00
FlavioJS
e74a5e2456 - Reviewed the client and the shorts at 104 and 106 are part of the char structure. And a correction on what i said: 0x6d is the packet that sends the new char data, 0x67 is the request to create the new char.
(updated code accordingly)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-17 07:25:22 +00:00
FlavioJS
fcda68caa4 - Fixed the structure of packet 0x67 (new char info). It's the same as the one used for packet 0x6b (chars info).
Info based on the 1218 client and on experiments with 'orchish' skin.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-17 01:03:12 +00:00
skotlex
5ed686f6a8 - Updated the Dancer job quest to attach a player to the main timer script.
- Updated script commands startnpctimer, stopnpctimer, initnpctimer so you can attach a player to them, this is done because the attach/detach functions can't be used to attach to a different script than the one currently running.
- Some script code cleaning
- Updated the script_command reference with the new flag values of [start/stop/init]npctimer.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9872 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-16 20:53:05 +00:00
skotlex
dddd48f15d - Modified the "guardian" spawn script command, it no longer receives a "amount" argument (since that only leads to trouble), if the class is negative, it'll pick a random class the same way the monster spawn script command does, and if you pass a spawn position with coordinates equal or less to 0, a random spot in the map will be taken. However you can't use "this" as a map name anymore since these script commands do not need an attached player.
- Guardian spawning will now fail if you attempt to spawn a guardian that already exists on the same position.
- Collapsed clif_party_main_info and clif_party_join_info into a single function: clif_party_member_info
- Collapsed config settings "sg_miracle_skill_min_duration" and "sg_miracle_skill_max_duration" into "sg_miracle_skill_duration", which defaults to an hour.
- Miracle of the Sun, Moon and Stars can now retrigger to lenghten it's effect, and it is cancelled on warp/map-change.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-16 19:30:28 +00:00
ultramage
cf3421d7f1 - Cleaned up clif_party_info a bit
- Reverted some of my mobdb code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-15 23:22:30 +00:00
ultramage
d47a72bf9f Cleaned up set_reg and the surrounding code
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-15 20:54:36 +00:00
skotlex
dabaf379a9 - The default packet version is now 8. Clients from November2006 and before can no longer get past the char-server unless you change it back to 7.
- Fixed Storm Gust counter freezing on fourth hit instead of third.
- Fixed @homstats not taking into consideration that the stat growth decimals get discarded on level up (so the real minimum/maximum displayed was off).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-15 18:22:56 +00:00