summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
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
2012-09-26Fixed bugreport:6720 fixed pvp/gvg mapflag handling by ↵shennetsind1-5/+32
setmapflag/removemapflag script commands git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16805 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-16Follow up r16769, initnpctimer should reset the timer.greenboxal21-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16784 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-13Follow up r16738 MO_ETREMITYFIST renewal behavior.rud0lp201-8/+2
Fixed bugreport:6580 where SC_MANHOLE targets can use items. Fixed bugreport:6636 a typo formula in WL_WHITEIMPRISON. Fixed bugreport:6685 a missing column in skill_cast_db.txt for WL_COMET entry. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-08Fixed bugreport:6428 Fixed behavior issues with script commands replacestr ↵shennetsind1-2/+2
and countstr. Special Thanks to QQfoolsorellina for the extra information git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-06Added new script command 'getrandgroupitem' as a fix for bugreport:5529, db ↵shennetsind1-0/+44
developers will follow up with the replacements shortly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16752 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-03Fixed bugreport:6581 applied balance update to MO_EXTREMITYFIST.rud0lp201-0/+9
Fixed bugreport:6457 where SR_CURSEDCIRCLE is not remove when target dies. Fixed bugreport:6535 updated GN_CRAZY_WEED to its official behavior. Fixed bugreport:6592 added a missing break in Spiral Pierce skillratio at battle.c. Fixed a faulty skillratio formula of GN_CART_TORNADO. Thanks to Lighta git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-22Major cleanup all over the place, made possible by mkbu95's scan-build ↵shennetsind1-4/+4
report he provided us with. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-22Follow up r16636 - Added the two new arguments to the buildin_areawarp_sub ↵kenpachi2k111-1/+1
call in mapwarp script command. (bugreport:6526) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16682 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-18Implemented Renewal Casting System.rud0lp201-8/+2
Fixed bugreport:2018 where CH_PALMSTRIKE deals damage to hidden targets. Fixed bugreport:6473, bugreport:6325 SC_DEADLYINFECT should now spread status ailments properly. Fixed bugreport:5541, bugreport:6179, bugreport:6281 where self buff skill is transfer to targets when doing a combo. Updated AC_VULTURE where in renewal it doesn't show the hit bonus anymore in the status window. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-15Fixed bugreport:6446 credits to flaviojs, special thanks to Lelouch vi ↵shennetsind1-11/+9
Britannia for the dump. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-15` Changed areawarp script command to accept two additional, yet optional, ↵xantara1-22/+52
parameters to allow an area warp to an area (instead of just a specific coordinates). See documentation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-12Fixed bugreport:6459 yet another variable assignment fix, special thanks to ↵shennetsind1-2/+4
joseph for bringing this to our attention. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16625 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-10Fixed bugreport:6451, a ancient bug present r6791 which would cause any ↵shennetsind1-38/+34
non-handled items in (struct item) to possess corrupted memory. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-09Fixed bugreport:6108, getd now works as a parameter for query_sql.xantara1-27/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16612 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-08Fixed replacestrcookiecrumbs1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-07Fixed bugreport:6428 where the count parameter of replacestr didn't allow ↵cookiecrumbs1-3/+34
variable integers injected in the script command. Added script command repairall to easy repair all of the attached character's items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-07Reverted wrong checkre() command optimization (bugreport:6426)daegaladh1-1/+16
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-06Hello World! with this commit trunk will finally be making use of the ↵shennetsind1-11/+293
gorgeous stuff sirius_black last implemented. we want to make sure everything related to this feature is working as intended so for now its being released under a optional define, after the features stability is confirmed the define will be removed along with the previous processings of the feature. By enabling BETA_THREAD_TEST in /src/config/core.h all your mysql logs, query_sql and query_logsql script functions will be handled by a different thread, therefore any slow queries won't have any effect (e.g. slow down) on the game server. Everyone is welcome on helping us test and debug the features, be aware however I DO NOT RECOMMEND YOU TO ENABLE THIS ON PRODUCTION SERVERS AS OF NOW (which is why while we're all testing it still is a optional feature). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-03Fixed bugreport:6402 when a menu supersedes the client's maximum length it ↵shennetsind1-17/+51
is truncated and a warning is displayed on console, special thanks to Vianna for providing us with the proper length. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-03Modified script function 'donpcevent' as requested by Script Developer Euphy,shennetsind1-1/+6
- now returns 1 when successful, 0 when fails. - now shows a debug message on the console when no events are triggered. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-02Fixed bugreport:6032 r15982's variable assignment should be fully functional ↵shennetsind1-38/+20
now. Fixed the bug which prevented stuff such as "for (.@i = 0; .@i < 20; .@i++)" from working. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16555 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-01Added checks for when a homunculus class is invalid when passing through the ↵xantara1-1/+1
hom_class2mapid function. Special thanks to Variant. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-01Fixed bugreport:6378 fixed 'nude' script command so that it may remove costume.shennetsind1-9/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-24Renamed leftovers REMODE to RENEWAL in documentation.xazax-hun1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23Follow up r16471 improved overall feature performance by making the bind ↵shennetsind1-31/+84
list a pointer array, this also allows the system to have a unlimited amount of atcommand bind instances. also fixed a memory leak that'd be caused when npc_do_atcmd_event fails (e.g. when target npc is manually reloaded) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23Fixed bugreport:6297 where Cart can be dispelled by SA_DISPELL and AB_CLEARANCE.rud0lp201-17/+1
Little code optimization from r16478. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23Added checkre() script command, which allows to check if a renewal feature ↵daegaladh1-0/+71
is enabled or not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-22Added the ability to bind atcommands to NPC events (ex: NPCNAME::OnEvent); ↵cookiecrumbs1-0/+105
original version by ToastOfDoom however heavily modified by I enabling command level at the invoking/character (@/#) level and fixes to prevent console errors as well as fixes aimed to ensure compatibility with rAthena. Updated the script_commands.txt documentation with the following script commands: bindatcmd, unbindatcmd and useatcmd. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-21Renamed bUseSPrateSkill to bSkillUseSPrate.kenpachi2k111-1/+2
Added bSkillUseSP. Added documentation for bSkillUseSPrate(bUseSPrateSkill), bSkillUseSP, bSkillCooldown, bSkillFixedCast, bSkillVariableCast, bSkillFixedCast and bVariableCastrate. (bugreport:6193) Fixed Enriched White PotionZs (#12428) and Enrich Celermine Juices (#12437) bonus script. (bugreport:5790) Fixed Mental Sticks (#1654) bonus script. (bugreport:6071) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-14- Added new script command hommutate which changes an Homunculus into an ↵masao871-0/+31
Homunculus S Class. Super special thanks to Xantara for doing the command! - Added 2 new configs to homunc.conf to set the Max. Level for Homunculus and homunculus. - Updated homun_exp.txt table with values from Lvl. 99 to 150 for Homnunculus S. - Updated script_commands.txt with description of the new script command. - Added Homunculus S Quest. bugreport:5641 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16427 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-01Fixed bugreport:5984 rental items exploit which allowed a rental item from ↵shennetsind1-3/+0
never being deleted when used alongside storage has been fixed, blame on r14958 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16361 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-29Implemented new item script bonuses:rud0lp201-0/+3
- bSkillCooldown,n,x; - bSkillFixedCast,n,x; - *bSkillVariableCast,n,x; - bFixedCastrate,x; - *bVariableCastrate,x; *Pending until RE Casting system is fully implemented. ATM bCastrate is used to manipulate variable cast time where it should not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-21Added mercenary and elemental objects support for getmapxy.greenboxal21-0/+21
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16326 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-15Fixed bugreport:5740 var reference was not being restored to call ↵greenboxal21-3/+29
buildin_set on assignment statements. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-14Added support for new carts (requires packetver 20120201 or newer). ↵shennetsind1-1/+4
Super-Ultra-Plus thanks to Fatal Error and Judas. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-12Added new bonus as per kenpachi's request: bonus2 bUseSPrateSkill,n,x; // ↵shennetsind1-52/+51
Reduced increases/reduced the SP consumption of skilln by x%. (supports skill names) e.g. bonus2 bUseSPrateSkill,"AL_BLESSING",50; -> increases AL_BLESSING sp usage by 50% (e.g. if its 50 it goes to 75) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16273 54d463be-8e91-2dee-dedb-b68131a5f0ec