333 Commits

Author SHA1 Message Date
Lance
348f88c110 * IDE error.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 08:05:28 +00:00
skotlex
c64fbb45b5 - Hopefully fixed the compile error due to the mapregsql_handle...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 21:33:26 +00:00
skotlex
bb7a50a009 - Fixed item pickup not picking anything unless you were in a party with item distribution set o.O
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 13:49:18 +00:00
Lance
acb95c4f12 * Mapregsql will now fully depend on mmysql_handle.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 08:20:45 +00:00
Lance
16a1b9d809 * Optimized strcharinfo to use switch. Looks like Skot fixed the crash already XD.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 08:12:27 +00:00
skotlex
b7ebda3ccd - Silence will only block skills when they have begun casting, not when the cast bar is done.
- opt1 status will block skills when they are done casting only if the sc_castcancel option is set.
- strcharinfo now returns blank instead of crashing the map server when there's no player attached.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5417 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 21:35:46 +00:00
skotlex
343577ac3b - Checked and fixed the script engine barking when you try to have a label with the same name as a const.txt defined parameter.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5415 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 19:44:37 +00:00
skotlex
9321f524fc - Turn Undead and Offensive Resurrection should now work on undead players.
- Fixed the range checking of Repair weapon
- Rude attacked is now also triggered when you hit a target that can't move out of their melee attack range.
- Mob ai will attempt to do a long-range attacked condition skill before unlocking a target when it is attacked and said target is out of melee range of a non-walking mob.
- Corrected mobskill event to set the target_id before triggering.
- Moved MSC_SKILLUSED trigger to mobskill_event which is triggered in battle_calc_damage. It is also triggered on skill_castend_nodamage_id
- Added party_share_loot for handling party-share loot. it should now work with autoloot as well.
- Fixed skill_break_rate breaking stuff even if the rate is 0.
- pc_stopwalking will not send a fixpos packet if you are sitting.
- mob_can_reach rude-attacked condition now uses the mob's field of view.
- SC_NOCHAT is automatically started on pc_authok if manner is negative.
- Map server now refuses to start if you try to define a label with the same name as some const.txt defined character parameter.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 18:18:32 +00:00
Lance
c2273620ad * Added script command 'setbattleflag'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5407 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 07:15:33 +00:00
Lance
c46f652b8e * Added autoequip flag check (added script command 'autoequip' to manipulate in script.c) for pc_takeitem in pc.c If it impacts on perfomance, please remove it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5401 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 13:08:53 +00:00
Lance
465ab78484 * Added script command 'equip' to equip items.
* Fixed dependancies in map-server compiling (VC7.1).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5400 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 12:32:02 +00:00
skotlex
bc1aad166c - Added sd variables menuskill_id/menuskill_lv to store menu-based selections. These are used now to check the validity of skill use instead of sd->skillid/sd->skilllv
- Affected skills/packets: AC_MAKINGARROW/ AL_WARP/ AL_TELEPORT/ AM_PHARMACY (all refine functions)/ MC_IDENTIFY/ BS_REPAIRWEAPON/ SA_TAMINGMONSTER/ SA_AUTOSPELL/ WS_WEAPONREFINE/ SG_FEEL
- Removed feel_lv and repair_target variables as now they are handled by the previous two new variables.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 17:34:48 +00:00
skotlex
eafb17b8fe - Fixed the memory leak on opt_2str as pointed out by End of Exam
- Fixed a few char SQL memory leaks as pointed out by End of Exam


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 13:36:49 +00:00
skotlex
59e17a948b - Modified PA_GOSPEL so that the random damage attack becomes a BF_MISC attack.
- Added pc_resetskill when lowering job level and there's not enough skpoints to substract.
- Fixed compile error of SG_FUSION in pc.c
- Modified pc_resetskill to receive a flag to indicate if it should or not do status_calc_pc and send skill block updates. Meant to optimize performance when used in the middle of a larger update.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 16:54:24 +00:00
skotlex
d25d952fc6 - Cleaned up and reorganized status_change_start. Now it also receives the success % rate (0->100)
- Added local function status_get_sc_tick which takes care of reducing the effect duration as need is be.
- Modified status_get_sc_def to handle defense against all related statuses, now returns defense on a scale where 10000 is 100%.
- Added time2 to pangvoice, it is the player effect's duration while time1 is for the mon's effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 16:56:53 +00:00
Valaris
8e410ec582 * Added some of eAIRC bot code, written by me and LittleWolf. It is disabled and has no configuration options yet, as it is not finished. [Valaris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 17:53:53 +00:00
skotlex
36ff68ba2f - Fixed the reported map when there is an error in report_src (script.c)
- Earth attacks now work on hidden enemies.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 18:53:26 +00:00
skotlex
28c32a9532 - Improved the NPC timer system to enable to have multiple timers going on at a time with different players attached to each. Now npc event timers are of two types: attached or global. The global timers don't have a player attached and can be started/halted by anyone. The character timers have a player attached, and they can only be stopped by a script that has the same player attached.
- Now player attached scripts will auto-abort when the atteched player quits the map server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-02 21:26:53 +00:00
skotlex
697d29d7d4 - Fixed a typo bug in SC_STAR_COMFORT handling.
- Fixed a possible crash bug in SC_POISONREACT handling.
- Simplified the skill trigger code for ST_PRESERVE, SG_FUSION, SG_*_COMFORT
- Unified the status change variables into a single structure (sc_count, opt1, opt2, opt3, option, and the array of status change data) which should make it easier to handle sc related stuff.
- TK_DODGE now won't trigger if your opt1 is set ;)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 17:17:09 +00:00
Komurka
05eba2d392 * Added 'restricted' mapflag, based on lordalfa patch
- you can set restriction zone on map (see mapflag/restricted.txt)
- you can turn off item usage on certain restricted map in item_noequip.txt
- you can turn off skill usage on certain restricted map in skill_nocast_db.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 14:24:26 +00:00
Valaris
2178a86317 AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:10:48 +00:00
Valaris
fd99753f8e Clearing trunk.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:00:45 +00:00
celest
eba2fb10e6 * Skip partner checking when calculating status with Marionette Control on
* Fixed plagiarised skills become unuseable after saving character
* Fixed double skill fail messages for stone curse
* Added modulus by zero check to rand()

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1419 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-06 09:00:18 +00:00
amber
107001247d Fixed some memory corruptions [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-01 06:16:28 +00:00
celest
05e31aee3c * Fixed a bug with InitTimer/StopTimer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-31 17:21:24 +00:00
amber
13eeee2ee6 More C/C++ Conformance fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1334 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 16:46:19 +00:00
celest
7e1c16d221 Compile error fix ^^
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1329 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 07:52:06 +00:00
amber
dfd7258882 Fixe compile time problems with our mixed C++/C conformance
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 06:18:21 +00:00
veider
de7940888a git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1316 54d463be-8e91-2dee-dedb-b68131a5f0ec 2005-03-28 21:25:11 +00:00
celest
b9a1f0d7fd Check changelog ^^
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1267 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-22 16:31:56 +00:00
celest
0b31d2f62b * Added getrefine()
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-19 08:13:37 +00:00
celest
4d4414fbbc * Added display script filename when a script error is found while parsing
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1244 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-17 10:46:37 +00:00
Lupus
67ec0711d3 fixed script command 'isequippedcnt'
added new script command for new cards 'cardscnt'
(to fix cards exploits! should check old cards, too)
fixed @jail / @unjail SAVE POINT abuse

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-08 21:23:51 +00:00
celest
b5d12d7ea8 Replaced some free's with aFree
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-07 16:01:20 +00:00
celest
055dde5bb4 * Updated core and map-server to jA 1115~1137
* Fixed a typo in Volcano

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-07 11:35:13 +00:00
Lupus
9f0d5a05a8 added new script commands
from jA

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1182 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-26 07:40:41 +00:00
amber
0b091d02ee PCRE updates
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1157 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-22 05:01:20 +00:00
celest
509039ac6b * Added skill requirements for the new guild skills
* Allow Emergency Recall to be cast in guild castles
* Add 'minimum job level required' for skill_tree reading
- Berserk now requires job level 50
* Added Spring Trap to be able to trigger ankle snare traps that aren't activated yet
* Added a fix in guild.c by Mellowz
* Some rewrites on the pet skill bonuses system
* Check whether a monster is still alive before starting a status change

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1142 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-20 14:11:43 +00:00
Lupus
6dcb5ae02b added +2 drops slots into MOBS DBs
brushed up srcs for 10 drops

fixed some mobs...

fixed TXT logs

fixed 1 guardian spawn

changed 2 SQL files.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-17 17:19:26 +00:00
celest
c54e7367f7 * Added 2 new script commands to support 2/15's cards patch
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-17 07:29:01 +00:00
celest
528ed3e19f Added 3 more of the new card effects
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-16 12:46:21 +00:00
celest
899b3ebeeb * Fixed a typo in quests/all_quest.txt
* Set 'killerrid' and do PCKillEvent before calling PCDieEvent
* Added some new script event related options to script config
* Added 10 of the new card effects on the 2/15's patch
* Minor rewrites on self and enemy weapon/armor breaking
* Added missing code for 'bBreakWeaponRate' and 'bBreakWeaponRate' effects
* Added missing code for 'bAddStealRate' effect
* Removed redundant 'infinite_autospell' in map_session_data

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-16 08:25:45 +00:00
Lupus
03b82d9adb fixed spawn of treasure boxes
fixed present_log
Mobs drops: expanded 8 slots into 10 (except READING info from TXT / SQL dbs. But added a plug - to make eA work with old DBs)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-15 19:30:58 +00:00
(no author)
a6330fd404 git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1101 54d463be-8e91-2dee-dedb-b68131a5f0ec 2005-02-13 04:52:20 +00:00
(no author)
d6688a9f90 * Reduced memory used for the skill_tree DB by 30+mb
* Added script commands isday and isnight
* Updated Sharp Shooting, Ankle Snare, Magnum Break, Tiger Fist, Devotion, Soul Burn

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-11 10:17:53 +00:00
(no author)
c372b3de89 more compile errors
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1040 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-05 06:02:39 +00:00
(no author)
d96cc5a331 * Added crash check for Ice Wall
- reduce mob_data->size variable to 1 bytes
- change from if-else to switch statements in buildin_strmobinfo

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1020 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-02 04:26:34 +00:00
(no author)
3ba32cce67 Added status_get_sc_def for calculating resistance against status abnormalities
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-26 11:20:38 +00:00
(no author)
0c541b77fb * Added status.c and status.h of jA 1091 update and moved some functions into the new source files
* Updated auto_counter_type's description in battle_athena
* Removed some unnecessary skill level checks in battle.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@996 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-26 04:54:22 +00:00
(no author)
5618dc9edc Made some more changes, reverted some old ones
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-23 21:52:55 +00:00