summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2015-12-20Fix the *getcharipAnnieRuru1-6/+13
-> it uses the dirties method to search for player -> seriously ? why have to search account_id AND char_id ? -> if the char_id gone big enough, it can reach to account_id
2015-12-20Fix certain script command report source npc twice if player not attachedAnnieRuru1-146/+136
Signed-off-by: Haru <haru@dotalux.com>
2015-12-20Change map->nick2sd into script>nick2sdAnnieRuru1-47/+46
- *getcharid and *getmapxy is exempted to check the condition Signed-off-by: Haru <haru@dotalux.com>
2015-12-20Change map->charid2sd into script->charid2sdAnnieRuru1-12/+11
- *charid2rid is exempted to check the condition Signed-off-by: Haru <haru@dotalux.com>
2015-12-20Change map->id2sd into script->id2sdAnnieRuru1-37/+33
- these 4 commands are exempted, because they are meant to check the condition: *playerattached, *attachrid, *isloggedin, *sleep2 Signed-off-by: Haru <haru@dotalux.com>
2015-12-20Add script->id2sd function to throw error properly if player not foundAnnieRuru2-0/+36
- included script->charid2sd and script->nick2sd
2015-12-19Corrected a typo in the Renewal cardfix calculationHaru1-3/+3
- If you name your variabled cardfix_ and cardfix, don't complain if you get confused... - Since 210c963d Signed-off-by: Haru <haru@dotalux.com>
2015-12-18Add *getunittype and update *getmapxyAnnieRuru1-26/+91
- unlike rathena, hercules' getunittype use the value from getmapxy - getmapxy now can search object position using GID Closes #871 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-17Added 8 Official kRO & jRO Costumes supported up to 2015-05-13aRagexe.Jedzkie2-12/+78
Change the AegisName of Music Decoration to its official name. Update Status Change ID's. (Thanks to Rytech) Note: • Some of the costumes items are missing or not implemented on this commit, but this is their official SC's. • SC's that don't have costume items: - SC_FLOWERSMOKE - SC_HAPPINESS_STAR - SC_MAGICAL_FEATHER
2015-12-17Removal of SC_ITEMSCRIPT.Jedzkie2-58/+2
2015-12-17Implement official effect of MVP ScrollsJedzkie4-12/+53
- Ghostring Scroll - Phreeoni Scroll - Tao Gunka Scroll - Mistress Scroll - Orc Hero Scroll - Orc Lord Scroll (thanks to Dastgir) Note: in Aegis, the reflect damage from Orc Lord Scroll is in the user not in the attacker, but in this commit, the attacker receives the reflect damage. - Added New Cash Boxes * Tao Gunka Scroll Box * Mistress Scroll Box Signed-off-by: Haru <haru@dotalux.com>
2015-12-17Change all chat mute checks to use pc->can_talk instead of direct check.hemagx6-25/+18
Put new macro pc_ismuted and change all other kind of mutes to use it Closes #937 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-17Add bAddMaxWeight bonus for increasing player's max weightAnnieRuru2-1/+5
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru82-313/+1636
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added GPL information on interactive server startupHaru1-0/+2
2015-12-15Fix Dialog being cleaned after timeout on secure npc timeout enabled.hemagx1-1/+0
Closes #916
2015-12-15Fixed some too long char buffer initializers.Florian Wilkemeyer2-11/+15
- While they don't really cause an overflow (in C), there's no point in initializing strings to "\0". - Original commit message was: Found some static-assignment overflows -> fixed. Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_unknown_objectHaru2-2/+19
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_mobHaru2-2/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_functionHaru2-4/+27
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_duplicateHaru2-9/+38
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_scriptHaru3-8/+34
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_shopHaru2-6/+19
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_warpHaru2-3/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_mapflagHaru2-9/+37
- This is necessary before merging #960 Signed-off-by: Haru <haru@dotalux.com>
2015-12-14Added official effect of Mora Berry.Jedzkie5-12/+33
Signed-off-by: Haru <haru@dotalux.com>
2015-12-14follow up f975f0a55ca930fd0f95a6209bea479ac9bc3a5dhemagx1-1/+1
2015-12-14Players now will auto warped to random spot in the map upon login in-case ↵hemagx1-0/+3
they're stuck in dead cell. Closes #802
2015-12-13Fix SC_STOMACHACHE to its official behavior.Jedzkie1-6/+6
2015-12-13ItemDB Updates:Jedzkie4-2/+9
- Added 'Malang Cat Can' item. - Added 'Ru Blue Spear' item. - Change the item id of 'RWC Silver Brooch' from 2998 to 2999. - Follow up https://github.com/HerculesWS/Hercules/commit/e511dcf5940cee7a6e43744543a5ca96bc23cf84, thanks to zackdreaver. - item_db.conf renewal minor clean-up xD
2015-12-13Fixed an issue in the bonus2 bAddMonsterDropChainItem implementationHaru1-3/+3
- The item_chain and race arguments were swapped. - Thanks to pengc2010 for pointing it out Signed-off-by: Haru <haru@dotalux.com>
2015-12-13Corrected an error in bonus3 bAddMonsterDropItemHaru1-1/+1
- Follow-up to 9fef13d4d2e0eab3376ea95b3cb8783d48d19dda - Thanks to pengc2010 for pointing it out Signed-off-by: Haru <haru@dotalux.com>
2015-12-13Fix double source script warning in-case of invalid battle config flag requestedhemagx1-1/+0
2015-12-13- Fixed #723 now it's possible to retrieve Battle Config Settings from ↵Your Name3-9/+29
plugins into scripts - Fixed Possible Crash when null parse function pointer passed to HPMi->addConf - Now it's possible to use same parse function for all config entries - Now Battle Config entries must have a return function
2015-12-11Fix guild member position check.Andrei Karas1-1/+1
2015-12-10Fix SPTable going low for MAX_LEVELDastgir1-2/+2
2015-12-10Fix guild position check.Andrei Karas1-1/+1
2015-12-10Change the sequence of Status ID's according to its number. Minor clean-up.Jedzkie1-152/+160
2015-12-10Rename 'ITEMIDBATTLE_MANUAL100' to 'ITEMID_BATTLE_MANUAL100'.Jedzkie2-2/+2
2015-12-09Fixed a nullpo check failure in log_chatHaru1-6/+51
- Thanks to Michieru Signed-off-by: Haru <haru@dotalux.com>
2015-12-06Fixed a validation issue in the NPC Sell ListHaru1-5/+13
Signed-off-by: Haru <haru@dotalux.com>
2015-12-06Added backtrace in case an invalid race is passed to map_race_id2maskHaru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-12-06Fixed issues with compound races in bonuses where they're handled as arraysHaru1-323/+203
- Corrected handling of RC_ALL in: * bAddRace * bSubRace * bMagicAddRace * bWeaponComaRace * bCriticalAddRace * bExpAddRace * bSPGainRace * bHPDrainValueRace * bSPDrainValueRace * bSPGainRaceAttack * bHPGainRaceAttack * bRaceTolerance * bHPDrainRateRace * bSPDrainRateRace * bSetDefRace * bSetMDefRace - Corrected out of bound array accesses (memory corruption) in: * bIgnoreMdefRate * bIgnoreDefRate Signed-off-by: Haru <haru@dotalux.com>
2015-12-06Replaced RC_BOSS/RC_NONBOSS bitmask combinations with RC_ALL bitmasksHaru1-25/+32
- Sources only Signed-off-by: Haru <haru@dotalux.com>
2015-12-06Refactored/fixed race handling for bonuses that store it as a bitmaskHaru5-101/+153
- The following bonuses now work correctly with RC_DemiPlayer, RC_NonDemiPlayer, RC_NonDemiHuman, RC_Nonplayer: * bIgnoreDefRace * bIgnoreMdefRace * bDefRatioAtkRace * bAddMonsterDropChainItem (bonus3) * bAddMonsterDropItem (bonus3) - A new function (map->race_id2mask) is provided, to easily and efficiently generate a bitmask from a race ID. - The RC_ALL race ID is mapped to RC_BOSS and RC_NONBOSS, for backwards compatibility. Signed-off-by: Haru <haru@dotalux.com>
2015-12-05Removed some unnecessary assertionsHaru3-9/+16
- Follow-up to 81e0257 Signed-off-by: Haru <haru@dotalux.com>
2015-12-05Fixed a client crash when a MVP Tombstone is createdHaru1-7/+1
- Follow-up to 57f09704 - Fixes #901, thanks to zackdreaver Signed-off-by: Haru <haru@dotalux.com>
2015-12-04Add missing check to mail.cAndrei Karas1-0/+6
2015-12-04Add missing check to log.cAndrei Karas1-0/+32
2015-12-04Add missing checks into itemdb.cAndrei Karas1-2/+30