Jump to content

ayre

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by ayre

  1. Is it possible to change the variable casting time from 80% to 100%, removing that fixed time of 20%? I tried changing the formula in skill.c from

    fixed = (int)time * 20 / 100; // fixed time
    time = time * 80 / 100; // variable time

     

    to

     

    fixed = (int)time * 1 / 100; // fixed time
    time = time * 99 / 100; // variable time

     

    I have max stats, 255 and it doesn't seem to change much.

  2. Server Edit:

    // Items Database//// Structure of Database:// ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }

    When adding your item to the itemDB, make sure you define the amount of slots which is after Range and before Job in the structure.

     

    Client Side Edit:

    Depending on your client, you need to edit a txt or lua/lub file.

     

    Clients that use txt files

    http://rathena.org/wiki/Custom_Items#Defining_Items_clientside_.28Renewal_Clients_.3C.3D_2012-04-10a_.26_Main_Clients_.3C.3D_2012-07-10a.29

     

    Clients that use the lua/lub files

    http://rathena.org/wiki/Custom_Items#Defining_Items_Clientside_.28For_New_Clients.29

  3. You do know you don't need the second if statement on each case. You're already checking for the items in the first if statement.

     

    Your zeny check is the wrong way. You have it as: If you have more than or equal to 10000000, it's going to reject you. You want it t o actually mean, if you have less than X zeny, reject user.

     

    This is the correct script based off your work. This one works on my server when I was testing it.

    invek,145,165,3    script    Bossnia Guard    123,{
    
    set .@name$,"[Bossnia Guard]";
    mes .@name$;
    mes "What level of Bossnia do you want to enter?";
    next;
    switch(select("Bossnia1:Bossnia2:Bossnia3:Bossnia4")){
    case 1:
    mes .@name$;
    mes "Ok then,";
    mes "First you need to pay me 100,000,000z and bring me ^ff000010 Crystal Fragments^000000..";
    next;
    mes "Ow you already have them!";
    if (countitem(7321) <10 || Zeny < 100000000 ) {
        mes .@name$;
        mes "Sorry you don't have enough zeny or you don't have the required items";
        }
    else {
        delitem 7321,10;
        set Zeny, Zeny-100000000;
        warp "bossnia_01",203,203;
    }
    close;break;
    
    case 2:
    mes .@name$;
    mes "Ok then,";
    mes "First you need to pay me 100,000,000z and bring me ^ff000010 Crystal Fragments^000000..";
    next;
    mes "Ow you already have them!";
    if (countitem(7321) <10 || Zeny < 100000000 ) {
        mes .@name$;
        mes "Sorry you don't have enough zeny or you don't have the required items";
    }
    else {
    delitem 7321,10;
    set Zeny, Zeny-100000000;
    warp "bossnia_02",203,203;
    }
    close; break;
    
    case 3:
    mes .@name$;
    mes "Ok then,";
    mes "First you need to pay me 100,000,000z and bring me ^ff000010 Crystal Fragments^000000..";
    next;
    mes "Ow you already have them!";
    if (countitem(7321) <10 || Zeny < 100000000 ) {
        mes .@name$;
        mes "Sorry you don't have enough zeny or you don't have the required items";
    }
    else {
        delitem 7321,10;
        set Zeny, Zeny-100000000;
        warp "bossnia_03",203,203;
    }
    close; break;
    
    
    case 4:
    mes .@name$;
    mes "Ok then,";
    mes "First you need to pay me 100,000,000z and bring me ^ff000010 Crystal Fragments^000000..";
    next;
    mes "Ow you already have them!";
    if (countitem(7321) <10 || Zeny < 100000000 ) {
        mes .@name$;
        mes "Sorry you don't have enough zeny or you don't have the required items";
    }
    else {
    delitem 7321,10;
    set Zeny, Zeny-100000000;
    warp "bossnia_04",203,203;
        }
    close; break;
        }
    }
×
×
  • Create New...