3043 Commits

Author SHA1 Message Date
ultramage
a6e61e1d2f Gave each file an empty last line, to make svn happier
Added svn:eol-style native where missing
Removed remaining .gats

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10401 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-29 08:17:53 +00:00
ultramage
ebf0f16a7e Fixed login_sql ipbans not working (due to signed/unsigned mismatch)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10390 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 17:09:10 +00:00
ultramage
2b251df80a 'minor' details
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10389 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 16:25:04 +00:00
ultramage
833fd942a4 * Tried and fixed md5 password encryption
- login_sql was doing stupid things like re-using one pre-generated key for all connections, and escaping binary md5 data (destroying it)
- added missing code to login_txt when creating new accounts, showing that storing passwords as md5 hashes never really worked for txt
- removed PASSWORDENC's conditional compilation effect, now just a flag
- greatly simplified md5 password checking code, credits to eapp
* login server will now bind only after finishing the init phase

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 14:34:58 +00:00
FlavioJS
c292b087b5 * Internal changes to the script engine:
- modulus division detects division by 0.
  dividing by zero stops the script and gives an error
- underflow/overflow messages differentiated (warnings)
- when a script function doesn't return a value, a C_NOP value is pushed 
  instead (avoids stack corruption)
- op_add merged with op_2+op_2num/op2_str
- better type checking in the operators, int/string is never assumed.
  The script ends when an invalid type is found.
- other minor code cleanups

