Gladius

Members
  • Content Count

    64
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

9 Neutral

1 Follower

About Gladius

  • Rank
    Santa Poring

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OMG It was extamanete that! It worked!
  2. new_1-1,53,114,4 script Starter Pack 567,{ set [email protected]$, "^00B2EE[Starter Pack]^000000"; if( !#Freebies ){ set #Freebies,1; mes [email protected]$; mes "Welcome to the server. ^00B2EE"+strcharinfo(0)+"^000000!"; getitem 501,1; //Itens (Id/Qt) next; mes [email protected]$; mes "I'll take you to prontera!"; next; savepoint "prontera",156,193; warp "prontera",156,193; close2; }else{ mes [email protected]$; mes "Sorry, ^00B2EE"+strcharinfo(0)+"^000000. Starter Pack is for new players only!"; next; mes [email protected]$; mes "I'll take you to prontera!"; next; savepoint "prontera",156,193; warp "prontera",156,193; close2; } OnInit: disablenpc "Shion#nv1"; waitingroom "Starter Pack!",0; end; } This is the traditional version of npc. If you have gepard you can make a safer version.
  3. I tried like this again // If the target is a valid pet, we have a few exceptions if( pet ){ //catch_target_class == PET_CATCH_UNIVERSAL is used for universal lures (except bosses for now). [Skotlex] if (sd->catch_target_class == PET_CATCH_UNIVERSAL){ sd->catch_target_class = md->mob_id; //catch_target_class == PET_CATCH_UNIVERSAL_ITEM is used for catching any monster required the lure item used }else if (sd->catch_target_class == PET_CATCH_UNIVERSAL_ITEM && sd->itemid == pet->itemID){ sd->catch_target_class = md->mob_id; } } and item_db now 40074,essencia_monstro,Essência de Monstro,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ pet 1; },{},{} The error animation no longer occurs, but boss still does not capture. No console failure occurs during retries. I also tested with the default setting, but it didn't work.
  4. I commented on these lines to test... Gave no compilation error, but ... //if(sd->catch_target_class != md->mob_id || !pet) { // clif_emotion(&md->bl, ET_ANGER); //mob will do /ag if wrong lure is used on them. // clif_pet_roulette(sd,0); // sd->catch_target_class = PET_CATCH_FAIL; // // return 1; //} map_server crashed when I hit the boss LOL [Error]: Server received crash signal! Attempting to save all online characters! [Info]: Saved Inventory (0) data to table inventory for char_id: 150006 [Info]: Saved Cart (0) data to table cart_inventory for char_id: 150006 [Info]: Saved char 150006 - Gladius7: status skills. [Status]: Map-server #0 has disconnected. [Status]: set users Bifrost [255/70] : 0 have to change elsewhere, the problem really is in source. It could even have a conf / battle / pets.conf setting for that, right?
  5. item_db 40074,essencia_monstro,Essência de Monstro,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ pet 0; },{},{} 40058,Apple_Bomb_,Maçã de Monstro,10,100,,1,0,,,,0x00040000,8,2,32768,,99,,9,{},{},{} 9145,Ovo_de_Memoria-de-Thanatos,Ovo_de_Memória-de-Thanatos,7,20,,0,,,,,,,,,,,,,{},{},{} pet_db.yml - Mob: THANATOS TameItem: essencia_monstro EggItem: Ovo_de_Memoria-de-Thanatos FoodItem: Apple_Bomb_ Fullness: 3 IntimacyFed: 15 CaptureRate: 1500 SpecialPerformance: false Script: > [email protected] = getpetinfo(PETINFO_INTIMATE); if( [email protected] >= PET_INTIMATE_LOYAL ){ bonus bMaxHPRate,3; } I believe that if the problem were in these files some error would appear in the console. But no error occurs, only the source failure animation. The problem can really be in Source, I will test what you suggested now.
  6. I tried like this if( pet ){ //catch_target_class == PET_CATCH_UNIVERSAL is used for universal lures (except bosses for now). [Skotlex] if (sd->catch_target_class == PET_CATCH_UNIVERSAL){ sd->catch_target_class = md->mob_id; //catch_target_class == PET_CATCH_UNIVERSAL_ITEM is used for catching any monster required the lure item used }else if (sd->catch_target_class == PET_CATCH_UNIVERSAL_ITEM && sd->itemid == pet->itemID){ sd->catch_target_class = md->mob_id; } } It didn't give an error, but it didn't work either :/ he keeps crashing and showing cloud animation lol
  7. Você está usando qual versão do rAthena?
  8. Hello, I have created a list of all pre-re mvp's to use in the pet system. I created the eggs in item_db, the descriptions in itemInfo.lua and the settings in pet_db.yml The eggs are working perfectly, but it is not possible to capture the bosses. I was looking for the solution here in the forum and found this topic: https://rathena.org/board/topic/98804-big-627-pet-pack/ There is a mention in the FAQ: But I noticed that source is very different, and I need help making this modification ... can anybody help me? I believe that this is where the change should be made emulador/src/map/pet.cpp /** * Begin the actual catching process of a monster. * @param sd : player requesting * @param target_id : monster ID of pet to catch * @return 0:success, 1:failure */ int pet_catch_process2(struct map_session_data* sd, int target_id) { struct mob_data* md; int pet_catch_rate = 0; nullpo_retr(1, sd); md = (struct mob_data*)map_id2bl(target_id); if(!md || md->bl.type != BL_MOB || md->bl.prev == NULL) { // Invalid inputs/state, abort capture. clif_pet_roulette(sd,0); sd->catch_target_class = PET_CATCH_FAIL; sd->itemid = sd->itemindex = -1; return 1; } //FIXME: delete taming item here, if this was an item-invoked capture and the item was flagged as delay-consume [ultramage] std::shared_ptr<s_pet_db> pet = pet_db.find(md->mob_id); // If the target is a valid pet, we have a few exceptions if( pet ){ //catch_target_class == PET_CATCH_UNIVERSAL is used for universal lures (except bosses for now). [Skotlex] if (sd->catch_target_class == PET_CATCH_UNIVERSAL && !status_has_mode(&md->status,MD_STATUS_IMMUNE)){ sd->catch_target_class = md->mob_id; //catch_target_class == PET_CATCH_UNIVERSAL_ITEM is used for catching any monster required the lure item used }else if (sd->catch_target_class == PET_CATCH_UNIVERSAL_ITEM && sd->itemid == pet->itemID){ sd->catch_target_class = md->mob_id; } } if(sd->catch_target_class != md->mob_id || !pet) { clif_emotion(&md->bl, ET_ANGER); //mob will do /ag if wrong lure is used on them. clif_pet_roulette(sd,0); sd->catch_target_class = PET_CATCH_FAIL; return 1; } pet_catch_rate = (pet->capture + (sd->status.base_level - md->level)*30 + sd->battle_status.luk*20)*(200 - get_percentage(md->status.hp, md->status.max_hp))/100; if(pet_catch_rate < 1) pet_catch_rate = 1; if(battle_config.pet_catch_rate != 100) pet_catch_rate = (pet_catch_rate*battle_config.pet_catch_rate)/100; if(rnd()%10000 < pet_catch_rate) { achievement_update_objective(sd, AG_TAMING, 1, md->mob_id); unit_remove_map(&md->bl,CLR_OUTSIGHT); status_kill(&md->bl); clif_pet_roulette(sd,1); struct mob_db *mdb = mob_db(pet->class_); intif_create_pet(sd->status.account_id, sd->status.char_id, pet->class_, mdb->lv, pet->EggID, 0, pet->intimate, 100, 0, 1, mdb->jname); } else { clif_pet_roulette(sd,0); sd->catch_target_class = PET_CATCH_FAIL; } return 0; } Tks
  9. No meu emulador por algum motivo não tem essas classes Mas é fácil de resolver, vamos lá 1º Na linha 15 (//Base - Trans Jobs) adicione os job que faltam. 2º Na linha 32 (//Job - Adv Second Classes) adicione os mesmos jobs que faltaram anteriormente. Ou seja, basta setar o level e job máximo dessas classes que faltaram. Se você tiver alguma dificuldade me avisa que eu refaço o documento pra você. Mas acho importante você tentar sozinho primeiro pra aprender. Abraços, boa sorte.
  10. O erro que está dando não é referente ao Comércio Estendido 2.0 e sim do "Projeto DB Online" Está faltando uma tabela sql do sistema chamada "project_db.item_db" hehe
  11. Você pode remover a mensagem em conf/map_msg_por.conf mas não recomendo... Vai acabar interferindo na funcionalidade normal do jogo, não apenas do comando. Pode postar o dif do atcommand aqui? Talvez eu consiga mostrar pra você onde remover a mensagem de error. É a melhor forma de resolver o problema sem causar problema em outros sistemas hehe
  12. Não é a moeda que faz a roleta funcionar, e sim a função que deveria conter nela... Usa essas configurações aqui no seu item_db: //============================================================= // Roleta //============================================================= 670,Gold_Coin_Moneybag,Sacola de Moedas de Ouro,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 671,10; },{},{} 676,Silver_Coin_Moneybag,Sacola de Moedas de Prata,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 675,10; },{},{} 672,Copper_Coin_Moneybag,Sacola de Moedas de Bronze,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 673,10; },{},{} 671,Gold_Coin,Moeda de Ouro,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ RouletteGold++; dispbottom "[Roleta] : Uma moeda de ouro foi inserida."; },{},{} 675,Silver_Coin,Moeda de Prata,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ RouletteSilver++; dispbottom "[Roleta] : Uma moeda de prata foi inserida."; },{},{} 673,Copper_Coin,Moeda de Bronze,2,1,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ RouletteBronze++; dispbottom "[Roleta] : Uma moeda de bronze foi inserida."; },{},{}
  13. Você precisa criar colunas de level no arquivo job_exp.txt O arquivo atual suporta 99 leveis (pre-re) e 175 (re) No caso, se o seu servidor é pre-re, você deve criar mais 201 colunas de experiência , sério! Mas eu tenho um arquivo aqui do meu antigo servidor Substitua em db\pre-re e vê se funciona sem nenhum erro. As vezes dependente da versão do rAthena pode ocorrer algumas variações de classe. job_exp.txt
  14. Que eu lembre... Alguns iteminfo estão com as descrições de defesa/ataque do renewal, você vai precisar usar uma mais antiga. Em relação as skills, acredito que não, mas é sempre bom revisar.