Jump to content

Orce

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Orce

  1. -	script	pvpheal	-1,{
     
    OnPCKillEvent:
    	if(strcharinfo(3) == "guild_01" || strcharinfo(3) == "guild_02")
    	{
    		percentheal 100,100;
    		dispbottom "HP/SP totalmente restaurado.";
    
    		switch(rand(1,10))
    		{
    		  case 1:
    			 skilleffect 383,0; sc_start SC_WINDWALK,370000,5;
    			 dispbottom "skill x";
    			 break;
    		  case 2:
    			 skilleffect 33,0; sc_start SC_ANGELUS,300000,10;
    			 dispbottom "skill x";
    			 break;
    		  case 3:
    			 skilleffect 74,0; sc_start SC_MAGNIFICAT,90000,5;
    			 dispbottom "skill x";
    			 break;
    		  case 4:
    			 skilleffect 75,0; sc_start SC_GLORIA,30000,5;
    			 dispbottom "skill x";
    			 break;
    		  case 5:
    			 skilleffect 66,0; sc_start SC_IMPOSITIO,60000,5;
    			 dispbottom "skill x";
    			 break;
    		  case 6:
    			 skilleffect 34,0; sc_start SC_BLESSING,240000,10;
    			 dispbottom "skill x";
    			 break;
    		  case 7:
    			 skilleffect 29,0; sc_start SC_INCREASEAGI,240000,10;
    			 dispbottom "skill x";
    			 break;
    		  case 8:
    			 skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3;
    			 dispbottom "skill x";
    			 break;
    		  case 9:
    			 skilleffect 361,0; sc_start SC_ASSUMPTIO,100000,5;
    			 dispbottom "skill x";
    			 break;
    		  case 10:
    			 skilleffect 73,0; sc_start SC_KYRIE,120000,10;
    			 dispbottom "skill x";
    			 break;
    		}
    	}
    	end;
    }

    Só uma otimização.

    • Upvote 1
  2. On 3/2/2020 at 7:41 AM, marinho said:

    Não consigo alterar o arquivo .lub de forma alguma, vi varias formas de converter de lub para lua na internet mas todas resultaram em um arquivo vazio

    Normalmente este .lub pode vir cryptografado e uma.maneira de abrir ele e converter ele sem erro e já com as tabula oes corretas e usando o programa grf editor. Aqui no fórum mesmo vc encontra ele.

    On 3/3/2020 at 12:39 AM, Hyroshima said:

    é só abrir ele com um editor de texto, geralmente todas as pasta data base que tem pra montar cliente vem com eles .lub mas não ta convertida está com o seu conteúdo em texto normal.

    signboardlist.lub 26.22 kB · 24 downloads

    No caso dele está cryptografado então no editor de texto não vai adiantar. 

    @all

    Uma dica de editor de texto eficiente é o Notepad++

  3. Well, Pajodex, creating a custom table is the best solution I even did it but I wanted to avoid querying the table or updating any changes that need to be made.

    This tip of yours already satisfied me. I'm going to use it and thanks a lot for the help.

  4. how to arrange the result of an array in ascending or descending form?

    I have an NPC that counts the time the clan is holding the castle and I play this time in an array:

    $rank(getcastledata($Castles$[.@e],1)),.@time;

    now I want to organize by ex in a WoE rank, get the results by array for example: $rank(getcastledata($Castles$[.@e],1)) and organize from highest to lowest.

    the variable is saved with the name of $ran the index is the cla id and the value is the time.

    I can print the results but I want him to put in descending order the result of the value column.

     

    thks.

×
×
  • Create New...