From 73169ee3002dc038f8556c74df250f6fbc029f1f Mon Sep 17 00:00:00 2001 From: Sirius Date: Sun, 26 May 2013 02:53:06 -0700 Subject: * Poring War: Added missing barrier resets [Euphy's rAthena fix based on my report] * Added support for Baby Novices in the Novice's Quest Skills * Hotfix for the Blacksmith Rank bugreport: http://hercules.ws/board/tracker/issue-7288-max-refine-blacksmith-rank/ * Added duplicates from pre-re Mage Quest required in Sage Quest Skill. --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index 9a123705b..c1b3cbf70 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7272,7 +7272,7 @@ BUILDIN(successrefitem) clif->additem(sd,i,1,0); pc_equipitem(sd,i,ep); clif->misceffect(&sd->bl,3); - if(sd->status.inventory[i].refine == MAX_REFINE && + if(sd->status.inventory[i].refine == 10 && sd->status.inventory[i].card[0] == CARD0_FORGE && sd->status.char_id == (int)MakeDWord(sd->status.inventory[i].card[2],sd->status.inventory[i].card[3]) ){ // Fame point system [DracoRPG] -- cgit v1.2.3-70-g09d2 From f1936fb677d1b86164b455c67e539db15eb92d31 Mon Sep 17 00:00:00 2001 From: CairoLee Date: Thu, 30 May 2013 20:40:56 +0800 Subject: - Merge checkhomcall Script Command from rAthena --- doc/script_commands.txt | 13 +++++++++++++ src/map/script.c | 26 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) (limited to 'src') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 5fbf652a4..26801c07c 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5636,6 +5636,19 @@ IDs. Returns 1 upon success and 0 for all failures. +--------------------------------------- + +*checkhomcall() + +This function checks if the attached player's Homunculus is active, +and will return the following values: + -1: The player has no Homunculus. + 0: The player's Homunculus is active. + 1: The player's Homunculus is vaporized. + 2: The player's Homunculus is in morph state. + +--------------------------------------- + *gethominfo() This function works as a direct counterpart of 'getpetinfo': diff --git a/src/map/script.c b/src/map/script.c index 9a123705b..7e15b3372 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9795,6 +9795,31 @@ BUILDIN(homunculus_shuffle) { return true; } +/*========================================== + * Check for homunculus state. + * Return: -1 = No homunculus + * 0 = Homunculus is active + * 1 = Homunculus is vaporized (rest) + * 2 = Homunculus is in morph state + *------------------------------------------*/ +BUILDIN(checkhomcall) +{ + TBL_PC *sd = script_rid2sd(st); + TBL_HOM *hd; + + if( sd == NULL ) + return false; + + hd = sd->hd; + + if( !hd ) + script_pushint(st, -1); + else + script_pushint(st, hd->homunculus.vaporize); + + return true; +} + //These two functions bring the eA MAPID_* class functionality to scripts. BUILDIN(eaclass) { @@ -17401,6 +17426,7 @@ void script_parse_builtin(void) { BUILDIN_DEF2(homunculus_evolution,"homevolution",""), //[orn] BUILDIN_DEF2(homunculus_mutate,"hommutate","?"), BUILDIN_DEF2(homunculus_shuffle,"homshuffle",""), //[Zephyrus] + BUILDIN_DEF(checkhomcall,""), BUILDIN_DEF(eaclass,"?"), //[Skotlex] BUILDIN_DEF(roclass,"i?"), //[Skotlex] BUILDIN_DEF(checkvending,"?"), -- cgit v1.2.3-70-g09d2