Jump to content
  • 0

###### SC_ANTIFROST


Question

Posted

can anyone create this status effect.. uhmm.. item_bonus

sc_start sc_antifrost,1800000,10;

when you insert the script to POTION item

there a status icon in right side .. and you cant frost until the duration ends



TIA rathena <3

3 answers to this question

Recommended Posts

Posted · Hidden by Emistry, October 16, 2014 - Merged + Hidden duplicated contents.
Hidden by Emistry, October 16, 2014 - Merged + Hidden duplicated contents.

anyone can create this mod ??

sc_start sc_antifrost,18000,10;


when you inserted in items .. like POTION

theres a icon in right of your screen..

and you cannot be frosted by StormGust FROST driver Frost joker until the duration of status ends

TIA RATHENA

​SORRY FOR MY ENGLISH


remove this topic.. duplicated sorry

Posted

you can add SC_WARMER and modif it, in status.c if you want..

for exp:

	case SC_DEEPSLEEP:
	case SC_SLEEP:
	case SC_STUN:
	case SC_FREEZING:
	case SC_CRYSTALIZE:
		if (sc->opt1)
			return 0; // Cannot override other opt1 status changes. [Skotlex]
		if((type == SC_FREEZE || type == SC_FREEZING || type == SC_CRYSTALIZE) && sc->data[SC_WARMER])
			return 0; // Immune to Frozen and Freezing status if under Warmer status. [Jobbie]
	break;

///////////////////////////////
	case SC_WARMER:
		status_change_end(bl, SC_CRYSTALIZE, INVALID_TIMER);
		status_change_end(bl, SC_FREEZING, INVALID_TIMER);
		status_change_end(bl, SC_FREEZE, INVALID_TIMER);
		break;
add this:

StatusIconChangeTable[SC_ANTIFROST] = SI_ANTIFROST; //in line statusiconchangetable

	case SC_DEEPSLEEP:
	case SC_SLEEP:
	case SC_STUN:
	case SC_FREEZING:
	case SC_CRYSTALIZE:
		if (sc->opt1)
			return 0; // Cannot override other opt1 status changes. [Skotlex]
		if((type == SC_FREEZE || type == SC_FREEZING || type == SC_CRYSTALIZE) && sc->data[SC_WARMER])
			return 0; // Immune to Frozen and Freezing status if under Warmer status. [Jobbie]
		if((type == SC_FREEZE) && sc->data[SC_ANTIFROST])
			return 0; // Immune to Frozen only. [T3quila]
	break;

///////////////////////////////
	case SC_WARMER:
		status_change_end(bl, SC_CRYSTALIZE, INVALID_TIMER);
		status_change_end(bl, SC_FREEZING, INVALID_TIMER);
		status_change_end(bl, SC_FREEZE, INVALID_TIMER);
		break;
	case SC_ANTIFROST:
		status_change_end(bl, SC_FREEZE, INVALID_TIMER);
		break;
dont forget to add SC_ANTIFROST and SI_ANTIFROST to status.h and const.txt, dont forget for recompile your server, and add your stateicon folder .lua/lub in your client.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...