diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-03 21:47:47 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-03 21:47:47 +0000 |
commit | 9aff15a57af029d3ec66fa9a038cdb4ba265ce3e (patch) | |
tree | f044ec66c090d7397703498a5aff3d13507da5ad /src/map/script.c | |
parent | b61a1f62f63da6ff26f8913bc58573e480ac436b (diff) | |
download | hercules-9aff15a57af029d3ec66fa9a038cdb4ba265ce3e.tar.gz hercules-9aff15a57af029d3ec66fa9a038cdb4ba265ce3e.tar.bz2 hercules-9aff15a57af029d3ec66fa9a038cdb4ba265ce3e.tar.xz hercules-9aff15a57af029d3ec66fa9a038cdb4ba265ce3e.zip |
* Moved the homunculus shuffle code to mercenary.c, fixing the bug in the atcommand not using the bonus evolution stats for homunculus.
* Added a new script command "homshuffle" to reset the homunculus stats using NPC.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11350 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 306076fc4..fc2d75eee 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4022,6 +4022,7 @@ BUILDIN_FUNC(awake); BUILDIN_FUNC(getvariableofnpc); BUILDIN_FUNC(warpportal); BUILDIN_FUNC(homunculus_evolution) ; //[orn] +BUILDIN_FUNC(homunculus_shuffle); // [Zephyrus] BUILDIN_FUNC(eaclass); BUILDIN_FUNC(roclass); BUILDIN_FUNC(setitemscript); @@ -4364,6 +4365,7 @@ struct script_function buildin_func[] = { BUILDIN_DEF(getvariableofnpc,"rs"), BUILDIN_DEF(warpportal,"iisii"), BUILDIN_DEF2(homunculus_evolution,"homevolution",""), //[orn] + BUILDIN_DEF2(homunculus_shuffle,"homshuffle",""), //[Zephyrus] BUILDIN_DEF(eaclass,"*"), //[Skotlex] BUILDIN_DEF(roclass,"i*"), //[Skotlex] BUILDIN_DEF(checkvending,"*"), @@ -8744,6 +8746,17 @@ BUILDIN_FUNC(homunculus_evolution) return 0; } +// [Zephyrus] +BUILDIN_FUNC(homunculus_shuffle) +{ + TBL_PC *sd; + sd=script_rid2sd(st); + if(merc_is_hom_active(sd->hd)) + merc_hom_shuffle(sd->hd); + + return 0; +} + //These two functions bring the eA MAPID_* class functionality to scripts. BUILDIN_FUNC(eaclass) { |