Jump to content

narien123

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by narien123

  1. Yes, it really wont work the way you are expecting.

    Let me tell you what you added.

    set .@stpoint, 300; (actually you added >300) -- What it does: this line here gives the .@stpoint a value of 300 every time you use it in other parts of your script. Use: easy script set up. Editing this part will reflect in the whole script.

     

    Use like:

    set .@Save,5000; // Zeny required to save a build   ---- setting

     

    if (Zeny<.@Save) { message strcharinfo(0),"Not enough Zeny."; close; }  ----- use in script

    if (Zeny<5000) { message strcharinfo(0),"Not enough Zeny."; close; }  ------ this is how the script is read based on the setting

     

     

    For the script to work the way you want, you might need a limit on your sql table where the build is saved that will return an error. Or maybe a per stat check before saving builds. You can go ask for that in scripting request maybe.

    Thx for this information .. and i get ti fix it .. 

  2. set .@stpoint ,>300; // Stats point cant be more then 300 ( i added this )

    and this if (.@stpoint >300) { message strcharinfo(0),"Statpoint cant be more then 300."; close; }

     

    but the script dont work

     


    what is the problem?

    set .@stpoint ,>300; // Stats point cant be more then 300 ( i added this )

    and this if (.@stpoint >300) { message strcharinfo(0),"Statpoint cant be more then 300."; close; }

     

    but the script dont work

     

  3. 
    

    prontera,152,192,6 script Build Manager 930,{

    function Get_Menu; function Save_Build; function Load_Build;

    set .@BuildCount,4; // Number of builds to use

    set .@Save,5000; // Zeny required to save a build

    set .@Load,10000; // Zeny required to load a build

    set .@Rename,1000; // Zeny required to rename a build

    set .@MaxLevel,99; // Maximum base level (to prevent stat overflow)

    set .@stpoint ,>300; // Stats point cant be more then 300 ( i added this )

    if (BaseLevel < .@MaxLevel) { message strcharinfo(0),"You must be level "+.@MaxLevel+" to use this."; end; }

    switch(select("Save Build...:Load Build...:Rename Build...:Close")) {

    case 1:

    if (.@Save) message strcharinfo(0),"It costs "+.@Save+" Zeny to save a build.";

    set .@Build, Get_Menu(.@BuildCount);

    if (Zeny<.@Save) { message strcharinfo(0),"Not enough Zeny."; close; }

    if (.@stpoint >300) { message strcharinfo(0),"Statpoint cant be more then 300."; close; }

    if (getd("Build_"+.@Build+"$")!="") {

    message strcharinfo(0),"Overwrite previous build #"+.@Build+"?";

    if(select("Save new build:Cancel")==2) close; }

    Save_Build(.@Build);

    message strcharinfo(0),"Type a name for your build.";

    input getd("Build_"+.@Build+"n$");

    message strcharinfo(0),"Build #"+.@Build+" ("+getd("Build_"+.@Build+"n$")+") saved.";

    set Zeny, Zeny-.@Save;

    close;

    case 2:

    if (.@Load) message strcharinfo(0),"It costs "+.@Load+" Zeny to load a build.";

    set .@Build, Get_Menu(.@BuildCount);

    if (getd("Build_"+.@Build+"$")=="") {

    message strcharinfo(0),"No build info found."; close; }

    if (Zeny<.@Load) { message strcharinfo(0),"Not enough Zeny."; close; }

    Load_Build(getd("Build_"+.@Build+"$"));

    message strcharinfo(0),"Build #"+.@Build+" loaded.";

    set Zeny, Zeny-.@Load;

    close;

    case 3:

    if (.@Rename) message strcharinfo(0),"It costs "+.@Rename+" Zeny to rename a build.";

    set .@Build, Get_Menu(.@BuildCount);

    if (getd("Build_"+.@Build+"$")=="") {

    message strcharinfo(0),"No build info found."; close; }

    if (Zeny<.@Rename) { message strcharinfo(0),"Not enough Zeny."; close; }

    message strcharinfo(0),"Type a new name for Build #"+.@Build+" ("+getd("Build_"+.@Build+"n$")+").";

    input getd("Build_"+.@Build+"n$");

    message strcharinfo(0),"Build #"+.@Build+" renamed.";

    set Zeny, Zeny-.@Rename;

    close;

    case 4:

    close; }

    function Get_Menu {

    set .@menu$,"";

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

    set .@menu$, .@menu$+"Slot "+.@i+" ("+((getd("Build_"+.@i+"n$")=="")?"^777777empty":"^0055FF"+getd("Build_"+.@i+"n$"))+"^000000):";

    return select(.@menu$); }

    function Save_Build {

    set .@s$,"";

    for(set .@i,13; .@i<19; set .@i,.@i+1)

    set .@s$,.@s$+readparam(.@i)+"|";

    setd "Build_"+getarg(0)+"$", .@s$+StatusPoint;

    return; }

    function Load_Build {

    ResetStatus;

    explode(.@s$,getarg(0),"|");

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

    statusup2 (.@i+13), atoi(.@s$[.@i])-1;

    set StatusPoint, atoi(.@s$[6]);

    return; }

    }

  4. you should check this thread

     

    https://rathena.org/board/topic/101092-packet-obfuscation-support/

     

    you dont need anti bot when you implement this in your server , if you dont want to , there is a lot of anti bot scripts

     

    https://rathena.org/board/topic/66834-antibot-botkiller-6/

     

    use the search button for m

     

    - script bot2 -1,{

    OnInit:
    OnPCLoadMapEvent:
    if( !Checking ) end;
    OnNPCKillEvent:
    if ( strcharinfo(3) == "bat_c01" ) {
    set Kill,Kill+1;
    if( Kill >= rand( 15,35 ) ){
    set Checking,1;
    announce "RO Guard : Bot Check time! Thank you for your patience!",bc_yellow|bc_self;
    atcommand "@option 2";
    mes "[^ff557fRO Guard^000000]";
    mes "Please enter the ^FF0000RED COLOUR NUMBER^000000";
    next;
    set .@Number,rand( 999999 );
    mes "[^ff557fRO Guard^000000]";
    mes "Number : ";
    mes rand( 999999 )+"^ff0000"+.@Number+"^000000"+rand( 999999 );
    input @Number;
    if( @Number != .@Number ){
    mes "Sorry, WRONG.";
    atcommand "@kick "+strcharinfo(0);
    }else{
    mes "Thank you. You now can move!.";
    dispbottom "100% of effectiveness.";
    announce "RO Guard : To rewared your kindness, please take a bonus of some Buffs.",bc_blue|bc_self;
    sc_start SC_INCREASEAGI,500000,10;
    sc_start SC_BLESSING,500000,10;
    percentheal 100,100;
    atcommand "@option 0 0 0";
    if(@cart == 1) {
    setcart;
    set @cart,0;
    }
    if(@falcon == 1) {
    setfalcon;
    set @falcon,0;
    }
    if(@riding == 1) {
    setriding;
    set @riding,0;
    }
    set Checking,0;
    set Kill,0;
    }
    close;
    }
     
    }
    }
    jawaii mapflag loadevent

     

    How to set Every 15 minute the checker will check

  5. Sry wrong script is this 

    29228,headprotector_Earth,Head Protector Earth,5,20,,100,,5,,1,0xFFFFFFFF,15,2,256,,0,0,2112,{ bonus bAllStats,5; },{},{} 

    where should i change ?


    (2^10) 1024 = Costume Upper headgear
    (2^11) 2048 = Costume Middle headgear
    (2^12) 4096 = Costume Lower headgear
    (2^13) 8192 = Costume Garment/Robe

    can guide me more detail ?


    It's Accessory R + L, not costume btw...  :ani_swt3:

    sry , wrong script 

    29228,headprotector_Earth,Head Protector Earth,5,20,,100,,5,,1,0xFFFFFFFF,15,2,256,,0,0,2112,{ bonus bAllStats,5; },{},{} 


    Problem solve 
    found out here 
    https://rathena.org/board/topic/101127-3rd-job-cant-equip-items/


    Problem solve 
    found out here 
    https://rathena.org/board/topic/101127-3rd-job-cant-equip-items/

×
×
  • Create New...