Jump to content

Patotron

Members
  • Content Count

    27
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

6 Neutral

2 Followers

About Patotron

  • Rank
    Drops

Profile Information

  • Gender
    Male
  • Location
    Valencia

Recent Profile Visitors

2,012 profile views
  1. Which version of rAthena are you using? In case it's the most current one, maybe you're using a database with no previous patch application that also allowed the migration to yaml.
  2. You are only checking the first element of the array. The correct script should be: { setarray [email protected]$[0], "prt_fild08", "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05", "06guild_06", "06guild_07", "06guild_08"; set [email protected],0; for([email protected] = 0; [email protected] < getarraysize([email protected]$); [email protected]++ ) { if(strcharinfo(3) == [email protected]$[[email protected]]) { set [email protected],1; } } if ([email protected] == 1) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else dispbottom "This item can't be used on your current map."; } (Not tested, but it should work)
  3. What do you mean by "writes the messages all one after the other although he should do it in different message boxes"? What I understand is that you want every "mes" to be a different window, but I don't think that's what it is.
  4. In src/char/char.cpp, function char_mmo_gender. int char_mmo_gender( const struct char_session_data *sd, const struct mmo_charstatus *p, char sex ){ switch( sex ){ #if PACKETVER >= 20141016 case 'M': return SEX_MALE; case 'F': return SEX_FEMALE; #else // No matter what the database says, always return the account gender // Per character gender is not supported before 2014-10-16 #endif default: // There are calls to this function that do not contain the session if( sd == nullptr ){ int i; // Find player session ARR_FIND( 0, fd_max, i, session[i] && ( sd = (struct char_session_data*)session[i]->session_data ) && sd->account_id == p->account_id ); if( i >= fd_max ){ ShowWarning( "Session was not found for character '%s' (CID: %d, AID: %d), defaulting gender to male...\n", p->name, p->char_id, p->account_id ); return SEX_MALE; } } ShowWarning( "Found unknown gender '%c' for character '%s' (CID: %d, AID: %d), returning account gender...\n", sex, p->name, p->char_id, p->account_id ); return sd->sex; } } As we can see here if PACKETVER is less than 20141016 always execute the default case. The message "Found unknown gender 'M' for character 'Joven15'" is the correct behaviour. In your use case is safe to just comment this line (886 in the in the mentioned file), since the only thing it's telling you is that since you use a lower version than the 20141016 it doesn't support sex by character. Just keep in mind is a warning, not an error. EDIT: However, this error will be corrected when the PR is accepted
  5. getmapusers("nombre del mapa") , te devuelve el número de personas dentro de un mapa, puedes utilizarlo para saber si hay alguien en el mapa al que quieres restringir la entrada. EDIT: Por cierto, creo que el post está fuera del subforo que toca. prontera,100,100,2 script Test 55,{ if(getmapusers("izlude") >= 1) { //Hay al menos una persona en el mapa } else { //No hay personas en el mapa } }
  6. This is not working. I tested with 2 different data.grf and nothing. I changed the directory too and the same. I did :/ It stills not working. Thanks you all .
  7. When you do that: $find / -name libpcre.so.3 What you get after? Can you give us a screen?
  8. Is a Linux VPS? If yes you can try that: sudo ldconfig
  9. When I'm trying to run Brow Edit, the black window stop like that: http://gyazo.com/3d9f4d884fb594807d8f552e07e5d09b . Here is the log_worldeditor: http://gyazo.com/d4b60c5d48e1c158450095285648ceae Brow Edit never starting . Any ideas?
  10. 0,5,10,0,0,0,0,0,0,0,0,0,0 //SM_BASH#Bash# The first number is Job ID. And maybe you need to add it on lua files too, lua files are required to see the skill in game.
  11. Patotron

    Land Protector

    Skill.c Find: case SC_FEINTBOMB: clif_skill_nodamage(src,src,skill_id,skill_lv,1); skill_unitsetting(src,skill_id,skill_lv,x,y,0); // Set bomb on current Position if( skill_blown(src,src,6,unit_getdir(src),0) ) skill_castend_nodamage_id(src,src,TF_HIDING,1,tick,0); break; Replace with: case SC_FEINTBOMB: if( map_getcell(src->m, x, y, CELL_CHKLANDPROTECTOR) ) { clif_skill_fail(sd,skill_id,USESKILL_FAIL,0); return 0; } clif_skill_nodamage(src,src,skill_id,skill_lv,1); skill_unitsetting(src,skill_id,skill_lv,x,y,0); // Set bomb on current Position if( skill_blown(src,src,6,unit_getdir(src),0) ) skill_castend_nodamage_id(src,src,TF_HIDING,1,tick,0); break; Find: case WZ_FROSTNOVA: clif_skill_nodamage(src,bl,skill_id,skill_lv,1); skill_area_temp[1] = 0; map_foreachinrange(skill_attack_area, src, skill_get_splash(skill_id, skill_lv), splash_target(src), BF_MAGIC, src, src, skill_id, skill_lv, tick, flag, BCT_ENEMY); break; Replace with: case WZ_FROSTNOVA: if( map_getcell(src->m, x, y, CELL_CHKLANDPROTECTOR) ) { clif_skill_fail(sd,skill_id,USESKILL_FAIL,0); return 0; } clif_skill_nodamage(src,bl,skill_id,skill_lv,1); skill_area_temp[1] = 0; map_foreachinrange(skill_attack_area, src, skill_get_splash(skill_id, skill_lv), splash_target(src), BF_MAGIC, src, src, skill_id, skill_lv, tick, flag, BCT_ENEMY); break; Didnt tested it. But u can try .
  12. getpartymember getcharid(1); set @partymembercount,[email protected]; copyarray @partymembername$[0],[email protected]$[0],@partymembercount; set [email protected],0; deletearray [email protected]$[0],getarraysize([email protected]$); if(@partymembercount == 4) { // Comprobaciones de si están ONLINE y lo que tu quieras. } else { mes "La party debe estar formada por 4 personas."; close; } Puedes probar con eso, es algo hecho de forma rápida y quizá se pueda optimizar, pero bueno, servirte te puede servir para utilizarlo u orientarte.
  13. Patotron

    Sonic Blow

    If it dont work try this: Make sure you recompile after edit if (skill_id == AS_SONICBLOW) return damage * 75/100;
  14. Patotron

    Sonic Blow

    Add under this: if (bl->type == BL_PC) { sd=(struct map_session_data *)bl; //Special no damage states if(flag&BF_WEAPON && sd->special_state.no_weapon_damage) DAMAGE_SUBRATE(sd->special_state.no_weapon_damage) if(flag&BF_MAGIC && sd->special_state.no_magic_damage) DAMAGE_SUBRATE(sd->special_state.no_magic_damage) if(flag&BF_MISC && sd->special_state.no_misc_damage) DAMAGE_SUBRATE(sd->special_state.no_misc_damage) if(!damage) return 0; } yep
×
×
  • Create New...

Important Information

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