Jump to content

chowking

Members
  • Posts

    178
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by chowking

  1. How to remove the Scripts line displayed when viewing an item in the database? i wish to hide the item/equipment scripts,, im using Xantara's flux CP im sorry but i need to sleep be back tomorrow,
  2. may pk mode script akong nkuha, kaya lng hinde nkakapag devo or buffs ang parehas "pk off" state na players pk_mod_rA_r16215.PATCH dpat po sana ang mangyari is pag PK off: nkakapag buffs ang iba ibang players basta pk off, pero bawal pden mka attack sa ibang players. tulong po , salmat
  3. bro try this http://rathena.org/board/topic/69638-devotion-reflect-damage/
  4. chowking

    Devotion skill

    @fcuk and @iMicah just revert the devotion skill to a old revision but the trac is still down so, you'll have to wait it out
  5. Hello, i have this @pk mod, the problem is when Pally and a char, are both in pk off state, pally wont be able to devo the char, basically pally->devo->party member (both pk off) = success pally->devo->party member (both pk on) = success pally->devo->party member (not in same pk state) = fail currently happening, pally->devo->party member (both pk on) = success pally->devo->party member (both pk off) = fail pally->devo->party member (not in same pkstate) = fail conf\atcommand_athena.conf pk: 0,80 // pk map\atcommand.c, find --------------------- /*========================================== * atcommand_info[] structure definition *------------------------------------------*/ AtCommandInfo atcommand_info[] = { it becomes ---------- // @pk int atcommand_pk( const int fd, struct map_session_data *sd, const char *command, const char *message ) { unsigned int tick = gettick(); nullpo_retr(-1, sd); if(!map[sd->bl.m].flag.town){ //Only can be used at town clif_displaymessage(sd->fd, "You can only use this command inside towns."); return -1; } if(DIFF_TICK(sd->pk_mode_tick,tick) > 0){ //check the delay before use this command again clif_displaymessage(sd->fd, "You must wait 60 seconds to use this command again."); return -1; } else{ if (!sd->state.pk_mode) { sd->state.pk_mode = 1; clif_displaymessage(sd->fd, "You are can no longer be attacked by players."); sd->pk_mode_tick = tick + 60000; //set the delay here } else { sd->state.pk_mode = 0; clif_displaymessage(sd->fd, "You can now attack players"); sd->pk_mode_tick = tick + 60000; //set the delay here } return 0; } /*========================================== * atcommand_info[] structure definition *------------------------------------------*/ AtCommandInfo atcommand_info[] = { ============================================================================================================================== ============================================================================================================================== map\atcommand.c, find --------------------- { "delitem", 60,60, atcommand_delitem }, { "charcommands", 1,1, atcommand_commands }, { "font", 1,1, atcommand_font }, it becomes ---------- { "delitem", 60,60, atcommand_delitem }, { "charcommands", 1,1, atcommand_commands }, { "font", 1,1, atcommand_font }, { "pkmode", 0,80, atcommand_pkmode }, ============================================================================================================================== ============================================================================================================================== map\battle.c, find (line 3407 svn15191) --------------------------------------- if( sd->state.monster_ignore && flag&BCT_ENEMY ) return 0; // Global inminuty only to Attacks if( sd->status.karma && s_bl->type == BL_PC && ((TBL_PC*)s_bl)->status.karma ) state |= BCT_ENEMY; // Characters with bad karma may fight amongst them it becomes ---------- if( sd->state.monster_ignore && flag&BCT_ENEMY ) return 0; // Global inminuty only to Attacks if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB ) return 0; if( sd->status.karma && s_bl->type == BL_PC && ((TBL_PC*)s_bl)->status.karma ) state |= BCT_ENEMY; // Characters with bad karma may fight amongst them still in map\battle.c, near above, find (line 3471 svn15191) ------------------------------------------------------------ else return 0; // You can't target anything out of your duel } } if( map_flag_gvg(m) && !sd->status.guild_id && t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->guardian_data ) it becomes ---------- else return 0; // You can't target anything out of your duel } else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB ) //pkmode return 0; //pkmode } if( map_flag_gvg(m) && !sd->status.guild_id && t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->guardian_data ) the last, in map\pc.h, find (line 141 svn15191) ----------------------------------------------- unsigned int warping : 1;//states whether you're in the middle of a warp processing } state; struct { it becomes ---------- unsigned int warping : 1;//states whether you're in the middle of a warp processing unsigned int pk_mode : 1; //[malufett] //pkmode } state; struct { ============================================================================================================================== ============================================================================================================================== map\pc.h, find (line 210 svn15191) ---------------------------------- unsigned int ks_floodprotect_tick; // [Kill Steal Protection] struct { become ------ unsigned int ks_floodprotect_tick; // [Kill Steal Protection] unsigned int pk_mode_tick; //@pkmode struct { map\pc.h, find (line 579 svn15191) ---------------------------------- sd->canlog_tick = gettick(); //Required to prevent homunculus copuing a base speed of 0. become ------ sd->canlog_tick = gettick(); sd->pk_mode_tick = gettick(); //@pk //Required to prevent homunculus copuing a base speed of 0.
  6. bro what revision did you reverted to
  7. fixed it now, you're absolutely right
  8. emperium spirte? even though its just walkling to the portal to enter emp room ,, even though he doesn't see the emp yet?
  9. Hello,, does anyone know about this problem,, my players always get gravity error when entering pre emp (portal before emperium room || Last portal) only warning i recieve when compiling was no new line in cashshop.h or .c
  10. is this it? you might wanna try to update the code since this is from eathena, idk if it will work here on rathena code is not mine so credits to whoever released/contributed this Index: src/common/socket.c =================================================================== --- src/common/socket.c (revision 14799) +++ src/common/socket.c (working copy) @@ -196,6 +196,8 @@ time_t last_tick; time_t stall_time = 60; +uint32 max_packet_spam = 20; // max. allowed TCP packets per second + uint32 addr_[16]; // ip addresses of local host (host byte order) int naddr_ = 0; // # of ip addresses @@ -324,6 +326,21 @@ session[fd]->rdata_size += len; session[fd]->rdata_tick = last_tick; + + // packet flood detection + if( DIFF_TICK(last_tick, session[fd]->last_reset) >= 1 ) + { + if( !session[fd]->flag.server && session[fd]->packet_counter > max_packet_spam) + { + ShowWarning("Client %s is spamming packets too fast!\n", ip2str(session[fd]->client_addr, NULL)); + //set_eof(fd); // uncomment to also kick this spammer + } + + session[fd]->packet_counter = 0; + session[fd]->last_reset = last_tick; + } + session[fd]->packet_counter++; + return 0; } Index: src/common/socket.h =================================================================== --- src/common/socket.h (revision 14799) +++ src/common/socket.h (working copy) @@ -93,6 +93,10 @@ SendFunc func_send; ParseFunc func_parse; + // packet flood detection + uint32 packet_counter; // counts received packets per iteration + time_t last_reset; // time when the counter was last reset + void* session_data; // stores application-specific data related to the session };
  11. here,, we've already did that mod http://rathena.org/board/topic/81736-customizing-landprotector/
  12. what would be the earliest client with 2000+ view ID (start of my customs) oh and should be 4 skill slot bm, and quest window, im thinking of using a older client so players with old kro can join, oh topic title doesn't match sorry ,
  13. at long last i did it thank you lighta i just needed to add this, just directly copied ankle snare LOL! in src/map/skill.c case HT_ANKLESNARE: { struct block_list* target = map_id2bl(group->val2); if( target ) status_change_end(target, SC_ANKLE, INVALID_TIMER);}break;+case PF_SPIDERWEB: {+ struct block_list* target = map_id2bl(group->val2);+ if( target)+ status_change_end(target, SC_SPIDERWEB, INVALID_TIMER);+}+break;
  14. is it possible to convert the points into cashpoints? to be used in cash shop?
  15. thanks for the fast rep, i'll try it right away nothing works in inf2
  16. i've recently edited the source of spider web following martin's mod http://rathena.org/board/topic/53901-how-to-make-spider-web-works-like-ankle-snare-and-soul-link-that-adds-max-hp/ edited it a little. the spider web will be target to the ground and act as a trap, so when a player steps on it , a timer that restricts a character's movement (can't move but can still use skill) . i'm missing a mod where, when Landprotector is casted on the spider web it also removes the status timer of the player. here's the code starting at line 11427 case UNT_SPIDERWEB: if(sg->val2==0 && tsc){ int sec = skill_get_time2(sg->skill_id,sg->skill_lv); if( status_change_start(bl,type,10000,sg->skill_lv,sg->group_id,0,0,sec, tick) ) { const struct TimerData* td = tsc->data[type]?get_timer(tsc->data[type]->timer):NULL; if (td) sec = DIFF_TICK(td->tick, tick); unit_movepos(bl, src->bl.x, src->bl.y, 0, 0); clif_fixpos(bl); sg->val2=bl->id; } else sec = 20; } break;
  17. @Adel sorry for not being able to reply immediately. but thank you,
  18. @naaan, the towninfo.lua is already translated ,what i was hoping to do was, to make some custom buttons on the map, the original has the smith inn etc. buttons, i want to edit that and put a healer mvp warper, currency exchanger buttons, so that noobs on the server wont have such a hard time trying to find the custom NPCs where can i find those buttons/files that the towninfo uses?
  19. towninfo,i was planning to make some custom button on the map, like navi for healer mvp warper and other custom scripts
×
×
  • Create New...