Jump to content

Aerie

Members
  • Posts

    383
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Aerie

  1. It can comes from a mapcache if you modificate *.gat and you got a difference between gat file in your mapcache and your client.

    For cloth color, .... Yes you can log or crash, it just comes from a randomly bad loading.

    But other reasons can be the cause, Did you crash with each of your character ? Did a new one without equips crash too ? Did you have important files in you data folder and not in your grf ?

  2. Maybe something like that :

    //===== eAthena Script =======================================
    //= Jack en Poy
    //============================================================
    //===== By: ==================================================
    //= imp18(Admin of RelyRO)
    //===== Current Version: =====================================
    //= 1.0
    //===== Description: =========================================
    //= you need to win 5 straight times.
    //= if you get draw it counts as lost.
    //= just pick your bet if it is Rock,Paper or Scissors.
    //= Bored Players will use this/ if you win this game you will
    //= gain 20 Mithril Coins.
    //============================================================.
    prontera.gat,152,175,4 script JnP - TCG 922,{
    mes "Do you want to play Rock, Paper and Scissors?";
    menu "Yes, Let's Play",play,"What is the Jackpot Prize",jackpot,"Reward",reward; //Add reward menu
    
    
    reward:
    
    mes "Want to take your reward ?"
    mes "Number of game won "+@RPS_win+".";
    next;
    menu "No",-,"Yes",reward2;
    close;
    
    reward2:
    setarray .@reward[0],1,1,1,1; //Set ID of your items
    setarray .@rewardnb[0],30,10,10,50; //Number of items
    mes "So "+@RPS_win+" victories, you win :";
    mes "You win "+.@rewardnb[@RPS_win]+" "+getitemname(.@reward[@RPS_win])+" !";
    close2;
    getitem .@reward[@RPS_win],.@rewardnb[@RPS_win];
    set @RPS_win,0;
    end;
    
    
    jackpot:
    next;
    mes "The current Jackpot Prize is ^0000FF3000 TCG Cards^000000!!";
    mes "But to win this, ^FF0000you must win 5 straight times^000000";
    mes "Draws are not counted so you start over";
    close;
    play:
    mes "Rock! Paper! Scissors! ...";
    set .@rps,rand(1,3);
    next;
    switch(select("Scissors:Rock:Paper")) {
    //Scissors
    case 1:
    if (.@rps==1) {
    emotion e_scissors;
    emotion e_scissors,1;
    mes "Hmpf.";
    mes "It's a draw.";
    mes "One more time!";
    mes "Rock! Paper!";
    mes "Scissors!";
    set anticlick,0;
    close;
    }
    else if (.@rps==2) {
    emotion e_rock;
    emotion e_scissors,1;
    mes "Hahaha!!!";
    mes "You Lose!!!";
    set anticlick,0;
    set @RPS_win,0;
    close;
    }
    else {
    emotion e_paper;
    emotion e_scissors,1;
    set anticlick, anticlick+1;
    set @RPS_win,@RPS_win+1;
    goto prizes;
    }
    break;
    case 2:
    if (.@rps==1) {
    emotion e_scissors;
    emotion e_rock,1;
    set @RPS_win,@RPS_win+1;
    goto prizes;
    }
    else if (.@rps==2) {
    emotion e_rock;
    emotion e_rock,1;
    mes "Hmpf.";
    mes "It's a draw.";
    mes "One more time!";
    mes "Rock! Paper!";
    mes "Scissors!";
    close;
    }
    else {
    emotion e_paper;
    emotion e_rock,1;
    mes "Hahaha!!!";
    mes "You Lose!!!";
    set winRPS,0;
    set @RPS_win,0;
    close;
    }
    break;
    case 3:
    if (.@rps==1) {
    emotion e_scissors;
    emotion e_paper,1;
    mes "Hahaha!!!";
    mes "You Lose!!!";
    set @RPS_win,0;
    close;
    }
    else if (.@rps==2) {
    emotion e_rock;
    emotion e_paper,1;
    set @RPS_win,@RPS_win+1;
    goto prizes;
    }
    else {
    emotion e_paper;
    emotion e_paper,1;
    mes "Hmpf.";
    mes "It's a draw.";
    mes "One more time!";
    mes "Rock! Paper!";
    mes "Scissors!";
    close;
    }
    }
    gotcha:
    next;
    mes "Sorry, to prevent autoclicker from ruining this event, I'm gonna have to reset your win.";
    mes "Your win will be reseted to 0.";
    next;
    mes "Try playing it fairly, Thanks";
    set anticlick,0;
    set @RPS_win,0;
    close;
    
    prizes:
    if (anticlick == 4) goto gotcha;
    mes "That makes "+@RPS_win+" wins in a row.";
    mes "Refer to reward menu";
    close;
    }
    }
    

  3. Check to

    npc/custom/battleground/bg_flavius_01.txt

    (And other battleground files)

    Search for :

    getitem

    Then you can add more items are refer above to change the number of item :

    bat_b01,390,13,5 script Guillaume Vintenar#fl1 419,{
    if( $@FlaviusBG1_Victory )
    {
     if( $@FlaviusBG1_Victory == Bat_Team )
     { // Victory
      mes "[swandery]";
      mes "Blessed Guillaume!!";
      mes "Let's enjoy our glorious victory!";
      mes "" + strcharinfo(0) + ", its a sign reflecting victory";
      close2;
      set .@Reward, 9; //Winners
     }
     else
     { //
      mes "[swandery]";
      mes "You lost, but you're dedicated to this battle.";
      mes "This is a reward for your great dedication by Guillaume Marollo!";
      mes "Just take this defeat a lesson, and later you would definitely learn.";
      close2;
      set .@Reward, 3;
     }
     setquest 2070;
     getitem 7829, .@Reward;
     bg_leave;
     warp "bat_room",155,150;
     end;
    }
    end;
    }
    

  4. OnClock0001: // This is activated only once per day so each 24hours
    set $Time_treasure,$Time_treasure+1; //No this only add 1 to the value for each day / per 24 hours
    if ( $Time_treasure <= 2) { end; } // I've modify in case of problem, but that means when 2*24 hours passed, so $Time_treasure == 2, the script for spawn treasure will be run. If you have only 24 hours passed, the script of treasure spawn wouldn't be run.
    set $Time_treasure,0; // Back to 0 day for restart the cooldown.
    //then run the script

  5. Did you reload conf or restart you server ? Without that kind of change can't be efffective.

    Since the organisation have been modify ... did this command is avaible with your admin character ?

  6. You should use && (and), not || (or).

    dicastes01,213,167,5 script Dewata Warper 112,{
    if( paid ) {
    warp "dewata",232,53;
    announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all;
    end;
    }
    if( countitem(6048) >= 10 && countitem(7078) >= 5 && countitem(6153) >= 1000) {
    delitem 6048,10;
    delitem 7078,5;
    delitem 6153,1000;
    set paid, 1;
    warp "dewata",232,53;
    announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all;
    } else {
    warp "dicastes01",210,168;
    dispbottom "Entry to Dewata requires a 10pcs Unidentified Ore and 5pcs Wrath of Valkyrie and Thousand SET.";
    }
    end;
    }
    

  7. You should refer to this document who gives you all commands avaible in rAthena : https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/item_bonus.txt

    
    5134,Pumpkin_Hat,Pumpkin-Head,5,20,,200,,2,,0,0xFFFFFFFF,7,2,256,,0,1,206,{ bonus2 bSubRace,RC_Demon,5; },{},{}
    

    For your item add commands and separate them by an espace after the semi-colon ;

    
    5134,Pumpkin_Hat,Pumpkin-Head,5,20,,200,,2,,0,0xFFFFFFFF,7,2,256,,0,1,206,{ bStr,10; bonus bLuk,10; bonus bMdef,10;},{},{}
    

    Refer to existing to existing objects to know how write your item :

    https://rathena.svn..../re/item_db.txt

  8. You can make something like that :

    
    // Treasure Room Spawn Template
    //============================================================
    -	   script  Gld_Trea_Spawn::Gld_Trea_Spawn  -1,{
    	end;
    
    OnClock0001: //will run each day
    set $Time_treasure,$Time_treasure+1; //add 1 day
    if ( $Time_treasure != 2) { end; } // if diffirent of 2 days the script won't launch
    set $Time_treasure,0; // script launch ... return to 0
    //then run the script
    

    This topic should be in script support ;D

  9. It comes from the save of quadtree (part of a map) the game only load some part of maps most of time. But BrowEdit didn't work like official Gravity mappers.

    You can change the mod of the map with this way the whole map will be load during your connection to the map :

    3) How fix the Cliping Effect ?

    Operation to make each time you modify your maps when done.

    You'll need a hexadecimal editor for realize this. Example : http://www.pspad.com/en/ (freeware)

    Select your *.rsw files and open it with your hexadecimal editor :

    fin1.jpg

    Look to 3rd column, first line. Here 0201, modify to 0109 and save !

    0x109 : Who don't use Quadtree.

    0x201 : Who use Quadtree.

    Don't forget : BrowEdit always saves your map in 0x201 version. Each time you'll save your map, you must restart this manipulation.

    But this can produce missing models, so use Syouji method if you have problems.

  10. You can use the function search in windows to grab text in files. (Folder options / search)

    Check /npc/guides/guides_pron.txt , change the first NPC coordinates, at the bottom of the script you can move others guides of Prontera.

  11. Ah well I see ... But I didn't see how make them perfectly. I hope Olrox will take time for make a guide ;D

    No specific guides for import custom models for BrowEdit as far I know, there may have some more specifics for 3rd part tools.

  12. It happens to me once and it was from the db/map_db.txt and conf/maps_athena.conf ... There was a map name not used (not loaded by the server) and a single name (missing in one file) so all maps after this error can works but impossible to save in it.

×
×
  • Create New...