From 9aff15a57af029d3ec66fa9a038cdb4ba265ce3e Mon Sep 17 00:00:00 2001 From: zephyrus Date: Wed, 3 Oct 2007 21:47:47 +0000 Subject: * 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 --- src/map/script.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/map/script.c') 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) { -- cgit v1.2.3-60-g2f50