Jump to content

Angeluz

Members
  • Posts

    103
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Angeluz

  1. Here

    Quote
    
    function	get_GM_Title	{
    		switch ( getarg( 1,0 ) ) {
    			default: .@title$ = "";
    			case 1: .@title$ = "(Super Player)";
    			case 2: .@title$ = "(Support)";
    			case 3: .@title$ = "(Script Manager)";
    			case 4: .@title$ = "(Event Manager)";
    			case 10: .@title$ = "(Law Enforcement)";
    			case 98: .@title$ = "(Developer)";
    			case 99: .@title$ = "(GM)";
    		}
    		
    		return .@title$ + " " +  getarg( 0,"NULL" );
    	}

     

  2. Intenta con algo así

    -	script	poring_walk	-1,{
    	end;
    
    OnInit: 
    	npcspeed 100;
    	initnpctimer;
    	end;
    
    OnTimer4000:
    	getmapxy .@map$, .@x, .@y, BL_NPC;
    	set .@curX, callfunc("rent_aliceXY",.@x,46,61);
    	set .@curY, callfunc("rent_aliceXY",.@y,54,73);
    	npcwalkto .@curX, .@curY;
    	initnpctimer;
    	end;
    }
    
    prontera,153,155,3	duplicate(poring_walk)	Poring#gm	1002
    
    function	script	rent_aliceXY	{
    	set .@CP, getarg(0); // Present position XoY
    	set .@DST, rand(1,5); // Distance to cross
    	if (rand(2)) // Direccion a tomar (izq der arr abj)
    		set .@CP, .@CP + .@DST;
    	else
    		set .@CP, .@CP - .@DST;
    	if (.@CP < getarg(1))
    		set .@CP, .@CP + .@DST; // If the new point is smaller, thats the minimum
    	if (.@CP > getarg(2))
    		set .@CP, .@CP - .@DST; // If the new point is greater, thats the maximum
    	return .@CP;
    }
    

     

    • Love 1
  3. yep i have it ?

    	InsertPetAutoFeeding(9107)
    	InsertEvolutionRecipeLGU(9099, 9108, 23189, 3)
    	InsertEvolutionRecipeLGU(9099, 9108, 7442, 300)
    	InsertEvolutionRecipeLGU(9099, 9108, 724, 50)
    	InsertEvolutionRecipeLGU(9099, 9108, 4340, 1)
    	InsertPetAutoFeeding(9108)

    EDIT:

    I can add autofeed button, but no evolution ?

    image.png.3a65f14da6b4b6c8b4c9f0fb6ee7da0b.png

     

  4. hello, I have problems with the pet evolution UI, when I add the option to evolve to other pets with all the materials, in some pets the option does not appear to me, does anyone know what this could be?

      - Mob: PORING
        TameItem: Unripe_Apple
        EggItem: Poring_Egg
        EquipItem: Backpack
        FoodItem: Apple_Juice
        Fullness: 3
        IntimacyFed: 50
        CaptureRate: 2000
        Script: >
          .@i = getpetinfo(PETINFO_INTIMATE);
          
          if( .@i >= PET_INTIMATE_LOYAL ){
            bonus bLuk,2;
            bonus bCritical,1;
          }
        Evolution:
          - Target: MASTERING
            ItemRequirements:
              - Item: Leaf_Of_Yggdrasil
                Amount: 10
              - Item: Unripe_Apple
                Amount: 3

    image.png.6467795c0eb3810232be88a73de9afb3.png

      - Mob: TEDDY_BEAR
        TameItem: Small_Needle_Kit
        EggItem: Teddy_Bear_Egg
        FoodItem: Cotton_Tufts
        Fullness: 3
        IntimacyFed: 50
        CaptureRate: 2000
        Script: >
          .@i = getpetinfo(PETINFO_INTIMATE);
          
          if( .@i >= PET_INTIMATE_CORDIAL ){
            bonus bMaxSP,150;
          }
        Evolution:
          - Target: XM_TEDDY_BEAR
            ItemRequirements:
              - Item: Small_Needle_Kit
                Amount: 3
              - Item: Cursed_Seal
                Amount: 300
              - Item: Cardinal_Jewel_
                Amount: 50
              - Item: Teddy_Bear_Card
                Amount: 1

    image.png.411ecb4b8a67a5e9efc5a2bdab4fe3ae.png

    Thank you

     

    sorry if this is the wrong section, please move it

  5. Hi, I have the following problem with the getguildname command, at the moment that no member has connected after a reload I get return parameter null

    	mes "Guild name "+getguildname(22)+".";
    	set .@nb, query_sql("select name from guild where guild_id = 22 limit 1",.@guild_name$);
    	if ( .@nb == 0 ) {
    		mes "No existe.";
    		Close;
    	}
    	mes "Guild Name "+.@guild_name$+".";
    	close;

    Image DB

    image.png.74b9640b055926a20fc64cefab10a5a9.png

    Image script

    image.png.fc7d44687197c4b07db0fd6af21ac72e.png

  6. Para los días de la semana usa 

    *gettime(<type>)
    
    This function will return specified information about the current system time.
    
    DT_SECOND - Seconds (of the current minute)
    DT_MINUTE - Minutes (of the current hour)
    DT_HOUR - Hour (of the current day)
    DT_DAYOFWEEK - Week day (constants for MONDAY to SUNDAY are available)
    DT_DAYOFMONTH - Day of the current month
    DT_MONTH - Month (constants for JANUARY to DECEMBER are available)
    DT_YEAR - Year
    DT_DAYOFYEAR - Day of the year
    DT_YYYYMMDD - current date in the form YYYYMMDD
    
    It will only return numbers. If another type is supplied -1 will be returned.
    
        if (gettime(DT_DAYOFWEEK) == SATURDAY) mes "It's a Saturday. I don't work on Saturdays.";

     

     

     

×
×
  • Create New...