Jump to content

RikuTzy

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by RikuTzy

  1. 	export_constant(DROPEFFECT_NONE);
    	export_constant(DROPEFFECT_CLIENT);
    	export_constant(DROPEFFECT_WHITE_PILLAR);
    	export_constant(DROPEFFECT_BLUE_PILLAR);
    	export_constant(DROPEFFECT_YELLOW_PILLAR);
    	export_constant(DROPEFFECT_PURPLE_PILLAR);
    	export_constant(DROPEFFECT_ORANGE_PILLAR);
    	export_constant(DROPEFFECT_GREEN_PILLAR);
    	export_constant(DROPEFFECT_RED_PILLAR);
    	export_constant(DROPEFFECT_MAX);

    item_db.yml

        Flags:
          DropEffect: PURPLE_PILLAR

    I don't think PINK exist but above I provide some constant for DROPEFFECT.

  2. 1 hour ago, Krampus said:

     

     is there a way to be an item doing this function? example: a Potion.

    item_db.yml:

      - Id: 1234567
        AegisName: MUFFIN_EATER
        Name: Muffin Eater
        Type: Healing
        Weight: 10
        Script: |
         callfunc "Func_Randomizer";

    Function Script:

    function	script	Func_Randomizer	{
    	for([email protected] = 0; [email protected] <= 200; [email protected]++) {
    		[email protected] = rand(bStr, bLuk);
    		[email protected][[email protected] - bStr]++;
    	}
    	for([email protected] = bStr; [email protected] <= bLuk; [email protected]++) {
    		if (rand(100) < 5) // 5% Chances
    			[email protected][[email protected] - bStr] = 100;
    	}
    	for( [email protected] = bStr; [email protected] <= bLuk; [email protected]++ ) {
    		sc_start (SC_STRFOOD + [email protected] - 1), 1200000, [email protected][[email protected] - bStr];
    	}
    	end;
    }

    Credits to Above

    Didn't test, try it for yourself.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.