486 Commits

Author SHA1 Message Date
Inkfish
42987f61ad * Implemented the official version of 'OnTouch' named as 'OnTouch_'.(it can be defined in script_athena.conf)
* Adapted 'map_foreachinarea' to 'map_forsomeinarea' so that it allows you to specify the number of bl you wanna operate on.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14097 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-25 09:38:33 +00:00
Inkfish
137e993d52 Partially revert r14085, NPC names are allowed to be more than 24 character long in Aegis.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14087 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-12 08:57:02 +00:00
zephyrus
115d6a3fd0 - Implemented new packets for rental items (from Jobbie and Natz and fixed by me).
- Rental items now can be moved to storage and cart.
- Autotrade cannot be used when user is dead, and it's not dispelled if user dies to prevent abuse.
- Fixed pc_checkitem to do a proper item check and remove.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-04 21:42:15 +00:00
ultramage
e54bf092d2 Fixed sql char deletion code using a broken pet deletion query (ran very slow, and had a typo in a binary shift operation) (bugreport:3304).
Fixed change r13774 to the code responsible for deciding whether to move 1 extra cell when stopping walking; it had its logic inverted by mistake (bugreport:3312).
Cleaned up the itemlist, cartlist and storagelist gm command code:
- fixed buffer overflows in all three functions (bugreport:456).
- merged all three atcommand functions into a single one; the appropriate behavior is detected from the command's name.
- using the StringBuf class instead of static-size buffers and string operations for more efficient and safe processing.
- using 'jname' (the one without underscores) as the primary item name in the list, and not using the aegis name for cards at all (since it's almost identical).
- fixed forged item details never being displayed due to a missing strcat().
- extended item info (crafted/named items, pet eggs) will now be displayed for storage and cart list as well.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30 09:21:28 +00:00
Paradox924X
c52de2b250 Minor update to atcommand_jailfor and atcommand_char_ban's modif_p var incrementation for minute-based bans/jails.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-23 21:42:16 +00:00
Paradox924X
f93f3b1e33 Changed a few sprintf's that had no format arguments to strcpy's.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13887 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13 05:00:57 +00:00
brianluau
04789654b8 - Added 'font' config in atcommand_athena.conf (bugreport:3123)
- Changed some defaults in src to match defaults in config.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08 16:39:54 +00:00
ultramage
046c8f501f Removed the optional target parameter from atcommand_homshuffle, since the standard #-charcommand mechanism exists for this very purpose (code from r9671).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17 20:36:05 +00:00
skotlex
418f0d9200 - Fixed a bunch of invalid memory access bugs as reported by Valgrind.
- 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://svn.code.sf.net/p/rathena/svn/trunk@13774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15 10:27:05 +00:00
zephyrus
15a8174e29 - Rental items now can be stackable items too.
- 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://svn.code.sf.net/p/rathena/svn/trunk@13761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12 16:47:12 +00:00
sketchyphoenix
67adb599ab (bugreport:2836) A correction of a typographical error with GM command logging.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-31 15:08:57 +00:00
ultramage
0180cacd4e Fixed atcommand_param() using a hardcoded @ symbol, which broke on charcommands and changed atcommand_symbol (bugreport:2918).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-30 10:18:25 +00:00
Sara
b3860fdc01 * Added support for new status change packet, uses new setting display_status_timers in client.conf.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-24 01:56:16 +00:00
zephyrus
7311750f56 - Bugreport #2800 ( Atcommands usables without restriction :S )
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-25 06:04:18 +00:00
sketchyphoenix
23f462ad60 Replaced giving dummy sd gm levels in script commands atcommand and charcommand with a check by internal flag.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-24 01:17:36 +00:00
sketchyphoenix
35dbe82eea * Consolidated is_atcommand() and is_atcommand_sub()
- 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://svn.code.sf.net/p/rathena/svn/trunk@13545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 18:32:43 +00:00
ultramage
c2cc0763d9 Increased variable size for status/skill points to remove the 65k cap (bugreport:1579).
Added sql upgrade script to adjust the appropriate char table columns.
This is an enhancement to r5762.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 19:47:17 +00:00
FlavioJS
ad963e52e6 * Fixed impropper filling of w4 in npc_parsesrcfile when there are less than 4 fields. (bugreport:1063)
* Simplified atcommand_spiritball. (deprecated msg_txt 204 and 205)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-19 16:57:01 +00:00
FlavioJS
29183f62d5 * Follow up to r13485. (bugreport:2741)
- @spiritball creates spiritballs without timer (limited to the array size instead of 500)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-06 18:47:30 +00:00
zephyrus
d4c7aad803 - Implemented new Pet Bonus System. Enjoy!! :D
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 20:06:13 +00:00
ultramage
ee76a93424 Fixed a boolean operator mistake in @memo command, caused by r11625 (bugreport:2681).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20 11:33:57 +00:00
sketchyphoenix
21b7ebe262 Updated script_commands.txt with the book reading command info.
Added/reworded/removed comments to/in/from r13450

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-15 12:31:10 +00:00
sketchyphoenix
feb6e94bf5 #commands used by nonGM players now appear in the chat like normal
rather than being processed and ultimately failed, printing out
	  failed command messages that should be visible to only GMs. (bugreport:2637)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-14 15:18:04 +00:00
sketchyphoenix
7ffc67deaa Corrected a typo in r13444
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-14 13:37:23 +00:00
FlavioJS
e64c3496a8 * Cleaned up command @users/#users:
- displays everything on the target user (self for @users)
- uses a static array instead of a temporary DBMap
- displays percentages with precision of 0.01%
- uses safesnprintf instead of sprintf

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-13 12:53:11 +00:00
sketchyphoenix
753620d68c * #command parsing cleaned up.
- Fixed charname reading problems from r13441 
- Corrected agitend typo to agitend2 (bugreport:2654)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13444 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-12 17:49:10 +00:00
sketchyphoenix
3547890011 bugreport:2637
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13441 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-11 19:07:16 +00:00
sketchyphoenix
800a0366a5 Added @charcommands to return a list of available charcommands (bugreport:2630)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-05 19:10:03 +00:00
ultramage
f9d21826b8 Fixed @mobsearch and @showmobs (bugreport:2481)
- now only search for mobs on the same map as the caller
- now properly distinguish between dead and alive mobs

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13432 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-05 11:13:14 +00:00
sketchyphoenix
77044b9042 Removed a trailing argument left in r13420
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-30 02:13:01 +00:00
sketchyphoenix
590bdb332d * Added missing command #delitem.
* Fixed charcommand behavior where those that can accept a name with no additional parameters 
	  being able to execute under said player's name with the name as a parameter.(bugreport:2601)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-29 04:36:14 +00:00
sketchyphoenix
472769518b Corrected typo in @adjcmdlvl's parameter check.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13419 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-28 23:06:10 +00:00
sketchyphoenix
4a5a9de682 * Charcommands no longer default to self if no target is found.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13413 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-25 21:38:51 +00:00
sketchyphoenix
b9a1343eaa * Added a few missing atcommands.
* 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://svn.code.sf.net/p/rathena/svn/trunk@13409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-23 02:06:21 +00:00
sketchyphoenix
76ff905e03 Removed charcommand code while allowing atcommand code to support its 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://svn.code.sf.net/p/rathena/svn/trunk@13403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-12-18 02:36:01 +00:00
FlavioJS
609da40fd7 * Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-23 02:07:17 +00:00
FlavioJS
7ae74b588b * Hunted down improper uses of va_list variables.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-22 23:54:34 +00:00
FlavioJS
72542d65cc * Hunted down the simpler 64bit pointer truncations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-22 15:44:17 +00:00
ultramage
a8929509cc Small cleanup of r13321/r13322/r13331.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-30 06:32:10 +00:00
Paradox924X
0381279f21 Fixed all overflow checks and made the code a bit cleaner from r13322.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-28 05:45:34 +00:00
Paradox924X
58a0da9e75 Added protection from segfault by int overflow in charcommand heal and fixed a typo in atcommand heal. (Follow-up to r13321)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-24 21:32:59 +00:00
Paradox924X
53264778f7 Added protection from segfault by int overflow in atcommand heal. (bugreport:1886)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-24 21:18:15 +00:00
L0ne_W0lf
de1a2bb0ac Removed a few out of date messages from msg_athena, and updated some others.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-11 22:15:23 +00:00
L0ne_W0lf
331e0a0a15 Enabled WoE SE to be run independently of WoE. Let's see how long it is before something blows up, or Ultramage pulls out his hair while cursing my existence.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-09 17:33:10 +00:00
ultramage
8fcc1c7432 Fixed @cash/@points not handling negative values properly (bugreport:2132)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-28 03:55:21 +00:00
sketchyphoenix
b30900cce1 * Fixed @agjgmlvl bug preventing its use on other players. (bugreport:2124)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13138 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-26 06:10:57 +00:00
zephyrus
c5cc2257d3 - Moving all content of Homunculus code to a proper file Homunculus.c/h
- Update of all project files.

NOTE: All functions on homunculus.c should be renamed i think, to remove all the merc_*.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13122 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24 15:00:26 +00:00
zephyrus
6b6ef43c4b - Removed my barricade implementation. Not required in WoE SE.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13097 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-20 19:40:53 +00:00
ultramage
0a47c29967 Fixed @noks leaking internal buffer contents (bugreport:1528).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-09 15:11:12 +00:00
ultramage
438367ae22 @autoloot and @autolootitem can now be used together for more precise looting (no idea why it was blocked...)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13023 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-31 06:42:14 +00:00