Jump to content

Siberian

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Siberian

  1. Currently, I'm using the CentOS 5.6 x64 and Mysql 5.0 x64. Do you advises the update to the CentOS 6.3 x64 e Mysql 5.5 x64? Thanks.
  2. the messages are coming out with strange characters ... I've tried changing the langtype ... What can it be? PrintScreen http://i46.tinypic.com/11kw13c.jpg Thanks.
  3. Update your harmony, and then to give a feedback if the problem stopped. https://forum.harmonize.it/viewtopic.php?f=10&t=378 Thanks.
  4. Thank... Edit. /conf/help.txt Solved.
  5. Hi, How do I edit the maps shown in @ go Thanks.
  6. Thanks bro !!! Solved. Please help me again ... http://rathena.org/board/topic/73369-help-in-source-mod/ Thanks.
  7. I have a mod that generates a hash for the items, so, to not bug the hash when remove the card, I made a little change. However, I updated the emulator and in the last version, I'm having problems with this change. Could you help me? ERROR: script.c: In function âbuildin_successremovecardsâ: script.c:11136: error: âstruct itemâ has no member named âitem_hashâ script.c:11136: warning: zero-length printf format string script.c:11156: error: âstruct itemâ has no member named âitem_hashâ script.c:11156: error: âstruct itemâ has no member named âitem_hashâ make[1]: *** [obj_sql/script.o] Error 1 /// Removes all cards from the item found in the specified equipment slot of the invoking character, /// and give them to the character. If any cards were removed in this manner, it will also show a success effect. /// successremovecards <slot>; BUILDIN_FUNC(successremovecards) { int i=-1,j,c,cardflag=0; TBL_PC* sd = script_rid2sd(st); int num = script_getnum(st,2); if (num > 0 && num <= ARRAYLENGTH(equip)) i=pc_checkequip(sd,equip[num-1]); if (i < 0 || !sd->inventory_data) { return 0; } if(itemdb_isspecial(sd->status.inventory.card[0])) return 0; for( c = sd->inventory_data->slot - 1; c >= 0; --c ) { if( sd->status.inventory.card[c] && itemdb_type(sd->status.inventory.card[c]) == IT_CARD ) {// extract this card from the item int flag; struct item item_tmp; memset(&item_tmp,0,sizeof(item_tmp)); cardflag = 1; item_tmp.nameid = sd->status.inventory.card[c]; item_tmp.identify = 1; sprintf(item_tmp.item_hash, ""); <---- Linha 11136 item_tmp.favorite = 0; if((flag=pc_additem(sd,&item_tmp,1,LOG_TYPE_SCRIPT))){ clif_additem(sd,0,0,flag); map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0); } } } if(cardflag == 1) { int flag; struct item item_tmp; memset(&item_tmp,0,sizeof(item_tmp)); item_tmp.nameid = sd->status.inventory.nameid; item_tmp.identify = 1; item_tmp.refine = sd->status.inventory.refine; item_tmp.attribute = sd->status.inventory.attribute; item_tmp.expire_time = sd->status.inventory.expire_time; strcpy(item_tmp.item_hash, sd->status.inventory.item_hash); <---- Linha 11156 item_tmp.favorite = 0; for (j = sd->inventory_data->slot; j < MAX_SLOTS; j++) item_tmp.card[j]=sd->status.inventory.card[j]; pc_delitem(sd,i,1,0,3,LOG_TYPE_SCRIPT); if((flag=pc_additem(sd,&item_tmp,1,LOG_TYPE_SCRIPT))){ clif_additem(sd,0,0,flag); map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0); } clif_misceffect(&sd->bl,3); } return 0; } Thanks.
  8. Before I compiled without problems, now I'm having this problem. Anyone know how to solve this? ERROR: pc.c: In function âpc_statusup3â: pc.c:5757: warning: implicit declaration of function âpc_getstatâ pc.c:5764: warning: implicit declaration of function âpc_setstatâ pc.c: At top level: pc.c:5811: error: static declaration of âpc_getstatâ follows non-static declaration pc.c:5757: error: previous implicit declaration of âpc_getstatâ was here pc.c:5829: error: static declaration of âpc_setstatâ follows non-static declaration pc.c:5764: error: previous implicit declaration of âpc_setstatâ was here make[1]: *** [obj_sql/pc.o] Error 1 int pc_statusup3(struct map_session_data* sd, int type, int amount) { int max, need, val; nullpo_ret(sd); // check conditions need = pc_need_status_point(sd,type,amount); if( type < SP_STR || type > SP_LUK || need < 0 || need > sd->status.status_point ) { clif_statusupack(sd,type,0,0); return 1; } // check limits max = pc_maxparameter(sd); if( pc_getstat(sd,type) >= max ) { clif_statusupack(sd,type,0,0); return 1; } // set new values val = pc_setstat(sd, type, pc_getstat(sd,type) + amount); sd->status.status_point -= need; status_calc_pc(sd,0); // update increase cost indicator if( need != pc_need_status_point(sd,type,amount) ) clif_updatestatus(sd, SP_USTR + type-SP_STR); // update statpoint count clif_updatestatus(sd,SP_STATUSPOINT); // update stat value clif_statusupack(sd,type,amount,val); // required if( val > 255 ) clif_updatestatus(sd,type); // send after the 'ack' to override the truncated value return 0; } Line 5757: if( pc_getstat(sd,type) >= max ) Line 5764: val = pc_setstat(sd, type, pc_getstat(sd,type) + amount); /// Returns the value of the specified stat. static int pc_getstat(struct map_session_data* sd, int type) { <---- LINE 5811 nullpo_retr(-1, sd); switch( type ) { case SP_STR: return sd->status.str; case SP_AGI: return sd->status.agi; case SP_VIT: return sd->status.vit; case SP_INT: return sd->status.int_; case SP_DEX: return sd->status.dex; case SP_LUK: return sd->status.luk; default: return -1; } } /// Sets the specified stat to the specified value. /// Returns the new value. static int pc_setstat(struct map_session_data* sd, int type, int val) { <---- LINE 5829 nullpo_retr(-1, sd); switch( type ) { case SP_STR: sd->status.str = val; break; case SP_AGI: sd->status.agi = val; break; case SP_VIT: sd->status.vit = val; break; case SP_INT: sd->status.int_ = val; break; case SP_DEX: sd->status.dex = val; break; case SP_LUK: sd->status.luk = val; break; default: return -1; } return val; } Thanks.
  9. Hi, Is there any command in the Emulator, to check if the user has the full inventary Thanks.
  10. Mooka, seria interessante por uma opção para não ser possivel ganhar pontos caso mate o mesmo jogador em X tempo, pois assim dificultaria 2 jogadores entrarem no pvp e um ficar morrendo direto para outro ganhar pontos. Ai seria interessante uma variavel, difinindo o tempo entre um ponto e outro vindo do mesmo jogador. Valeu.
  11. If I teleport to another map, players no longer see my cart. How to solve this? PS: I keep seeing my cart. Just the other players can not see.
  12. If I go out and enter in the game do not see the cart of another player. If I die other players no longer see my cart, but I see my cart. How to solve this now? Sorry my bad english. thanks.
  13. the skill "SA_DISPELL" removing the cart. Anyone know how to solve this? Thanks.
  14. I also'm trying do this there days ... I tried to change the source, but it did not work.
  15. There is some command that I can put in an NPC to redirect a link to the browser (IE, FIREFOX ETC)? Thanks.
  16. The problem is that the damage reflected by the enemy back at the attacker and not the redemptive ... How to change the damage go to the paladin who used the devotion? thanks.
  17. rathena changed something in the scripts of kafra?
  18. You save on kafra, after died he was born in Prontera (while alive using butterfly wing point back to the normal)
  19. I can not descend and ascend on a mount (Wolf, Ferus, Griffin, etc.). I would like to exit the Alt + Q and catch in the NPC. The cart is disappearing when you die, you know how to solve this too? thanks.
  20. My players have complained that after a while playing, the hexed begins to slow down and lag after closing and opening the game the problem is resolved. Anyone know how to solve this problem? It seems that the hexed gets overloaded after a while. He's not loading the manner.txt, anyone know what might be? Thanks.
  21. I just tested in 2 ways: 1 - 800MB large database from my server, without any NPC rathena ... When I enter the map-server in a locked 2 secs and enter the map. 3 - Database clean test server. Come quick without lock (delay). In 2010 hexed, I do not have this problem. I am now using the 2012-03-07F, but apparently the problem is in the emulator or something. Anyone have any idea what might be? The problem in the table ta char ... if you have more than 5000 registered users of this delay to login ... I have a 400k with registered users of the delay and the same db with the 5k users ... Now I put the other with 4 registered users ... is immediate ... Last Tests The problem is the char table. I created a new table and now the delay is occurring when you enter the map-server, however the other with 27 chars is coming fast, without delay
  22. It's not working to create party and guild with space ... is this normal? How do I change it? hexed: 2012-03-07f
×
×
  • Create New...