summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-27Introducing Hercules' Map Zone Databaseshennetsind1-26/+30
Click the link for full info~! http://hercules.ws/board/topic/302-introducing-hercules-map-zone-database/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-22Adding itemeffect script commandshennetsind1-0/+39
as per Script Dev Streusel request. Originally 'consumeitem', renamed for we thought the name was misleading (since it didn't consume anything). Merged from rAthena - lemongrass3110 Signed-off-by: shennetsind <ind@henn.et>
2013-03-02Hercules Renewal: skill.cshennetsind1-27/+26
http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-01Hercules Renewal: battle.cshennetsind1-3/+3
http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-02-27Fixed Bug #6527malufett1-2/+4
-Where all NPC don't allow changing of equipments by default and now can be set in 'items.conf'.
2013-02-24Fixed Bug #7092malufett1-1/+1
-Follow up adda8d74c3280ae1e3745591caafd9ce6e81ded7 where 'close2' is not working properly. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-02-24Revert "Fixed Bug #7091"shennetsind1-1/+1
This reverts commit adda8d74c3280ae1e3745591caafd9ce6e81ded7. Signed-off-by: shennetsind <ind@henn.et>
2013-02-24Fixed Bug #7091malufett1-1/+1
-Updated SN_SIGHT to its RE behavior. -Updated RE behavior that deals with NPC dialogs and using items/skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-02-18Improvements all over the placeshennetsind1-7/+8
Committing on the behalf of mkbu95 who is unable to do it himself, he coded it all and sent me the diff. Thanks mkbu95! Signed-off-by: shennetsind <ind@henn.et>
2013-02-16Updating the Headers across source filesshennetsind1-1/+1
And adding missing ones. Signed-off-by: shennetsind <ind@henn.et>
2013-02-14Introducing Git Hashshennetsind1-3/+3
Added 'Git Hash' way to identify where you last updated your working copy (it won't detect your local changes' hash -- intended). Also Implemented HERC_UNKNOWN_VER, a simple way to detect whether get_svn_revision or get_git_hash failed to detect (before you'd need to strncmp for "unknown" or similars) Signed-off-by: shennetsind <ind@henn.et>
2013-02-14Updating equip[] for script.c functionsshennetsind1-1/+1
Script commands relying on equipment slot may now access the 3 following types EQI_COSTUME_HEAD_LOW (11) EQI_COSTUME_HEAD_MID (12) EQI_COSTUME_HEAD_TOP (13) e.g. getequipid(13) returns the item id of the equipped costume head top (if any) Signed-off-by: shennetsind <ind@henn.et>
2013-02-10Merged rAthena ChangesMysteries1-0/+18
- Added checkidle() command that was present in rAthena since r17126 - Documented checkidle() function - More clearly defined variables in eA Job System documentation - Added missing 'stopnpctimer' in custom Cluckers script
2013-02-07Fixing mistake in modified source code headersshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2013-02-05Updating Headers of modified filesshennetsind1-2/+3
Signed-off-by: shennetsind <ind@henn.et>
2013-02-05Fix Bug # 7049malufett1-0/+1
Added new item bonuses bFixedCast, bVariableCast & bFixedCastrate. (see 'doc/item_bonus.txt' for info) Added new conf for max walk path.(Bug Report # 7042) http://hercules.ws/board/tracker/issue-7049-do-we-need-new-bonus/?gopid=16578#entry16578
2013-02-01Fixed Bug #5343shennetsind1-19/+15
SECURE_NPCTIMEOUT should be fully functional now, fixed remaining known issues. http://hercules.ws/board/tracker/issue-5343-delete-timer-error/ Signed-off-by: shennetsind <ind@henn.et>
2013-01-16* Documented @set command from r16123.euphyy1-1/+1
* Fixed a waitingroom bug in Wizard job quest (bugreport:7189). * Fixed getequipname() returning -1 instead of an empty string (bugreport:7186). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-12Change GC_VENOMIMPRESS to 10 cells.(bugreport:6419)rud0lp201-0/+5
Fixed bugreport:6503 where SR_GT_REVITALIZE causes glitch display in stat window. Change WM_LULLABY_DEEPSLEEP to self targeted skill.(bugreport:6579) Fixed bugreport:6642 where SR_CURSEDCIRCLE effect is not remove after casting AL_WARP. Change SO_ARULLO to ground targeted skill.(bugreport:6842) Fixed bugreport:7165 where 'npcwalkto' script command is not working properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-05* Follow up r17065markzd1-1/+1
1. Removed some unnecessary checks.(bugreport:7078) 2. Fixed some index's which would access an invalid array position, crashing the server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-03- Fixed an warning of type casting. (bugreport:7081)markzd1-1/+1
- Removed an unecessary type cast before atoi. - Fixed Ray of Genesis Attack Formula. (bugreport:7053) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-30* Follow up r17065markzd1-6/+0
Fixed some error when creating vars and some warnings.(bugreport:7074) * Removed an undisered warning on script's sscanf. (bugreport:7059) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17066 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-30-Harmonize skillid, skill_num, skillnum, skill, to skill_id and same for ↵glighta1-78/+83
skill_lv -Optimise type from int to int16 in order to reduce ram consumtion. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17065 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-28* Added a small portion of official Malangdo Episode scripts.euphyy1-1/+4
* Updated quest_db with translated Malangdo entries. * Fixed strmobinfo() to output empty strings for 'name' instead of zeros (partly follow-up r17055). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-27> Follow-up r17048:euphyy1-6/+6
- Renamed 'useskilltopc' to 'npcskill'; - Removed cast time from NPC objects, code by mkbu95 (suspected official behavior); - Documented 'npcskill'; - Replaced all instances in scripts. * Fixed max level bypass, code by malufett (bugreport:5800). * Updated Malangdo spawns to official. * Some standardization of npc/quests/first_class/. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17049 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-27* Implemented `useskilltopc' (tid:74685), and now if desired npcs can carry ↵momacabu1-6/+54
status such as str, atk, def, etc and level. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-24* Added missing check for riding wug in checkwug. Thanks to PcPocket!momacabu1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17041 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-23* Documented @refreshall (r17035), @breakguild, @hommutate (r17038).euphyy1-1/+1
* Follow-up r16972, fixed a naming mistake (bugreport:7038). * Edited format of default grf-files.txt. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-23* Implemented @breakguild (tid:75159) and @hommutate (tid:74651).momacabu1-2/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17038 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-23Dammit! The last commit wasn't supposed to be sent -_-momacabu1-1/+1
* Use SCRIPT_MAX_ARRAYSIZE instead of hardcoded values in explode (bugreport:7037). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17037 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05- Re-committed r16986 (pid:161281).glighta1-2/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05- Re-committed r16971/trunk/src/ (tid:74924).momacabu1-1/+42
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05- Undid r16968: SVN Replaced with source:/trunk/src/@16966 (tid:74924).brianluau1-13215/+13048
[16969:16991/trunk/src/] will be re-committed in the next 24 hours. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-30- Minor tweak in @jobchange, it will now read msg_athena.conf job names;momacabu1-2/+5
- Fixed warning in cleanmap command (follow up to r16971). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16986 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-27Applied suggestion in tid:74775. Added script command cleanmap and cleanarea ↵momacabu1-1/+42
script commands. Also modified @cleanmap to properly clean the entire map and added @cleanarea to clean an specified area. A documentation will be done in shortly. Automagically copy files from import-tmpl to import folder on Windows after building the project (only works with rAthena-10 and rAthena-12) (tid:74635). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-25Applied AStyle code formating as discussed on tid:74602.greenboxal21-13048/+13171
Removed /SAFESEH option from MSVC11 projects. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-24-Fix bugreport:6751 allow noseige to be casted while under status.glighta1-12/+12
-Upd athena-start, save pid to not kill all other process with same name (annoying when multiple server) -Harmonize setmapflag and @mapflag, flag value is always an int, and could be superior to 1 for some mapflag -Fix bugreport:6923 for Windows -Upd @zeny to remove rest of zeny if not enough money as requested git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-24Follow up to r16957 to fix an error with getcharip.cookiecrumbs1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-24Implemented script command getcharip (tid:69646)cookiecrumbs1-0/+46
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-23-Apply mkdu95 fix for bugreport:5145 preventing clone if player dead, (for ↵glighta1-9/+8
slave and evil clone) -Fix old fread, fgets warnings, displaying a msg errors when failed now -Cleaning checkweight debug showinfo git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-23- Temporary fix for bugreport:1023, where various 'next' buttons would pop ↵momacabu1-13/+32
--for now let's display everything in one single "page"; - Fixed something related to bugreport:1900 (but not only); added a new flag to status_change_clear to include some status as SC_WEIGHT50, SC_PUSH_CART, which shouldn't be removed by sc_end script command. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16948 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-22-Adding checkweight2 and upgrading chekweight to read list of item tid:59194.glighta1-354/+434
Check npt_chekweight for exemple of usage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-20Console clean up, dropped quite a few pointless messages and modified others ↵shennetsind1-10/+11
to only be displayed when relevant (e.g. you dont need to know you have only 1 subnetwork) Improved the debugging of scripts when an amount greater than supported of arguments is used. Follow up r16935 -- commit missed the script.c part of it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12-Add/upd basic documentation for script.cglighta1-425/+485
-Fix some indentation and strange codestyle change to A-Style git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12-Add Homon-S skills, 1st implementation (all done except Eleanors)glighta1-415/+415
--Upd Skill conf to set land-limit for homonculus by default (ground skill limit) --Mv MH_HEILIGE_STANGE and MH_ANGRIFFS_MODUS skill from Eleanor to Bayeri -Enforce all zeny transaction to use pc_payzeny and pc_getzeny handlers, (auto log and clif) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-11- Fixed bugreport:6252. Setting variables in script e.g. "set .@var, 08;" ↵momacabu1-0/+1
wasn't working properly due to octal base conversion issue. Special thanks to Ind and GreenBox. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16907 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-10- Modified *monster and *areamonster script commands to allow size and ai ↵momacabu1-42/+80
parameters. -- Event parameter now no longer works as size & ai replacement. -- If not defined, it'll assume the default size (0 = medium) and default ai (0 = none). - Changed all hardcoded AI states to recently created enum. Please test, if you find any bugs, report on our Bug Tracker. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16904 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-10Removed include lock.h from script.cmomacabu1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-07Fixed various quest-related script commands - including: setquest, ↵cookiecrumbs1-5/+11
erasequest, completequest, checkquest - to fix crashes caused of null pointers (sd). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16866 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-29-Add some src basic documentation.glighta1-171/+171
-Change some remaining -1 for status ending timer. -Move some hardcoded msg in msg_athena -Small optimisation on battle_attr_fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16835 54d463be-8e91-2dee-dedb-b68131a5f0ec