922 Commits

Author SHA1 Message Date
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
0e6e32a833 * Fixed a memory leak when returning a string variable in the script engine. (since r9864/r9865, fixes bugreport:2488)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-27 01:04:14 +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
ae7050eb1a Added setting of state.speed_changed in script function 'npcspeed'.
Should fix the walking npc display problem (bugreport:2434).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-20 20:50:50 +00:00
zephyrus
bd429b5a92 - Some "expire_time" = 0 considerations. Please update. (Bugreport 2451)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13373 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-17 15:43:13 +00:00
zephyrus
c830a56da3 - Item Rental System.
Script Usage:
- rentitem <itemid>,<seconds>;
- rentitem <itemname>,<seconds>;

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-16 16:14:30 +00:00
FlavioJS
f74b445add * Updated script_commands.txt
* 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://svn.code.sf.net/p/rathena/svn/trunk@13368 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-11 04:02:48 +00:00
L0ne_W0lf
cd70b692e7 Changed how mobcount works since it wasn't counting last mob death. (bugreport:2419)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-08 00:33:58 +00:00
ultramage
caa8b3ed2a some minor tweaks to previous commits
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06 06:40:14 +00:00
Sara
61c3fbb337 Fix of accident in 13353
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06 04:46:51 +00:00
Sara
f772c39910 * Fixed the maximum level of Create Elemental Converter. (bugreport:2326) [Sara]
* Fixed issue preventing you from changing to the original cart when using Change Cart. (bugreport:2383) [Sara]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13353 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06 04:30:35 +00:00
ultramage
98ba2dd843 Small cleanup of r13332 (bugreport:2368).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13337 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-30 06:06:28 +00:00
Paradox924X
787268e492 Made script command "unequip" call status_calc_pc. Thanks to Orcao. (bugreport:2368).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-28 05:50:48 +00:00
ultramage
90ad9f3a8c Fixed chat_createnpcchat() not checking if a chatroom already exists, producing memleaks in certain situations (bugreport:2325).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-08 13:15:35 +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
zephyrus
879ada0f6c - Renamed createmercenary to mercenary_create.
- 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://svn.code.sf.net/p/rathena/svn/trunk@13195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-06 15:21:25 +00:00
zephyrus
c562d05efc - More code for mercenaries and starting work on restrictions.
* Heal and Sanctuary skills have their effectiveness on mercenaries reduced by 50%.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01 22:19:18 +00:00
ultramage
cf57c2fc20 Removed hardcoded equip position names from getequipname (bugreport:2156).
Now it's the npc's responsibility to store and display the names.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13171 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01 08:06:46 +00:00
zephyrus
f0439c9f56 - Implemented script commands for mercenary items (mercenary_heal and mercenary_sc_start).
- Fixed a bug crashing server with mercenary.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31 21:05:35 +00:00
zephyrus
5df63da5e7 - Implemented Mercenary Scrolls (item_db)
- There are some little problems, like remaining time going to 0, but you can summon it, make it walk, follow you.
- Feel free to test it.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24 22:45:32 +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
c1fa49b7e6 - New invisible walls system (for WOE SE and Battlegrounds).
- New script commands for this system "setwall" and "delwall"
- Added other scripts commands "changelook" (can be used to try clothes colors, hair styles, headgears, etc without saving this on logout).
- Added getmobdrops to request a list of drop and rate of an specified class.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13101 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-20 20:56:35 +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
420cee95d9 Some cleaning in script.c
- documentation of functions translation of japanese comments
- usage of const char* instead of char* where appropriate
- removal of unused isstr() function

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-15 17:08:52 +00:00
ultramage
dcc2cdb5da Split off mapreg code from script.c
* new mapserver files, mapreg.h, mapreg_txt.c, mapreg_sql.c
 * removed MAPREGSQL from project files / makefiles
 * mapreg storage engine is now fully dependent on the server type
 * added config settings mapreg_txt and mapreg_db to inter config
 * added get_str() function to complement add_str()
 * fixed txt mapreg code allowing too long variable names

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-15 11:14:45 +00:00
ultramage
dac1c2d2df Removed unused guardian hp columns from the guild castles table in main.sql (should have been done in r11915).
Corrected incorrect use of the datetime column in the `login` table (bugreport:1962). Refreshed txt account savefile.
Cleaned up some random minor source code glitches.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-01 07:05:16 +00:00
ultramage
115c5b6896 Removed the mob controller system, now a customization (see topic:194375).
The system consists of
 * script command to spawn a controlled mob
 * script commands to attach npcs to such mobs and manipulate their AI
 * a page of documentation for these commands
 * callbacks at various source code locations that invoke the attached npcs
 * two npc examples

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-31 05:37:40 +00:00
ultramage
aed027a0d4 Small cleanup of script.c
* removed DEBUG_FUNCIN (some tracing code for expression parsing)
 * cleaned up the hashing functions code a bit
 * removed SCRIPT_HASH_PJW since it gives results identical to SCRIPT_HASH_ELF
 * switched the hashing function used to ELF, since on current eathena it gives strictly better results than all others (w.r.t. entry count in buckets whose size is above the expected average)
 - note: ELF behaves very poorly if SCRIPT_HASH_SIZE is changed to 1024, others don't.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-30 13:40:47 +00:00
