67 Commits

Author SHA1 Message Date
skotlex
e81a812069 - Cleaned up implementation of NPC_EMOTION/NPC_EMOTION_ON. Now val0 is the emotion, val1 sets the mode, val2 adds to the mode, val3 removes from the mode. val4 asks to remove the previous mode change.
- Updated the mob skill reading code so it accepts hexadecimals in the 'val' fields. Also, it will optimize the NPC values so that when you set a mob's mode to their db mode, it will just remove the previous mode.
- NPC_EMOTION_ON will now automatically move it's new mode to val2 since it should add a mode, and if this mode doesn't has the aggressive bit, it will remove it. See this "ancient" hypothesis on how NPC_EMOTION_ON should work for the details:
	http://www.eathena.ws/board/index.php?showtopic=63606
- Updated mob_skill_db to account for the updated mob modes on NPC_EMOTION skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-07 16:42:25 +00:00
skotlex
8b8aa14493 - Renamed the mob mode Cast-Sensor Melee to Cast-Sensor idle since these mobs really should only be cast-sensing when they are not after another target.
- Added a Aegis Mob Type -> eA Mode table conversion to the mob modes doc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-06 21:11:12 +00:00
skotlex
5036e3591a - Cleaned up the implementation of map_foreachinmovearea so that the number of arguments passed is less.
- Moved setting a mob's chase/attack states from the mob_ai to unit_attack and unit_walktobl.
- Cleaned the change-target/cast-sensor code to account for the new mob modes.
- Cleaned up a bit the mob ai sub hard function.
- Made the monster_active_enable config setting take effect on mob load.
- Updated the doc explaining mob modes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9422 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-06 18:21:32 +00:00
FlavioJS
637ae9a4dc - Massive EOL normalization & 'svn:eol-style native' flag setting for all txt/conf/h/c files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-05 13:23:07 +00:00
Lance
e04b0c735a Documentation update to atcommand
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9232 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:42:11 +00:00
Lance
3847e1c0e8 * For the sake of avoiding confusion, all script events are named with prefix 'On' from now on.
modified   Changelog-Trunk.txt
modified   conf-tmpl/script_athena.conf
modified   doc/pccommand_list.txt
modified   doc/script_commands.txt
modified   npc/custom/Lance/FR_HallOfFame.c
modified   npc/sample/PCLoginEvent.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9231 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:39:27 +00:00
Lupus
dc65b3bc38 added Halloween Event, fixed seals quest, updated Pavianne KAfra
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-10 15:39:05 +00:00
skotlex
ee19937202 - Reloading scripts will no longer eliminate mobs with no respawn data. Watch out for duplicating Treasure Boxes?
- Some cleaning of npc_final
- Made speed_add_rate a linearly stacking increase.
- Corrected a possible overflow when using show_mob_info to display the mob's up as a percent.
- Corrected the documentation for checkoption/checkoption1/checkoption2


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-18 14:43:04 +00:00
Lupus
59e39f1b71 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8698 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-09-11 05:01:48 +00:00
skotlex
a9e7abfc20 - Corrected script_commands description of getequipid, it returns -1, not 0 on fail.
- Fixed the mob-id check during pet_db loading, it will also now print when a pet is not loaded due to having an invalid mob class specified.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8587 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-02 01:43:23 +00:00
eaac
f951a22a13 * Added 3 missing, working commands, thanks to RedXII. [erKURITA]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 01:08:27 +00:00
skotlex
78789dc389 - Added script commands roclass/eaclass to enable scripts to access eA's job format. Read script_commands.txt and ea_job_system.txt for a more complete explanation of how this job system works.
- Removed doc/item.txt (seems like a totally useless file)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 16:52:41 +00:00
toms
2b1435f36e Applied Mpeg's work on ninja (http://gpegon.free.fr/ea/ninja_08-18-06_mpeg.txt)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 15:22:24 +00:00
skotlex
1079f53d4c - Spirit of Wizard will now consume an item 7321 each time it blocks reflected magic.
- Added script command jobname, retrieves a given's class name as per the appropiate msg_athena.txt entry (this command should had been added years ago)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8320 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16 19:50:52 +00:00
skotlex
85655282d4 - Adjusted the order in which option/sc change packets are sent to match Aegis's
- Added script command getpartyleader through which you can retrieve various information of a party's leader.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 16:19:42 +00:00
skotlex
04edacd3d9 - Changed function itemdb_group to itemdb_group_bonus, it now calculates the total group bonuses of a player for a given item.
- Changed itemhealrate to itemgrouphealrate, added a structure itemhealrate to allow storing item-healing bonuses per item.
- Modified bAddItemHealRate so it can receive both item-id and item-group values (since the first item-id is +500, there's no risk of mixing them up).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 20:04:16 +00:00
toms
e61a6fb306 Removed ugly struct cast in login.c
New version of buildin_query_sql which accept more than one column and can return the number of rows. See script_commands.txt for more details.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 23:06:03 +00:00
skotlex
3de2f9aa48 - Cleaned pc_commandlist.txt a bit so that the information on it isn't completely out of whack.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 19:58:08 +00:00
skotlex
094db48cae - Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption <pickup share> <item distribution>", where both arguments can be 0/1, yes/no, etc.
- Updated @changeleader and @partyoption to use msg_Athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 21:12:35 +00:00
skotlex
4c36924fce - Added structure s_addeffect to handle status change additions. Cleaned up relevant code. It is now possible to specify ANY status change, not just the basic ones.
- Added support for bonus3 bAddEff/bAddEffWhenHit as follows:
  bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>.
  Target flag is 0: Self. 1: Enemy. 2: Both.
- Added these descriptions to doc/item_bonus.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 16:38:36 +00:00
skotlex
fa457b3872 - Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
- Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a ranged arrow-type attack.
- Updated help.txt and help2.txt, thanks to Inuyasha for providing the updated files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 01:17:11 +00:00
Playtester
a6b45186e7 Sorted in the new cards and fixed some equips
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7306 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 08:23:30 +00:00
skotlex
bce845e94f - Fixed pets ignoring can-act delays for skill usage.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 02:31:08 +00:00
celest
afeeeadfd8 Cleaned up Changelog (guys don't tidy up much do they? xP)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29 06:10:09 +00:00
Lupus
d5dd578e57 added noVending mapflag. Tested. + custom Market Place NPC, fixed MSG strings
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-25 16:26:17 +00:00
Playtester
ae012b0408 Fixed the item_bonus doc saying autospell3 rate is y% rather than y/10%
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6634 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 20:28:47 +00:00
skotlex
c832510453 - Firepillar's damage per hit is now 100% MATK (rather than 20%) when the skill level is above 10.
- Sorted out the item_data structure, getiteminfo should work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 20:24:37 +00:00
skotlex
ae5d5020c0 - Changed wedding costumes to use setoption rather than changebase.
- Modified setoption so that flag 1 or no flag adds an option, and flag 0 removes it.
- Updated script_commands with the new behaviour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 13:43:00 +00:00
skotlex
73b98ea723 - Updated setoption script command to receive a second (optional) argument flag. If the flag is 1, the option is added to what the player currently has; likewise using flag 2 removes only that option. No flag (or any other value) is the older behaviour of removing all other options and setting specificly what is passed.
- Updated script_commands information for setoption due to this change.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 21:09:53 +00:00
Lance
49fc4fe81d * Optimized fake npc system. Added npc_checknear back to npc_buysellsel.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 05:48:06 +00:00
Lance
adb7357fd2 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6373 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-29 13:54:07 +00:00
Lance
33916be18e * Fixed typo in skill.c: skill_clear_group
* Fixed command descriptions in script_commands.txt
* Cosmetic changes to script.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 08:03:03 +00:00
skotlex
a65352a081 - Updated the doc/script_commands.txt documentation in regards to npc mob spawn lines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 02:52:02 +00:00
skotlex
8934d52b73 - Removed the max cap of autoloot so you are now allowed to set autoloot values above 100.
- Initialized w1/w2/w3/w4 before reading each npc line to avoid sending unread values to the parsers (for example, if w4 has a value in one line and none on the next, it will be parsed with the previous value of w4 on the following lines)
- Updated getpartymember to receive an int which specifies what to retrieve. 0: Character names (array $@partymembername$), 1 character char ids (array $@partymembercid), 2 character account ids (array $@partynameaid). By default it returns party member names.
- Updated script_commands.txt with the updated behaviour of getpartymember.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6182 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 18:44:01 +00:00
Poki#3
211bdf4590 Added new items and Cards as temp plugs.
Fixed dancer and Gypsy check in clothes_dyer.txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6178 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 15:45:58 +00:00
eaac
23599bc5a7 ~ eAAC Update:
* Added quest_warper.txt to eAAC_Scripts. [erKURITA]
* Deleted the sql and txt versions of the disguiser and added a merge of both. [erKURITA]
* Deleted clone_arena.txt. [erKURITA]
* Updated global_functionsKE.txt of Skotlex. [erKURITA]
* Added woe_time_explanation.txt to explain how to set WoE times. [erKURITA]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6068 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 00:16:48 +00:00
eaac
3502441912 - Added up the locations but temporal names of Poring track npcs. Will be worked
on over time. [erKURITA]
- Fitted the many lines into 1 or 2, and corrected some typos on most of 
  the npc\guides. Visual update to the guards, for short. [erKURITA]
- Added some info to the docs.[erKURITA]
- Added "case" npcs of lighthalzen, they're the first on npc/cities/? Mostly guards. [erKURITA]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6025 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 01:35:50 +00:00
skotlex
7015c8578f - Modified the equip_job field in the item_db to be a hexadecimal value for easier handling.
- Updated item_db.sql to this new file format (even though it's equip_jobs field is still a integer)
- Added upgrade_svn5951.sql for those who would like to convert their existing items.
- Added doc/item_db.txt to explain each of the fields in db/item_db.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08 06:08:29 +00:00
Lance
343deba71c * April fool! Improved soundeffectall script command. (No, this is not a lie)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 02:11:23 +00:00
foruken
57ce40d17a Added year day return in gettime function. gettime(8) returns 1~366
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30 18:09:09 +00:00
Lupus
5a10412b36 added to doc: getmonsterinfo. updated NJ items
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-20 08:32:47 +00:00
Lance
720f3be7c3 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5665 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-03-19 05:46:15 +00:00
Lance
bfe227ac7d * Documentation update on NPC whisper and rid2name.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-19 05:44:41 +00:00
Komurka
be263c9d72 * 1st part (autospells) of item_db.txt update according to Aegis 10.2 file
- (to transtation devs) I suggest to update item descriptions


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 00:23:10 +00:00
skotlex
1b71a1a4da - Small fix in pet_attack that would make pets not unlock their target in some situations.
- Fixed invisible shops. callshop scrip command now works!
- Added proper documentation of script command callshop


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 11:24:46 +00:00
Komurka
28c7a61687 One more small fix on 'bSPVanishRate' (tsd->status.hp * sd->sp_vanish_per/100 -> tsd->status.sp * sd->sp_vanish_per/100)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 10:02:11 +00:00
Lupus
0a4cbc8607 updated script doc/ again
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 06:16:21 +00:00
Lupus
49a2b2d710 updated script doc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5105 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 05:45:03 +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