11408 Commits

Author SHA1 Message Date
Euphy
454781a24d * Fixed a WOE:SE issue with 2nd Guardian Stone respawn. (tid:86918)
* A couple of other tiny fixes.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-30 18:02:48 -04:00
Euphy
1c7c002e46 * Follow-up cd9a776: documentation edits.
Signed-off-by: Euphy <euphy@rathena.org>
2013-08-30 17:03:08 -04:00
Euphy
0fe7006883 * Added jRO Eclage mob spawns. (credits: refis, Auriga)
* Fixed an overflow in custom wedding script. (bugreport:8032)

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-30 15:26:44 -04:00
Akinari1087
fb74928700 Enable TravisCI building 2013-08-29 20:35:46 -04:00
Cahyadi Ramadhan Togihon
cd9a776f23 *Added Skill Damage Adjustment!
- Disabled by default on src/config/core.h. Uncomment '#define ADJUST_SKILL_DAMAGE' to enable this skill damage adjustment
- Added skill_damage_db.txt (thank Lilith for 'Manage Skill Damage')
- Added new mapflag: 'skill_damage'. Please read 'doc/mapflags.txt' for more details
*Fixed bugreport:8029 (thank exneval for testing and reporting) (Akinari)
*Follow-up 647f99f (Akinari)
*Follow-up 15074d8: optimized item_isNoEquip check parts
*and some mirror changes
2013-08-30 02:55:11 +07:00
Akinari1087
da390cae2f Fix pre-re Ensemble songs ignoring Land Protector - Fixes bugreport:8013
Re-add Solo songs to ignore Land Protector in Renewal
Blame a9b48ba for the confusion

Hermode's Rod is now a Solo song - Fixes bugreport:8001
2013-08-29 00:48:18 -04:00
Akinari1087
647f99f805 Reflect damage even when damage is blocked by a status - Fixes bugreport:6938
Also separate status reflect damage from item reflect damage
Fix float value for strength stat in weapon attack (Baalberith) - Fixes bugreport:7957
Use stored weapon attack value for damage calculation rather than recalculate
2013-08-28 22:25:46 -04:00
lighta
866f66ccf8 Merge branch 'master' of https://github.com/rathena/rathena 2013-08-28 20:12:44 -04:00
lighta
55e776076b Safecheck atcommand
-Add restriction for atcommand to prevent possible mapcrash from script
or console usage while waiting full portability.
-Upd athena-start for new default binname.
-Remove petstat as it was similar to getpetinfo and copy only missing
attribute level atribute into getpetinfo.
-Merge useatcmd and atcommand as they shared quite the same code, also
properly differenciate useatcmd from normal player call.
--Upd script-documentation about it thx Euphy.
2013-08-28 20:07:45 -04:00
Euphy
4a4fab0298 * Database updates:
- Updated Renewal item_combo_db with new item entries.
- Updated Renewal item_noequip with Vellum gears/siege items.
- Some small updates to Renewal item_db.