ultramage
54dc1c0f1a Removed the IRC bot system, now a customization (see topic:194306)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-30 02:24:04 +00:00
ultramage
6c8cf8d611 Replaced occurences of '-1' with the more appropriate 'INVALID_TIMER' value where appropriate.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26 14:22:28 +00:00
sketchyphoenix
263261d9f6 * Moved the mob killmonster flag to a more appropriate area. (bugreport:1795)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-05 07:54:53 +00:00
zephyrus
fc312a5088 - Added support to Cash Shop for script command callshop
- Fixed a bug in OnTouchNPC
- Cleanup in barricade code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-29 15:16:51 +00:00
ultramage
7444eb572c Random assortment of various small corrections and tweaks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-29 06:00:05 +00:00
sketchyphoenix
d218e11636 Added support for killmonster to fire OnMyMobDead optionally.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-22 14:22:08 +00:00
sketchyphoenix
03a1f29549 Forgot to switch function names out from r12873 >_>
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-22 00:39:13 +00:00
sketchyphoenix
1cb87e882f * Modified *killmonsterall to support a new argument that will allow it to kill monsters using the new OnMyMobDead behavior (in order to avoid breaking older scripts) (bugreport:1734)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-22 00:27:30 +00:00
FlavioJS
57cfa2d794 * Extended script command 'set' to return the variable reference (topic:190602).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-21 21:46:24 +00:00
ultramage
06f9538ece Added check to prevent crashing on logmes with no player attached (bugreport:1648).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12815 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-12 09:59:46 +00:00
FlavioJS
625f9f62fd * Added support for skill names to script commands:
- skill, addtoskill, guildskill, getskilllv, getgdskilllv, itemskill, petskillattack, petskillattack2, petskillsupport, skilleffect, npcskilleffect, unitskilluseid, unitskillusepos
- bonus/bonus2/bonus3/bonus4/bonus5 for bonuses bAutoSpell, bSkillAtk, bSkillHeal, bAutoSpellWhenHit, bAddSkillBlow, bCastrate

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-12 09:30:12 +00:00
ultramage
4ffe35e8bd Corrected definition of 'delitem' and 'delitem2', which prevented the optional accountid parameter from working (bugreport:1512).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-08 13:06:08 +00:00
ultramage
9568930e99 Fixed 'soundeffectall' not reading its params correctly, since r10844 (bugreport:1627).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 03:27:38 +00:00
Lupus
51b885b417 crashfix to attach/detach timers
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12748 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-31 07:23:43 +00:00
zephyrus
b37569c083 - Cleanups and a little fix to NPC Sizes (thanks to ultramage).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12745 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-30 12:01:59 +00:00
zephyrus
2da8086509 - Added support for NPC with different sizes (setnpcdisplay).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12744 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-29 13:07:54 +00:00
ultramage
836deebfb9 Fixed a script engine problem where warping away while having a menu window open and talking to an another npc with a menu would produce menu option count mismatch errors (bugreport:1208)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12703 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-12 09:18:24 +00:00
zephyrus
9bfb1ac1be - More scripts fixes.
- Some cleanups to the code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-09 03:12:26 +00:00
zephyrus
31320fcc9d - Added some new items and headgears.
- Changed the way DEF Potion and MDEF potion works to official.
- Cleanups to Barricade Engine. It now can be used in WoE 2.0, i will release optional scripts soon.
- Fixes to @noks. Now if the mob is targeting someone else the protection get lost.
- Added new status effects icons to cash items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08 16:58:57 +00:00
ultramage
62cc01866b Replaced the very ineffective clif_foreachclient() with map_foreachpc() since they essentially do the same thing (bugreport:1174).
Rewrote map_foreachpc() so that its callback function signature now uses a more natural 'sd' instead of a DBKey/void* pair.
Rewrote atcommand_users() to use a single function, instead of depending on two helper functions and global objects.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12683 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 15:08:14 +00:00
Kevin
2eabb3d1f7 Added script function hasquest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 23:11:15 +00:00
toms
c68d9e2a7d * Modified delitem/delitem2 to have the same behaviour as getitem/getitem2 (optional account_id parameter) bugreport:1035
* Modified doc in consequence

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12648 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-25 06:54:53 +00:00