summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-20- Instancing System (Thanks to Sirius White who did most of the code, with ↵zephyrus1-28/+408
some of my work to implement client side information, some optimizations and bugfixes). Also thanks to contributions from UEAUP team and Orcao. - Fixed a bug on areamobuseskill and changed it to make it as Aegis. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20Fixed a typo in buildin_mobuseskill_subInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19* Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and ↵Inkfish1-0/+75
NPC_INVINCIBLEOFF. (topic:217330) * Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259) * Fixed Butterfly Wings not working during GVG. (bugreport:3264) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-06Fixed a crash due to script's backup state not being stored/restored ↵Inkfish1-6/+6
properly. (follow up to r13846) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13850 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05* Job_Battle_Manual and Battle_Manual can be used simultaneously.Inkfish1-0/+1
* Fixed "sleep" after "attachrid" (a different rid) halts the script.(bugreport:3181) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13846 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05* Fixed turning off a skill needed to meet the requirements. (bugreport:3175)Inkfish1-3/+3
* Skills used through items not having aftercast delay or cast time now don't overwrite the former canact_tick. (topic:220921) * Multiple autoscripts now can trigger at once. * Applied a temp fix for autoscripts crashing server.(bugreport:3154) * Implemented SC_JEXPBOOST (thanks to GMJobbie for the diff). (bugreport:3177) * Implemented SC_IGNOREDEF. (topic:217330) * SC_DEFRATIOATK won't affect boss monsters. (topic:217330) * Fixed skip_teleport_lv1_menu made lv2 skip menu as well. (bugreport:3183) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-25Fixed losing skill list after base change. (bugreport:3106)Inkfish1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15Cleaning/fixing the previous commits a bitultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13775 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15- Fixed a bunch of invalid memory access bugs as reported by Valgrind.skotlex1-2/+4
- Updated unit_stop_walking to not move character an extra cell when it is already half-way there unless flag 0x4 is passed. (bugreport:3078) - Fixed the monster MD_CASTSENSOR code not correctly setting the monster's aggressive state. - Corrected a few compiler warnings - Changed a bit the code for SC_BOSSMAPINFO so it is not so hideously ugly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12- Rental items now can be stackable items too.zephyrus1-12/+24
- Added @font command to test kRO fonts. (Client side requires : Langtype 0 / Hex + Fonts Files on the data folder). - Rental now announces with a maximum time to fix a problem with 1 month or more rentals. - Reduced amount of calculations of Flee on map change (only if required). - More security on Rental items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Clean up for npc timer codeInkfish1-30/+39
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Added check on stackable items to 'checkweight' (bugreport:1569, ↵Inkfish1-11/+14
bugreport:2756, bugreport 2994) [Inkfish] * Fixed flee penalty wasn't applied for battleground and wouldn't be restored on map change [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04* Added the md5() script command. (follow up to r13719)brianluau1-0/+16
- Changed kafra storage password to be stored as md5 hash in #kafra_code$. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Fix 'awake' not working (bugreport:2580)Inkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13717 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02- Fixed some typos in the script command documentation. (bugreport:2547)brianluau1-2/+2
- Fixed a misleading message in the custom Job Changer. (bugreport:682) - Updated some NPC's facing directions. (bugreport:3030) - Added missing newline in some ShowWarning(). (bugreport:2940) - Fixed SC_BOSSMAPINFO time being off by 1 minutes (bugreport:3035) Now, the seconds are rounded up to the next whole minute. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-29- Missing cleanup from the previous BG code removal.zephyrus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-29- Implementing official battleground "emblem" crossed swords icon.zephyrus1-6/+4
- Removing the custom guild packets from Battleground as they are not needed anymore. - Scripts updated. - In this way, you get "battle cursor" over your same team, but that's how official does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-25Added correct packets for the food item creation window.ultramage1-0/+17
Added script command 'cooking' to activate this window and applied it to the 5 cooking kit items. Renamed the cooking quest variable to cooking_q to avoid a naming collision with the new script command. (You need to manually rename all occurences of this variable in your txt-savefile/sql-database if you want to preserve player progress.) The code still relies on the messy skill_produce_mix logic and still uses completely custom equations. To be fixed in a separate commit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-18- Implemented new item and bonuses for Kreiger Von Midgard rewards.zephyrus1-6/+44
* Execute script on skill (bonusautoscript3) * Add effect on skill (bAddEffOnSkill) * Execute skill on skill (bAutoSpellOnSkill) - Fixed some boxes Rental time according to item descriptions. - Implemented SC_ITEMSCRIPT, a status that gives you temporally the effect of an item. Check items 14597 to 14605 if you want to get the idea. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-17- Implemented official battlechat packets (thanks to Pakpil).zephyrus1-0/+53
- Implemented the scoreboard packets (thanks to Pakpil). - Updates to Tierra Valley according to official info. * There are no barricades around each base, barricades are in the middle left path. * There is another graveyard used for the owners of the middle base, with faster spawn (each 20 seconds). * I added a flag respawn in the middle, currently I don't know if this if official or not, but it allows each team recapture the middle base. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-04Small edits to battleground code (bugreport:2816)ultramage1-23/+0
- removed bg_idle_announce setting (could be considered later) - moved crystal protection code to battle_calc_bg_damage - removed mob state 'inmunity' in favor of a script-based solution - removed unneeded 'setmobdata' (fixes collision with mob controller) - added svn:eol-style native for battleground code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13565 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-26- Fixed item Nemesis.zephyrus1-0/+267
- Fixed Tarot Card being used on Emperium. - First Part of BattleGround Implementation (please wait). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-25- Bugreport #2800 ( Atcommands usables without restriction :S )zephyrus1-3/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-24Replaced giving dummy sd gm levels in script commands atcommand and ↵sketchyphoenix1-2/+0
charcommand with a check by internal flag. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 * Consolidated is_atcommand() and is_atcommand_sub()sketchyphoenix1-19/+7
- replaced gmlvl arg with a flag arg for internal/player generated checks. (dummy sds that used this arg are given gm levels) - each command check runs through is_atcommand() and is checked for its origin (internal or player generated) - charcommands are also parsed in this function. - script atcommand/charcommand function calls to is_atcommand() have been updated - also updated some clif/map functions calls to is_atcommand() * charcommands should now log properly with the target of the command included. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23* Made mob_timer_delete check the deletetimer in the mob.FlavioJS1-0/+2
* Added missing delete_timer's every time deletetimer is being set. (except when allocating) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-16Fixed card remover commands not preserving item rental time.ultramage1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-12Applied patch to getitem2/delitem2 to handle charid embedding correctly ↵ultramage1-14/+14
(bugreport:2735). Added missing codepage option for ipban module in login_athena.conf. Converted dbghelpplug project in vs9 directory to vs9 format. Updated effects list doc with new data from 2009/01/21a sakexe. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new item bonus scripts required for battlegrounds.zephyrus1-7/+12
- Battlegrounds items rewards for Tierra Valley and Flavius done (but autoscript rate is suggested - 5%). - Restricted trade/storage/drop for those items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-31* Changes to the script engine:FlavioJS1-176/+202
- new stack datatype script_retinfo for C_RETINFO to hold all the return state info that was being stored in the stack. (the script engine in 64bit-ready now) - pop_stack is responsible for adjusting all the stack pointers. - push_* returns the created script_data. - 'return' only converts to value scope variables of the current scope. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13427 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-30* Changes to the script engine:FlavioJS1-44/+63
- script ends when run_func can't find the buildin command. (script engine error) - run_script_main doesn't change RERUNLINE to RUN automatically, the buildin command that set it is responsible for that now. The buildin command can use this to detect a rerun. - created functions to alloc/free a script_state. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-28- Book reading script command.zephyrus1-0/+19
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13417 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-23 * Added a few missing atcommands.sketchyphoenix1-2/+2
* Added more commands to configurations (bugreport:2565) * Added a missing charcommand symbol config to atcommand configs. * GM command configs under the old format will have a warning printed back to the console as being deprecated. * Other fixes/cleaning partially resolving bugreport:2549 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-18Removed charcommand code while allowing atcommand code to support its ↵sketchyphoenix1-9/+20
functionality. Charcommands still retain their '#' symbol but now looks for a character name as the first parameter instead of last. Atcommand configs now support charcommand level configurations by comma seperation (e.g. 60,99) As a result of this, all atcommands that don't affect multiple users already (@kickall, @doom, @mapexit) are capable of remote usage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-27* Fixed a memory leak when returning a string variable in the script engine. ↵FlavioJS1-5/+0
(since r9864/r9865, fixes bugreport:2488) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-22* Hunted down the simpler 64bit pointer truncations.FlavioJS1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-20Added setting of state.speed_changed in script function 'npcspeed'.ultramage1-5/+8
Should fix the walking npc display problem (bugreport:2434). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-17- Some "expire_time" = 0 considerations. Please update. (Bugreport 2451)zephyrus1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13373 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-16- Item Rental System.zephyrus1-2/+74
Script Usage: - rentitem <itemid>,<seconds>; - rentitem <itemname>,<seconds>; git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-11* Updated script_commands.txtFlavioJS1-45/+95
* Made scripts terminate with an error: (fixes bugreport:2429) - when getitem/getitem2 tries to delete more items than the player has - when trying to set Zeny to a negative number. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13368 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-08Changed how mobcount works since it wasn't counting last mob death. ↵L0ne_W0lf1-1/+2
(bugreport:2419) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06some minor tweaks to previous commitsultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06Fix of accident in 13353Sara1-266/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06* Fixed the maximum level of Create Elemental Converter. (bugreport:2326) [Sara]Sara1-0/+265
* Fixed issue preventing you from changing to the original cart when using Change Cart. (bugreport:2383) [Sara] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13353 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-30Small cleanup of r13332 (bugreport:2368).ultramage1-6/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13337 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-28Made script command "unequip" call status_calc_pc. Thanks to Orcao. ↵Paradox924X1-1/+3
(bugreport:2368). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-08Fixed chat_createnpcchat() not checking if a chatroom already exists, ↵ultramage1-1/+4
producing memleaks in certain situations (bugreport:2325). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-09Enabled WoE SE to be run independently of WoE. Let's see how long it is ↵L0ne_W0lf1-0/+29
before something blows up, or Ultramage pulls out his hair while cursing my existence. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-06- Renamed createmercenary to mercenary_create.zephyrus1-2/+128
- Added other required mercenary script commands for official script. - New Constants entries for this script. - Update to missing configuration on mercenary skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01- More code for mercenaries and starting work on restrictions.zephyrus1-0/+1
* Heal and Sanctuary skills have their effectiveness on mercenaries reduced by 50%. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13183 54d463be-8e91-2dee-dedb-b68131a5f0ec