5046 Commits

Author SHA1 Message Date
skotlex
9387ff566b - Made conv_str return const char* since the script engine screws up if you mess with the position of the terminator on the received string.
- Because of this, many functions that handled the return of conv_str need to be changed, I haven't finished doing the conversion process because I must go already, if someone else can continue, please do so (I will resume work on this in ~5 hours


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09 00:10:06 +00:00
Playtester
2c78473a09 Updated various one-handed weapons
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-08 21:02:50 +00:00
skotlex
b10091246c - Normalized the mapname in guild get/set castle data, should fix guild flags.
- Added log options 0x800/0x1000 to log storage moves ('R') and guild storage moves ('G')
- Added upgrade_svn9976.sql to include 'R'/'G' on the picklog type column set.
- Updated the logs_athena description to include the letter of each type (512 - M, 32 - N, etc)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-08 16:27:06 +00:00
skotlex
e45a007db2 - Corrected the pet/homunc data not being free'd if the player logs out before being authed.
- Initialized player's speed on pc_setnewpc to prevent homunculus copying a speed of 0.
- Added comment to reloadbattleconf specifying that some settings do not take effect inmediately.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 18:58:33 +00:00
skotlex
ed7bef2fee - Normalized guild castle names so guardians may spawn properly again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 17:19:35 +00:00
skotlex
c350fe1318 - Made the map server abort when it can't open the mapcache file.
- Added a normalizing function to map.c which handles removing the extension of the map name.
- Applied said function when reading maps from maps_athena, since the mapcache lookup fails without it (maps are stored there without extensions)
- TODO: Apply the normalizing function everywhere when parsing map related scripts.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 16:47:51 +00:00
skotlex
22d3158a94 - Cleaned some up the add-effect code.
- Corrected ranged add-status only triggering if the attack is arrow based.
- Updated counter add-status so they trigger on ranged attacks instead of using "arrow_atk" state.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 16:11:40 +00:00
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
Playtester
4455a88cbc Fixed Flying Angel headgear
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-06 15:59:04 +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
Playtester
49b783129b * Added various new headgears thanks to Argatlahm
- some headgears might not be fully official, feel free to report bugs if you find any
- also updated item_db.sql

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9965 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 19:29:10 +00:00
Playtester
90e9a649c4 Fixed some weapons and their prices
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 19:11:37 +00:00
Playtester
2ae7164044 * Fixed Aegis name, price and weight of all special type items
- beware of exploits due to the changed prices
- also added some new items

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 17:54:12 +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
Zephiris
02fcc024bd additional packets that were left out of the last update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 12:41:36 +00:00
Zephiris
1200075fee * Added support for the 2 new packet versions. [Zephiris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 12:33:09 +00:00
ultramage
3c9f1094b5 Fixed the loginlog's user column length (use upgrade_svn9957.sql)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 10:23:05 +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
Lupus
fbddee853b removed NPC duplicate Yuno -> Sleipnir Seal
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-01 13:00:24 +00:00
Lupus
3086c15b76 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9942 54d463be-8e91-2dee-dedb-b68131a5f0ec 2007-03-01 12:52:11 +00:00
Lupus
98e02fdf62 redo "bugfix" in cool_event_corp.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-01 12:41:08 +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
8925033e99 added important note
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 22:40:12 +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
Lupus
cca4b5be95 The Sign: Fixed possible exploit
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9933 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 11:42:46 +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
50278812ad Fixes to Merchant and Blacksmith skill quests (ran into them by playing on an eA server and using RI's wiki)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 01:57:47 +00:00
DracoRPG
3c942928c1 Woops :x
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28 01:02:35 +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
Lupus
36475c5c60 Alchemist Quest: fixed 2 answers in the Rasputin's test
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9925 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-26 22:06:53 +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
f1e6ab596d updated deviruchi - divorcer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-25 22:12:43 +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