* Other changes:
- Added some towns to various Renewal mapflag files.
- Fixed two typos in Nameless Island quest. (bugreport:8021)
- Fixed an error with the '+=' operator on string variables. When attempting to concatenate and assign to a previously empty string with +=, it'd throw a memory manager error. (Hercules 1afeabf)

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-28 14:34:16 -04:00
Cahyadi Ramadhan Togihon
15074d8c37 Follow-up fc48f92, which is oppsite of r17119. (Euphy's fault :P)
- Config naming changed: 'item_restricted_consumption_type' to 'allow_consume_restricted_item' (conf/battle/items.conf)
- Add 'allow_equip_restricted_item' config to allow/disallow player use item that restricted. Default is yes, restricted item can be equipped but gives no script effect (related r17119) (conf/battle/items.conf)
- Moves item_nouse check to itemdb_isNoEquip
- PC_PERM_USE_ALL_EQUIPMENT is now can be used to bypass item no_equip flag for equipment (also card) to run the item script
- PC_PERM_ITEM_UNCONDITIONAL is now can be used to bypass item no_equip flag for consumable item to run the item script

Fixed typo issue on ef4fd59
(ef4fd59996 (commitcomment-3962459))
2013-08-28 20:01:15 +07:00
lighta
ef4fd59996 Update configure.in
Add some requested option :
 --enable-prere, --with-outputchar --with-outputlogin --with-outputmap
This allow to try in prere/re mode and to chose binary name for output
file easily.
2013-08-28 07:17:40 -04:00
Cahyadi Ramadhan Togihon
fc48f925bc Fixed item_noequip.txt check when player try to equip an item (broken since hmm, I don't know) 2013-08-28 13:25:18 +07:00
Akinari1087
362d8264fe Fix MSVC conversion warnings - Fixes bugreport:8014
Added support for bSetDefRace and bSetMdefRace for Vellum Weapons
2013-08-27 14:27:26 +00:00
Euphy
fe95610ba8 * Added an integer overflow check on literal values in the script parser. (Hercules 8351881, 86602bb, 3d19c2d, 184ad8a)
- When attempting to use a value greater than INT_MAX or smaller than INT_MIN (about +/- 2 billions), a warning message will be shown and the values capped to INT_MAX or INT_MIN.
- Corrected some scripts that were attempting to use such values.
- Fixed some possible issues when using literal negative values in scripts.
* Added a note to @job documentation.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-27 13:46:02 -04:00
Euphy
558b5a175d * Updated Airship Ticket Quest with some missing parts and bug fixes.
* Two follow-ups to bf68cce.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-27 04:18:17 -04:00
Euphy
bf68ccefa3 * Script style standardization.
- Standardized cases on constants (Zeny, Sex, BaseLevel, etc.).
- Replaced numerics with constants.
- Standardized parts of script headers.
- Changed some script styles to K&R.
- Added some official script file names as comments.
- Replaced most 'misceffect' commands with 'specialeffect'.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-27 03:28:41 -04:00
Euphy
1083475207 * Some follow-ups to 5ab4d5e:
- Added Renewal changes to "God Seal Status" signpost and moved from "npc/other/sealstatus.txt" to "npc/quests/seals/seal_status.txt".
- Applied item_db changes to Pre-Renewal and SQL databases.
* Fixed issue in Cursed Spirit quest where an OnTouch NPC wouldn't activate.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-26 11:34:18 -04:00
Euphy
5ab4d5ea90 * Script updates:
- Updated Nameless Island quests and added questlog support in quests_nameless and quests_prontera. (fixes bugreport:7992)
- Updated "God Item Creation" scripts to their latest versions: seals roll at 25/50 instead of 50/100 in Renewal.
- Updated Soul Linker job quest with new checks.
- Fixed an untranslated Manuk NPC.
- Some follow-ups to previous commits.

* GM Management System:
- Enabled all official GM Management NPCs and wrote a function to control their usage.
- Implemented some missing GM Management NPCs (still incomplete).

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-25 20:56:46 -04:00
Akinari1087
f05667e4fb Removed RENEWAL_EDP option as it is no longer necessary and is not supported between Pre-Renewal and Renewal
Updated La'cryma Stick - Fixes bugreport:7980
2013-08-25 00:31:39 -04:00
Akinari1087
f884d30c1f Correct some skill formulas (Axe Boomerang, Power Swing, Triangle Shot and Feint Bomb) - Fixes bugreport:7996
Update Shield Press formula to 2011 re-balance - Fixes bugreport:8010

Partial merge of Hercules:7f9f6e1
Fix conversion warnings - Fixes bugreport:7987
2013-08-24 23:16:00 -04:00
lighta
8bd0985159 More hardcoding cleaning with inf3
-Add skill lists for :
--spell blocked by statis
--spell blocked by kagehumi
--spell range affected by
AC_VULTURE|GS_SNAKEEYE|NJ_SHADOWJUMP|WL_RADIUSRA_RESEARCHTRAP
--spell that can't be copied
--spell that can be using while riding warg|mado
-Add a boolean return value for delequip (script cmd)
-Fix monster (script cmd) hardcoded cap for ai. (was preventing to put
ai_faw)
2013-08-24 15:39:26 -04:00
Cahyadi Ramadhan Togihon
1cf5283dcf - Added GD_ITEMEMERGENCYCALL skill for Emergencycall Scroll items (12968, 12969, 12970).
- Change hardcoded delay time 'guild_skill_relog_delay' for guild skill (conf/battle/guild.conf).
2013-08-21 16:47:39 +07:00
Cahyadi Ramadhan Togihon
5f123519f6 Added item check for third classes (as partial merge from Hercules: 1caae98).
- 1:Normal, 2:Trans/Upper, 4:Baby, 8:Third, 16:Trans.Third, 32:Third Baby (see 'doc/item_db.txt' for detail)
- Changed almost all items class on 'db/re/item_db.txt'
- Updated 'sql-files/item_db_re.sql', also fixed SQL error (bugreport:7998)
Added 'item_unconditional' as group permission, default is 'false' (see 'doc/permissions.txt' for detail).
2013-08-21 11:33:34 +07:00
Euphy
ff86b75d26 * Standardization of new Upgrade Weapon Enchants script. (follow-up 5debd8c)
* Fixed some bugs related to Nidhoggur's Nest. (bugreport:7990)
* Follow-up ba6b57b:
- Added 'is_clientver' command to Navigation system function.
- Documented @item change.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-17 22:56:40 -04:00
unknown
5debd8c5c8 Added Upgrade Weapon Enchants 2013-08-17 17:03:45 -04:00
lighta
f2e1bd04b9 -Some scripts support
--Upd map Makefile.in to auto add header file in folder
--Upd configure to fix some debuging issue on some OS (-g flag issue)
--Upd athena-start, add --enlog option to create a log file with a tee. (all the normal console could now be logged into that file) thx to Beanux
nb : this logging option doesn't actually support file oversize
2013-08-17 09:49:28 -04:00
lighta
a9b48baad5 -Some customisation support
--Add of skill_inf3, goal is to move out the hardcoded skill list in emulator to db. (and therefor allow user to easily modify them if they wish)
-Fix of possible segfault in battle.c since r17457 (sd might be null on the camouflage bonus)
--Also fixing the fact that camouflage bonus was staying permanently.
2013-08-17 09:42:01 -04:00
lighta
ba6b57bdf3 -Some script/atcommand function work. thx to Euphy
--Update of script documentation
--Readd "instance_announce" (Broadcasts to all maps inside an instance)
--Add "is_clientver" (Checks if a player's client version meets a required version or date.)
--Add "getserverdef" (Retrieves server definitions.)
--Overload of @item to allow @item <id1:name2:name3:..> <amount> (for lazy people =)
2013-08-17 08:40:11 -04:00
lighta
342745de1a -Some clif work.
-Add packet definition for (2013-06-18, 2013-06-26, 2013-07-03, 2013-07-10, 2013-07-17) thx Shaktoh
-Optimise a bit pc_useitem processing
--Fix bugreport:7760 (Added new ranklist packet for newer client) 
--Fix bugreport:7739 (2013+ storelist had invalid offset)
--Fix bugreport:7806 (fix typo for 2013+ support and also fix breaking of old npc/merchants/cash_trader.txt)
2013-08-17 08:31:59 -04:00
Euphy
3125f09aae * Fixed Arch Bishop job quest. (bugreport:7111)
* Added two item checks in Mora quests as a safety measure. (credits: TTest)

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-14 17:36:04 -04:00
Euphy
cbdbda1f0e * Script updates.
- Added Malangdo Card Separation NPC "Richard", who refines weapons and shields.
- Added new "Job Repair" script, which fixes potential errors with job data (RE).
- Marriage script changes:
-- Permanent global variables are now temporary.
-- Added GM NPCs (The King of Midgart, Divorce Staff, Remarry Staff), commented. (bugreport:6795)
- Added some missing [Official Conversion] comments.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-14 02:19:57 -04:00
Euphy
0202126185 * Script updates.
- Added questlog support for Amatsu, Ayothaya, Hugel, Louyang, Lighthalzen, Niflheim, and Rachel quests.
- Updated Turbo Track with Renewal mounts; file split due to an NPC rename.
- Added missing cutins to Rekenber Job Quest.
- Added new "Stone Change" script (RE).
- Added Renewal coordinates to Juno's Airship Representative.
- Added Renewal sprites for Juno Soldiers (8W_SOLDIER -> 4_M_EIN_SOLDIER).
- Added Renewal Izlude Bulletin Board, but disabled unless valid coordinates are found.
- Minor updates to Malangdo Enchants dialogue.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-13 18:24:01 -04:00
Akinari1087
5c157a5ac5 Fix Highness Heal calculation : Fixes bugreport:7966
Map crash fix when casting Kaihou - Fixes bugreport:7962
Update Songs/Dances for Land Protector - Fixes bugreport:7913
Show baseATK increases in status window - Fixes bugreport:7960
Revert damage to int64 - Fixes bugreport:7939
- Also removed limit on Acid Demonstration
Changed Camouflage to increase Equip Attack - Partially fixes bugreport:7941
2013-08-13 16:07:32 -04:00
Euphy
a1adc15147 * Script/DB updates.
- Implemented Bangungot Hospital 2F instance.
- Added mob_skill_db entries for new mobs - Hall of Abyss, Port Malaya, Eclage, Nightmare Pyramids. (credits: Lemongrass)
- Fixed ATK2 column for new mobs. (bugreport:7888)

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-13 02:22:50 -04:00
Euphy
e4e8566b19 * Port Malaya updates.
- Added "Nurse in Port Malaya" quest.
- Added "Pintados Festival" quest.
- Updated all quest_db entries with correct delays and mobs.
- Corrected placeholder VIP checks: when VIP is disabled, the VIP reward is always given.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-11 21:07:19 -04:00
Euphy
94c8a9cee1 * Renewal item database update - 320 items affected.
- Added missing item scripts for hundreds of items.
- Added many new item entries.
- Updated some existing scripts with new changes. (fixes bugreport:7201)
- Uncommented all disabled items.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-08 01:43:41 -04:00
Euphy
13b281b31e * Izlude Arena updates.
- Added new Izlude coordinates and warps. (follow-up 400d0f0)
- Replaced many permanent global variables with mobcount() command.
- Removed some unnecessary global variables and OnInit labels.
- Commented all invalid label executions.
- Brought scripts up to standard with scripting conventions (label naming, spacing, etc.).
- Moved all warps from scripts into warps/ folder.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-07 23:05:07 -04:00
Euphy
32b8d2e713 * Implemented Bakonawa Extermination quest.
* Misc. cleaning.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-07 02:47:45 -04:00
Deadly Silence
7beb7edc77 Minor bug fixes
[npc/cities/geffen.txt]
- fixed bug with Psychic Advisor (bugreport:7928)

[npc/quests/seals/megingard_seal.txt]
- fixed small bug with Librarian where he would spam the NPC dialogue
  because of a misplaced "next"

[npc/re/merchants/enchan_mora.txt]
- fixed bug with wrong enchants (bugreport:7930)
2013-08-06 23:46:24 +02:00
Euphy
400d0f0319 * Restored Izlude Arena into root directory - it should never have been disabled in Renewal. (blame: r16382)
- Note: Renewal updates will follow.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-06 02:58:43 -04:00
Euphy
26036efcb7 * Implemented official kRO Novice Training Grounds (RE) script. (fixes bugreport:7923 and bugreport:7759)
- Added Job Test NPC, "Job Guide Lark".
- iRO's custom features are removed (Eden Teleporter and custom mob spawns).
- NPCs and warps are now duplicated on all new_*_* maps (reason unknown).
- Note: The script will be replaced with Cryptura Academy once the scripts are translated.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-06 02:32:56 -04:00
Akinari1087
e6565c0be2 Add cell copying across instances - Fixes bugreport:7875 2013-08-06 01:20:41 -04:00
Euphy
11860e2e1f * Script updates:
- Added warpers and duplicates for Izlude (izlude_[a-d]) and Prontera Field 8 (prt_fild08[a-d]) maps.
- Updated Eden Group warpers and added new duplicates.
- Changed "Kelitula Academy" to "Cryptura Academy".
- Added a missing OnMyMobDead label in Buwaya Cave instance. (bugreport:7929)
- Added version information to Airport script headers.

* Mob spawn organization:
- Split "City Cleaners" into Pre-Renewal and Renewal directories.
- Restored Thief Bug (Pre-Renewal) vs. Thief Bug Egg (Renewal) spawns.
- Created "Town" spawn files, holding all city spawns not in "City Cleaners" files.
- Added Prontera Training Dummies and Alberta Ship Mouses.
- Moved Jawaii spawns from "fields/" into "towns.txt".
- Moved Brasilis spawns from its own directory into "towns.txt".

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-05 19:42:00 -04:00
Akinari1087
21a0eba6fa Revert some code from 5e3bb8a
Fix SC bonus being applied too late - Fixes bugreport:7942
2013-08-02 11:17:51 -04:00
Akinari1087
7301278987 Some Skill Updates
Updated Axe Boomerange and Power Swing skill ratio formulas - Fixes bugreport:7937
- Updated Power Swing Stun rate
Updated Triangle Shot skill ratio formula - Fixes bugreport:7936
Updated Overbrand skill ratio formulas - Fixes bugreport:7938
Fixed Hundred Spear activating Spear Boomerang twice - Fixes bugreport:7899
Thanks to reineil for all the reports.

Re-added Magic Crasher fix for attack formula - Fixes bugreport:7869

Follow up to 5e3bb8a - Revert changes to attacker card fixing
2013-08-01 12:38:52 -04:00
Akinari1087
1a73141ff8 Fix card damage fixing - Fixes bugreport:7935
Fix GVG and Card reductions for skills that use separate damage calc functions
Removed some unnecessary code causing attack underflow in homunculus - Fixes bugreport:7925
Update Feint Bomb damage formula to 2011 rebalance - Concering bugreport:7912
Update Siren's Voice to 2011 rebalance formulas - Fixes bugreport:7878
2013-08-01 01:28:50 -04:00
Euphy
20153af6e0 * Script updates:
- Added new Renewal warpers for Satan Morroc maps.
- Updated "Succession of the Prince" quest with some new cases, and fixed checkquests.
- Updated portions of Ecology quest in 13.1 quests with new checks and cases.
- Added some missing 'disable_items' commands to 2004 Headgear quests.

* Other changes:
- Changed some strnpcinfo(1) -> strnpcinfo(0) in 13.2 quests. (bugreport:7853)
- Moved Rune Knight Kafra into main Kafras file.
- Revised documentation for 'addrid'. (follow-up 6572a9f)
- 'instance_id()' no longer throws an error upon failure.
- Fixed Desert Twilight/Sandstorm combo. (bugreport:7897, credits: Playtester)

Signed-off-by: Euphy <euphy@rathena.org>
2013-07-27 16:36:00 -04:00
Akinari1087
6572a9fc72 Fix map crash from reloading after an instance is destroyed - Fixes bugreport:7883
Vending immediately fails when it cannot be used - Fixes bugreport:7894
Added script command 'addrid' - Suggestion tid:84892
2013-07-26 03:55:28 -04:00
Euphy
0fba5cb4a1 * Updated Magic Gear rental script and added many new locations.
* Split Geneticist Manuals shop (Renewal only) from main Alchemist shop script, and updated dialogue.
* Moved Izlude Bulletin Board and Signs to Pre-Renewal path.
* Updated Warlock book quest NPC name, and fixed a bug for Baby classes.
* Fixed unittalk displaying messages twice for players. (bugreport:7903)

Signed-off-by: Euphy <euphy@rathena.org>
2013-07-26 01:48:33 -04:00