Jump to content

baixarnow

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by baixarnow


  1. 1 hour ago, 4144 said:

    probably you corrupted configure by copy files from windows?

    you can regenerate configure by this command

    autoreconf

    
    autoreconf

    but if this is windows issue, need fix many other files.

     

    Thanks, you're probably right in the reason, I was running localhost windows and we rented an ubuntu vps. But autoreconf didn't work. What worked was using VS Community with this: https://docs.microsoft.com/en-us/cpp/linux/download-install-and-setup-the-linux-development-workload?view=msvc-170


  2. Hello to all.

     

    I'm trying to compile hercules on ubuntu 20.04 to play with some friends, but i'm having trouble when i run ./configure.

     

    .

    
    checking whether gcc supports -std=c11... yes
    checking whether byte ordering is bigendian... no
    ./configure: line 5184: syntax error near unexpected token `fi'
    ./configure: line 5184: `fi'


     

    I already tried deleting configure and running autoconf and generate new configure, i tried going to previous hercules to find some old configure, but i think they dont change much... i tried a lot of modifications in the script and I couldn't go beyond this point. If someone has a clue, please let me know. Thanks in advance.

    Is around here, somewhere:

     

     

    
    if ac_fn_c_try_run "$LINENO"; then :
      ac_cv_c_bigendian=no
    else
      ac_cv_c_bigendian=yes
    fi
    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
      conftest.$ac_objext conftest.beam conftest.$ac_ext
    fi
    
        fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 ##THIS IS THE LINE 5184 OF THE ERRORR###
    $as_echo "$ac_cv_c_bigendian" >&6; }
     case $ac_cv_c_bigendian in #(
       yes)
         as_fn_error $? "bigendian is not supported... stopping" "$LINENO" 5;; #(
       no)
          ;; #(
       universal)
    
    $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
    
         ;; #(
       *)
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine endianess, only little endian is supported" >&5
    $as_echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
     ;;
     esac
    
    

     


  3. Eu fiz uma versão mais otimizada, se alguém quiser. Também suporta os baby e 3rd job, alem do código ta mais limpo e funcional.

    prontera,148,166,3	script	Plagiador	2_M_SAGE_OLD,{
    mes "[ ^ff0000Plagiador^000000 ]";
    
    if(Class != 17 && Class != 4018 && Class != 4072 && Class != 4079 && Class != 4040 && Class != 4108) {
    mes "Desculpe, só ofereço meu serviço a arruaceiros e evoluções.";
    close;
    }
    
    set .@PlagioZeny,5000;	// Custo de zeny cobrado pelo NPC
    
    mes "Posso plagiar uma habilidade para você por "+ .@PlagioZeny +" Zenys.";
    next;
    switch(select("[+]Eu quero!:[-]Cancelar"))
    {
    case 1:
    next;
    mes "[ ^ff0000Plagiador^000000 ]";
    
    	if (Zeny < .@PlagioZeny) {
    		mes "Desculpe, você não tem zeny suficiente";
    			close;
    		}
    
    mes "Qual habilidade deseja plagiar?";
    mes "OBS1: ^ff0000Tenha esquiva menor que 230 para evitar Miss.^000000";
    mes "OBS2: ^ff0000Fique perto do NPC para skills sem target.^000000";
    next;
    switch(select("Impacto de Tyr:Esfera d'Água:Grande Floco de Neve:Fogo Grego:Lâmina de Vento:Lança Congelante:Pétalas de Flamejantes:Terror Ácido:Cancelar"))
    {
    
    case 1:
    Zeny -= .@PlagioZeny;
    npcskill 62, 10, 99, 99;
    close;
    
    case 2:
    Zeny -= .@PlagioZeny;
    npcskill 86, 5, 99, 99;
    close;
    
    case 3:
    Zeny -= .@PlagioZeny;
    npcskill 539, 5, 99, 99;
    close;
    
    case 4:
    Zeny -= .@PlagioZeny;
    npcskill 229, 5, 99, 99;
    close;
    
    case 5:
    Zeny -= .@PlagioZeny;
    npcskill 540, 10, 99, 99;
    close;
    
    case 6:
    Zeny -= .@PlagioZeny;
    npcskill 537, 10, 99, 99;
    close;
    
    case 7:
    Zeny -= .@PlagioZeny;
    npcskill 534, 10, 99, 99;
    close;
    
    case 8:
    Zeny -= .@PlagioZeny;
    npcskill 230, 5, 99, 99;
    close;
    
    case 9:
    close;
    }
    
    case 2:
    close;
    }
    }

     


  4. On 7/28/2022 at 9:02 AM, zagnos said:

    Extended Super Novice supposed to go job lvl 70. From what I read, to increase max job lvls, I would need to edit job_exp.txt. Though I dont know how to read the contents, it seems they are grouped instead of defining each job. So maybe Extended Super Novice is missing in the 3rd jobs group. If so, I have no idea how to add it. Here is what my job_exp.txt look like:

     

    // Experience Tables [Renewal]
    // Only official levels included, check db/import-tmpl/job_exp.txt for an expanded list
    //
    // Structure of Database:
    // Max Level,Class list,Type,Exp for Lv 1,2,3,...,200
    //
    // Type:
    //    0 = Base Exp, 1 = Job Exp

    // Base - 4th Jobs / Expanded Jobs (Trait) - Values for level 1 - 200 are unused and are simply copy-pasted from 3rd classes values.
    250,4252:4253:4254:4255:4256:4257:4258:4259:4260:4261:4262:4263:4264:4278:4279:4280:4281:4302:4303:4304:4305:4306:4307:4308:4316,0,600,1080,1800,2640,3840,4560,5040,5460,6000,6600,7200,7320,7620,8040,8820,9600,10080,10560,11040,12610,13390,14300,15340,16900,18460,19500,20800,22100,23400,24700,26000,27300,28600,30160,31200,33800,35750,37700,39000,44100,46200,47600,50400,52500,53200,56000,58800,62300,65800,68600,71400,74200,77000,79800,82600,86100,88200,91000,93800,103500,105000,109500,115500,120000,126000,132000,136500,142500,165000,192000,210000,232500,244500,255000,270000,282000,292500,300000,345000,416000,480000,560000,640000,768000,880000,960000,1088000,1200000,1440000,1700000,2040000,2550000,3060000,3570000,4080000,4760000,5610000,6800000,1272747,1354202,1440870,1533085,1631202,1735598,1846676,1964863,2090614,2224413,2366775,2518248,2679415,2850897,3033354,3227488,3434047,3653826,3887670,4136480,4401214,4755467,5138234,5551810,5998675,6481508,7003204,7566891,8175950,8834032,9545083,10313366,11143488,12040427,13009560,14056699,15188122,16410613,17731503,19158711,20700795,22367001,24167320,26112547,28214345,30485317,32939080,35590346,38455012,41550255,44894635,48508204,52412629,56631321,61189576,66114724,71436298,77186205,83398922,90111701,97364791,105201683,113669366,122818613,132704283,143385650,154926760,167396814,180870583,195428856,211158924,229155105,246519309,266361648,287801097,310966207,352013746,398479560,451078861,510621270,578023277,654322349,740692899,838464361,949141656,1074428354,1216252896,1376798278,1558535650,1764262355,1997144985,2260768123,2559189515,2897002530,3279406863,3712288568,4202310658,4757015664,5384941731,6095754039,6900363572,653047446,655006588,656971607,658942521,660919348,662902106,664890812,666885484,668886140,670892798,672905476,674924192,676948964,678979810,681016749,683059799,685108978,687164304,689225796,691293473,843378037,1028921205,1255283870,1531446321,1868364511,2279404703,2780873737,3392665959,4139052469,5049644012,6160565694,7515890146,9169385978,11186650893,13647714089,16650211188,20313257649,24782174331,30234252683,36885788273,45000661693,54900807265,66978984863,81714361532,99691521069,121623655704,148380859958,181024649148,220850071960,269437087791,999999999999

    // Job - 4th Jobs / Expanded Jobs (Trait)
    50,4252:4253:4254:4255:4256:4257:4258:4259:4260:4261:4262:4263:4264:4278:4279:4280:4281:4302:4303:4304:4305:4306:4307:4308:4316,1,4700000,5522500,6488938,7624502,8958789,10526577,12368729,14533256,17076576,20064977,23576347,27702208,32550095,38246361,44939475,52803883,62044562,72902360,85660274,100650821,118264715,138961040,163279222,191853086,216793987,244977206,276824243,312811394,353476875,399428869,451354622,510030723,576334717,651258230,735921800,831591634,939698547,1061859358,1199901074,1355888214,1532153682,1731333660,1956407036,2210739951,2498136145,2822893843,3189870043,3604553149,4073145058,9999999999

     

    Like is said there 

    //
    // Structure of Database:
    // Max Level,Class list,Type,Exp for Lv 1,2,3,...,200

     

    Each comma is one different, in your case

     

    250 < is the max level

     

    4252:4253:4254:4255:4256:4257:4258:4259:4260:4261:4262:4263:4264:4278:4279:4280:4281:4302:4303:4304:4305:4306:4307:4308:4316 < all of those are separated by : and not comma, so all of those is the next thing in 

    // Max Level,Class list,Type,Exp for Lv 1,2,3,...,200

    wich means they are all the classes (by ID), you can add the :superNoviceID in the end of this list, before the next comma, so it would apply this table for the class. Just make sure to search the whole doccument with CTRL+F to erase the ID from other exp tables, each class must be in one level and one job only, I don't know what can happen if you leave in more places...

     

    Aand then rest of the numbers, as the Structure says, is the exp for level 1, exp for level 2.... until 200. if you change your level to over 200, you also need to add more numbers in the end there with the exp required for the new levels over 200.

     

     

×
×
  • Create New...

Important Information

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