Jump to content

whitesn

Members
  • Posts

    193
  • Joined

  • Last visited

Posts posted by whitesn

  1. This would be more better if you could add Donations and Vote 4 Point box in those sgcp and will be more better and better if someone or pple who want to see what is donation item must be logged in first.. ^^

    Uhh I actually don't really focused on the plugins, I'm focusing on the design right now (I'm learning HTML,PHP,CSS) and probably jQuery soon :D

    Thanks for your feedback

  2. Oh I thought you want it to Auto Play? It will autoplay BGM's on @reloadscript or Server Start every 5 minute.

    For AutoPlay on GM Click

    Note: After a GM Account click the NPC, it will automatically start the BGM on prontera. Then it will loop forever (after 578 it will go back to 573).

    -	script	autodj	-,{
    if(getgmlevel() == 0) end;
    if (.bgmstart == 1) end;
    set .start$[0],"573","574","575","576","577","578"; //You can add more song here
    set .bgmstart,1;	
            do {
    		for (set .i,0; .i <= getarraysize(.start$); set .i,.i+1);
    		playBGMall .start$[.i],"prontera";
    		sleep 300000; //5 Minute Delay
    		}
    	} while(true);
    }
  3. -	script	MVPTrigger	-,{
            //Configuration
            set .bossid,1002; //Set it to the Monster ID of the boss  | 1002 = Poring
            set .reward,607;  //Set it to the Item ID's of the Reward | 607  = Yggdrasilberry
            set .amt,5;       //Set it to the amount of the reward
    
    	OnNPCKillEvent:
            if(killedrid == .bossid) getitem .reward,.amt;
    	end;
    }
    
    Btw I'm not sure if it's the last hitter who get the item or it will still be the usual (max damage). You might

    have to do some src modifications

  4. Assuming those are correct files

    
    

    - script autodj -,{

    OnInit:

    set .start$[0],"573","574","575","576","577","578"; //You can add more song here

    do {

    for (set .i,0; .i <= getarraysize(.start$); set .i,.i+1);

    playBGMall .start$[.i],"prontera";

    sleep 300000; //5 Minute Delay

    }

    } while(true);

    }

  5. setarray .banned$[0],"GM","[GM]","Admin","G M","[Admin]","A dmin";
    Will the 'compare' also returns 1 if the char name is "abcG Mabc", or "abcGMabc" /?

    Yes, it will I believe

     

    Examples:

    //dothis; will be executed ('Bloody Murderer' contains 'Blood').

    if (compare("Bloody Murderer","Blood"))

    dothis;

    //dothat; will not be executed ('Blood butterfly' does not contain 'Bloody').

    if (compare("Blood Butterfly","Bloody"))

    dothat;

  6. prontera,x,y,z	script	AM/PM Time-based NPC	800,{

    end;

    OnInit:

    do {

    set .hours,gettime(3);

    set .min,gettime(2);

    set .sec,gettime(1);

    if(.hours > 12) {

    set .ampm$,"PM";

    set .hours,.hours-12;

    } else {

    set .ampm$,"AM";

    }

    waitingroom "S.Time: "+.hours+" : "+.min+" : "+.sec+" "+.ampm$+".",0;

    sleep 1000;

    } while(true);

    }

    Not tested yet
  7. 
    

    prontera,x,y,z    script    Safe Limit Refine    907,{

    setarray .@slots[0],1,2,3,4,5,6,9,10;

    for( set .@a,0; .@a < getarraysize(.@slots); set .@a,.@a + 1 ) {

         if( getequipisequiped(.@slots[.@a]) ) {

                      if( .@slots[.@a] == 3 || .@slots[.@a] == 4) {

                           switch( getequipweaponlv(.@slots[.@a]) ) {

                                case 0:

                                     set .@r, 4;

                                     break;

                                default:

                                     set .@r, 8 - getequipweaponlv(.@slots[.@a]);

                                     break;

                                }

                           } else { set .@r, 4; }

              if(getequiprefinerycnt(.@slots[.@a]) < .@r && getequipisenableref(.@slots[.@a]) ) {

                   for( set .@i,0; .@i < .@r; set .@i,.@i + 1)

                        successrefitem .@slots[.@a];

                   }

             }

          sleep2 100;

          }

    }

  8. oh yeah I forgot that was a variable lol

    thanks for the fix

    wiki miswrited it I guess

    This command returns 1 or 0 when the substring is in the main string (1) or not (0).

    I'm using script_commands doc as my reference
  9.     -       script  gmrenamer       -,{

    OnPCLoginEvent:

    set .nickname$,strcharinfo(0);

    setarray .banned$[0],"GM","[GM]","Admin","G M","[Admin]","A dmin";

    set .bannedamt,getarraysize(.banned$);

    if(getgmlevel() > 0) {

    if(compare(.nickname$,"[GM] ") == 0) {

    query_sql("UPDATE `char` SET name='[GM] "+.nickname$+"' WHERE name='"+.nickname$+"'");

    mes "You have to relog to update your nickname to have ^FF0000[GM]^000000 tag";

    }

    } else {

    for(set .a,0; .a <= .bannedamt; set .a,.a+1) {

    if(compare(.nickname$,".banned$[.a]") == 1) {

    atcommand "@block "+.nickname$+"";

    }

    }

    }

    end;

    }

    Haven't tested it yet, try it offline first
×
×
  • Create New...