Changes made in consequence of:
Ref: http://www.eathena.ws/board/index.php?s=&showtopic=149237&view=findpost&p=823195

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 09:57:29 +00:00
skotlex
e345f25bd3 - Corrected High Jump so it works on Guild Castles when WoE is off.
- Moonlit petals now always knocks to the back of the character rather than pushing the character away from it's center.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-25 19:07:48 +00:00
skotlex
2b9eddf37d - Modified the mob ai think time update after using skills from adelay/amotion to 100ms since the previous method adds a large delay before the AI activates again (which screws up with the timing of idle/walk skills)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10348 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 20:59:07 +00:00
skotlex
9c8f2cbb52 - NPC_MAGICALATTACK now starts a state similar to Sacrificial Ritual, in the sense that every normal attack afterwards becomes a Magical Attack. The skill duration is 15 secs.
- Corrected some trade-cancel calls in trade_traderequest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 19:33:37 +00:00
skotlex
e587ff356b - The autoloot range check is no longer done unless AUTOLOOT_DISTANCE is defined (by default it is no longer defined)
- Ganbantein now deletes individual skill cells instead of the whole skill in the area it is casted.
- Modified the mob total damage code to prevent overflows when mobs receive over 2kM damage.
- Made the dmg structure of the damage log an unsigned int rather than signed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 18:41:39 +00:00
ultramage
7d14deb7a5 Spider Web / Fiber Lock status cannot be dispelled now
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 09:58:31 +00:00
skotlex
51a49aadf7 - All mob casted skills have a fixed range of 9 now. You can use monster_ai&0x400 to disable this and make the old skill range rules apply.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 22:41:18 +00:00
skotlex
b6e3783be6 - Updated the skill_db, some mob skills seem to be better to a range of -9 than 9.
- Corrected the pet_db information for Xmas Goblin and Rice Cake.
- Replaced all struct map_session_data to TBL_PC in script.c
- Pressure no longer vaporizes plants.
- Corrected pc_setregstr to handle a null str argument.
- Corrected @reloadbattleconf causing a add_timer_func "already existing function" error.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10326 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 19:08:34 +00:00
ultramage
150f7d0b56 - Fixed a compilation problem with the pid plugin
- Some minor cleanups 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 01:37:16 +00:00
skotlex
f4dfd0d8ee - Removed the include of features.h from the console.c plugin. It is apparently not needed (and it was preventing compilation on FreeBSD)
- Fixed bug which totally broke item group bonuses.
- Added warnings when setting a pvp/gvg flag removes the other flags on the same map (gvg and pvp can't coexist on the same map)
- Optimized the unequip loop when changing sex.
- Removed the check that prevented you from casting soul-collect when you already have 5 spirits.
- Corrected Magic Rod so it doesn't displays any skill-use animation until it triggers.
- Debuff on logout&2 is again set to default, instead of removing food bonuses now it removes Maximize Power, Maximum Overthrust and Steel Body.
- Corrected Steel Body's icon (it actually belongs to AutoBerserk)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 19:14:42 +00:00
FlavioJS
f4907979c1 * Extended the functionality of StringBuf - length and appending a string.
* menu/select/prompt script functions support grouped and empty options.
  The selected option number is consistent with them.
* More work on ticket #41.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 15:45:37 +00:00
skotlex
36a86d07e4 - Corrected crash if itemskill is used without an attached player.
- Removed range checks for autospells as per UltraMage Aegis tests.
- Added chatID skill fail check to skill_check_condition
- Corrected @refresh not re-displaying your spirit spheres nor re-setting your cloth dye.
- Now the "number of attackers" in mob_dead is counted only from online characters on the same map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 03:11:04 +00:00
skotlex
e120c937cc - Updated the autospell bonus scripts so you don't have to specify all the attack type criteria. If neither of BF_LONG/BF_SHORT is specified, the spell will trigger on both. If neither of BF_WEAPON/BF_MAGIC/BF_MISC is specified, the spell will trigger on BF_WEAPON, if neither of BF_NORMAL/BF_SKILL is specified, BF_SKILL is used if the trigger is BF_MAGIC/BF_MISC and BF_NORMAL is used if the attack is BF_WEAPON. This way the default when nothing is specified is BF_NORMAL|BF_WEAPON|BF_SHORT|BF_LONG.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-21 19:12:11 +00:00
ultramage
d220dde7c0 - Removed the +25% mdef, -50% def effect from Freeze status
- Changed autocast skills, they now only work with normal attacks
- Fixed a few spots where the attack_type flag was getting truncated
- Hopefully fixed the cygwin + size_t problem (using stddef.h as source)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-21 17:08:08 +00:00
ultramage
b1ccbcdba7 - Added ntows() to properly handle that client port number deficiency
- Adjusted the packet_db array for a more consistent look
- Reorganized some entries in packet_db.txt
- Fixed a small scripts_custom.conf typo

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-20 21:57:33 +00:00
skotlex
44ac188d6f - fixed a few include lines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-19 17:10:11 +00:00
skotlex
2eeaa8f27a - Now @whogm hides perfect-hide gms only if their GM level is greater than the one who invoked the command.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10290 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-18 20:28:33 +00:00
LuzZza
730089fe0e Added MEXP overflow checks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10287 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-18 17:00:54 +00:00
skotlex
2e8efbd2c2 - Some more cleanups that should prevent the double-login issue even further.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-18 14:39:11 +00:00
skotlex
94ae69eee6 - A little check that I don't know how could anyone have forgotten to do.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10283 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 21:44:45 +00:00
skotlex
3ef8c87261 - The gain exp from resurrection config will now only work when the revived player has yet to reach the last level (since otherwise it can give quite a lot of exp since the last level exp just keeps piling up)
- Corrected unit_canmove so you can't move if you are vending.
- Corrected npc_click so it won't let you click on hidden npcs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10281 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 17:39:10 +00:00
skotlex
bdaf348a6d - Expanded the autospell structure to hold a flag, which contains the required Battle Flag conditions required for a skill to trigger.
- Added the required constants to const.txt to specify the autospell trigger properties.
- Added bonus5 bAutoSpell/bAutoSpellWhenHit. The new parameter is used to specify when the spell should trigger (melee/range + weapon/magic/misc attack), see item_bonus for details.
- Applied use of packet 0x28a (clif_changeoption2) to transmit opt3 changes. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10278 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 15:43:40 +00:00
toms
b6ee9b3559 Forgot one in in_homun.c :s
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 13:28:32 +00:00
toms
5d72c25353 Changed some %lu to %u in login_sql/login.c because uint32 is now an unsigned int
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10276 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 13:21:27 +00:00
ultramage
74295231e6 * Discarded extra deflate function needed for afm reading
- as a result, discarded the whole chain of support functions, .c files and includes needed to make that one function run
- also removed zlib compile/link dependencies where they are not needed
- reduced the whole zlib package into two core include files
- adjusted makefiles / project files to reflect this change 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10273 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 10:03:30 +00:00
DracoRPG
3b392f3f37 Massive at+charcommand cleanup, big thanks to HiddenDragon
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10272 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 00:17:15 +00:00
ultramage
a5407d3948 Partially deobfuscated the grfio module
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10271 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-16 22:56:59 +00:00
ultramage
2216188890 * Finally fixed mingw problems, managed to build both TXT and SQL
* Fixed the uint32 platform problem (Microsoft failed so I removed it :)
* Removed the cbasetypes.h dependency from the mapcache generator
* Removed some random compilation warnings

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-16 20:44:44 +00:00
DracoRPG
eef15360f9 Small bugfixes and enhancements to the map cache generator
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10267 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-16 00:14:32 +00:00
skotlex
0d740342ae - Fixed battle_getenemy picking dead characters.
- Adjusted Spiral Pierce, Shield Boomerang and Shield Chain to use atk2 instead of weight when used by non-players.
- Adjusted skills blindAttack, SilenceAttack, StunAttack, PetrifyAttack, CurseAttack, SleepAttack, Lex Divina and Dispell to be area effect skills, if the used skill level has a splash-range different from 0.
- Mob used Meteor Assault (and by extension Spread Attack) is able to hit icewalls now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-15 20:13:07 +00:00
ultramage
53823c3e67 Fixed TXT char creation blocking characters with nonstandard names
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10257 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-14 12:12:27 +00:00
ultramage
aa262362e1 More svn:eol-style-ing and typo fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-14 11:06:13 +00:00
skotlex
d16a4a1f00 - Fixed a null pointer when a mob needs to unlock a target while it's idle.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-14 06:21:15 +00:00
skotlex
13a368be13 - Corrected land protector's duration according to the descriptions
- Fixed "pc drop item" doing the incorrect check to see if the player was trading.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10252 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-14 04:09:40 +00:00
skotlex
9810da7f62 - Oops, it turns out the state is never reset from walking to idle automatically when a mob was random walking...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 19:11:42 +00:00
skotlex
aa0e780bd5 - Moved the idle state random walk and idle skill triggering to mob_unlock_target, since our current AI has some execution paths where these would never be triggered.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 18:41:55 +00:00
ultramage
cf77f95ed1 fixed makefile typo, maps_athena typo, svn:eol-style native for some files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 17:37:38 +00:00
skotlex
2c8dd7666b - Oops, little error on previous commit.
- And cleaned a bit the mob use skill code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10236 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 16:00:59 +00:00
skotlex
f1bf0b8e80 - Changed the meaning of inf2=0x1000. Now it is used to "disable usage on enemies", which only works for non-aggressive (inf!=1) skills.
- If a skill is party/guild only (inf2 0x400/0x800) it will also be castable on enemies if the skill's inf is 1 (offensive target)
- Corrected the mob behaviour when it locks into an enemy it can't chase. Previously it would get stuck on a lock->unlock->lock loop, with each unlock resetting the "random walk" timer, causing the mob to just idle in place. Now they will attempt idle skills and no longer reset the "random walk" timer, so they behave as if they were in Idle state properly.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 15:19:49 +00:00
skotlex
43d128ac3e - Added debug command @displayskill. Should be used only by people searching for new skill IDs.
- Now the bonus bAtkEle will be transferred directly to the weapon when the script is in the ammunition, and you are wielding a weapon that consumes ammo per atttack. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10232 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 14:28:39 +00:00
skotlex
1a54f19292 - Fixed status changes that can't be reduced and have a passed duration of 0 'failing' when the inner code will give it some duration (eg: the weight icons)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10230 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-12 13:50:53 +00:00
skotlex
272cc6201e - When a mob fails to use the selected skill, it will now move on to the next one in the list, rather than return from the function with fail status.
- Mobs won't try to run away when rude-attacked if they have a locked-on target already.
- Moved the teleport on LP fail check from castend_nodamageid to status_check_skilluse, this way unit_useskill will return failed when trying to use it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-11 19:19:06 +00:00
skotlex
d0e92fa7f4 - Fixed crash caused by fake-NPC (some fields were not initialized to NULL, I think it's safer to just use aCalloc rather than aMalloc here)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-11 16:53:40 +00:00
skotlex
ac0c23863d - Trade-requests now fail if the target is in a NPC.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-11 15:53:17 +00:00
skotlex
ced5130a7b - Some cleaning of the castend_map code to prevent the menuskill variable from not being cleared if you made a choice but the skill was not triggered (due to silence, stun or whatever).
- Cleaned up a bit the Charge Attack casttime equation, should prevent infinite casttime when the distance is 0.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-11 14:21:09 +00:00
skotlex
d404a449a1 - Updated a bit the pet_db.txt, added info for Xmas Goblin and Rice Cake. Since little is known about them, most of the info is custom!
- Fixed @whogm not updating count for GMs which you can only see their name.
- Added unit_data.state.speed_changed, now when an object changes speed, the old move-packet will be used on the next movement, which should update the object's speed from that point and on-wards. This is done since there appears to be no way to tell the client a given object's speed has changed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10209 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-10 18:37:18 +00:00