Jump to content

bWolfie

Members
  • Content Count

    848
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by bWolfie


  1. Here: http://pastebin.com/yGXMGypV

    Hope it works for you :)

     

    Edit: sorry, after this line you need to add a close;

     

     

       if (L_ClaimedThirdFreebies == 1) {

            mes .@name$;
            mes "Sorry, you already claimed your freebies!";

            close;
        }

     

     

     

    //===== Hercules Script ======================================
    //== Thirds Freebies =========================================
    //===== By: ==================================================
    //== True Zeal ===============================================
    //===== Description: =========================================
    //== Gives free hats one time depending on your job
    //============================================================
     
    prontera,150,150,3    script    Item Giver    4_F_ELEPHANT,{
     
        .@name$ = "[" + strcharinfo(1) + "]";
        
        if (L_ClaimedThirdFreebies == 1) {
            mes .@name$;
            mes "Sorry, you already claimed your freebies!";
        }
        
        if (BaseClass == Job_Rune_Knight) {
            .@item1 = 5746;
            .@item2 = 15002;
            .@item3 = 2140;
            .@item4 = 2795;
            
            .@4items = 1;
     
        } else if (BaseClass == Job_Warlock) {
            .@item1 = 2795;
            .@item2 = 5753;
     
        } else if (BaseClass == Job_Ranger) {
            .@item1 = 5748;
            .@item2 = 2795;
     
        } else if (BaseClass == Job_Mechanic) {
            .@item1 = 2795;
            .@item2 = 5749;
     
        } else if (BaseClass == Job_Guillotine_Cross) {
            .@item1 = 5755;
            .@item2 = 2795;
     
        } else if (BaseClass == Job_Arch_Bishop) {
            .@item1 = 5747;
            .@item2 = 2795;
     
        } else if (BaseClass == Job_Royal_Guard) {
            .@item1 = 5757;
            .@item2 = 2795;
        
        } else if (BaseClass == Job_Sorcerer) {
            .@item1 = 5756;
            .@item2 = 2795;
        
        } else if (BaseClass == Job_Wanderer) {
            .@item1 = 5758;
            .@item2 = 2795;
     
        } else if (BaseClass == Job_Minstrel) {
            .@item1 = 5751;
            .@item2 = 2795;
        
        } else if (BaseClass == Job_Genetic) {
            .@item1 = 5752;
            .@item2 = 2795;
        
        } else if (BaseClass == Job_Shadow_Chaser) {
            .@item1 = 2795;
            .@item2 = 5750;
            .@item3 = 6121;
            .@item4 = 6122;
            
            .@4items = 1;
        
        } else if (BaseClass == Job_Sura) {
            .@item1 = 5754;
            .@item2 = 2795;
        
        } else {
            mes .@name$;
            mes "Sorry, I only give freebies to third jobs.";
            close;
        }
        
        
        mes .@name$;
        mes "I see you are a " + Class + ",";
        next;
        getitem .@item1,1;
        getitem .@item2,2;
        if (.@4items == 1) {
            getitem .@item3,1;
            getitem .@item4,1;
        }
        L_ClaimedThirdFreebies = 1;
        mes .@name$;
        mes "Take these items.";
        close;
     
    }
    

  2. http://haru.ws/scriptchecker/

     

    Hi all,

     

    This is not a release and it's not mine either. I just wanted to alert people to this awesome piece of work by Haru.

    You just paste your script and it'll error-check for you! Been here for 8 months and never heard of this till now.

     

    Mods feel free to move this. I just want all to know about this as I haven't seen it anywhere on these forums. :) Should be a pinned post by Haru himself!


  3. This should do the trick: http://pastebin.com/LW96X5dV

     

    By default (OnInit), the warp will not show.

    At 0000, the script will enable the warp (called 'warp kicker').

     

    After 5 minutes (OnTimer300000), the warp will be disabled.

    And everyone from izlude 0 0 to izlude 300 300 will be warped to amatsu 200 200.

     

    edit: please change FAKENPC to FAKE_NPC :D

     

    -   script  Warp Kicker FAKE_NPC,{
     
    OnClock0000:
        enablenpc "warpkicker";
        hideoffnpc "warpkicker";
        initnpctimer;
        end;
       
    //After 5 minutes
    OnTimer300000:
        disablenpc "warpkicker";
        hideonnpc "warpkicker";
        areawarp "izlude",0,0,300,300,"amatsu",200,200;
        stopnpctimer;
        end;
     
    OnInit:
        disablenpc "warpkicker";
        hideonnpc "warpkicker";
        end;
     
    }
     
    prontera,150,150,0  warp    warpkicker  2,2,izlude,150,50
    

  4. I think this happens when your grf is encrypted and can only be read when using a certain client name.

     

    E.g. if you told GRF editor to encrypt myRO.grf and it can only be read by a client with the name of "MyRO.exe".


  5. Under OnMobKilled: in the winner's bit, that specific script will be attached to the player who killed the winning poring. So you can attach any winning script you want there.

     

    Something like this would work.

     

    -    script    poringwin    -1,{
    
    OnMobKilled:
        dispbottom "Poring : Congratulations. You've got me.";
        //set PORING,1;  // You can remove this line I think, since it's only needed for talking to the NPC.
        atcommand "@doommap";
        killmonster "poring_w01","All";
        sleep2 1000;      // Slight delay so it doesn't feel weird
        mapannounce "poring_w01","Poring Catcher : " + strcharinfo(0) + " got the winning poring!",0;    // This one announces the winner's name to map.
        hideoffnpc "Poring Catcher#evnt2";
        sleep2 2000;      // Another delay so it doesn't feel weird
        getitem item_id,item_amount;
        dispbottom "Poring: Here are x y's. Enjoy!";
        sleep2 1000;      // another delay so it feels natural
        warp "prontera",156,188;
        end;
    
    }

  6. 0x03 comes from combining two values. It happens in a lot of the db files.

    0x01 + 0x02 = 0x03

     

    So Sight is a no damage skill which also has splash area.

     

    Whenever you see colon ( : ) in the skill files, it relates to the variable being used in relation to the skill level.

     

    In your example (Fire Bolt), 1:2:3:4:5:6:7:8:9:10 is telling the file how many hits to do for each corresponding level.

     

    It also works for skill_cast_db.

     

    For example, if you wanted Heal to have a different cool down for each level:

     

    //-- AL_HEAL
    28,0,1000,0,0,0,0:100:200:300:400:500:600:700:800:900
    

    This would give it a 0.1s (lv2) cooldown, 0.2s (lv3) cooldown, and so forth.

     

    To make the skill unavailable to select:

     

    I'm not sure about older clients, but on new clients you can go to the following lua file in your GRF, data/luafiles514/luafiles/skillinfoz/skillinfolist.lub

     

    Search for the skill you want and change

     

    bSeperateLv = true,

    to

     

    bSeperateLv = false,

  7. If you want to keep testing endless tower go in game and type:

     

    @set etower_timer 0

     

    Oooh you want an NPC....

     

     

    @etreset (endless tower reset) for your convenience if you forget the etower_timer variable...

    -    script    EndlessTReset    -1,{
     
    OnAtInstanceReset:
    etower_timer = 0;
    dispbottom "Endless Tower re-entrance timer deleted.";
    end;
     
    OnInit:
    bindatcmd "etreset",strnpcinfo(0)+"::OnAtInstanceReset";
    end;
    }
    

     

     

    PexKm8s.png

  8. I'm looking at getiteminfo trying to figure out how to get a script to read only for dagger type weapons.

     

    So basically, I want the script to only function for dagger type weapons.

    Hope this makes sense.

    if (getiteminfo(getequipid(EQI_HAND_R),11) == 1 || getiteminfo(getequipid(EQI_HAND_L),11) == 1)) {
    	bonus2 bAddRace,RC_NonBoss,15;
    	bonus2 bAddRace,RC_Boss,15;
    }
    

  9. I've found a lot of the mini-maps in this file are corrupt (they have colors where they should not be). If you want, I can upload the correct ones from an older grf for you.

     

    Edit: I think it is an issue with compression. In an old GRF I have mini-maps are all 512x512 size.


  10. If you have played Final Fantasy 6 and gone through the Phoenix Cave

    ...Having to operate more than one party to complete areas of a dungeon and unlock further parts.

     

    edit: think i missed the point of the topic, I'll leave the above here anyway.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.