Jump to content

FelipeMartins

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by FelipeMartins

  1. I want to make it in the easier way. I want 2 factions, A and B. In some maps the Pvp is opened for this factions, no matter parties, guilds or something.
  2. it doesn't make sense, why? how can i do it work with mariaDB?
  3. i did it a few times, cleanning and doing again
  4. Works! but not perfect. Notice: Undefined offset: 0 in /home/brasilra/public_html/addons/voteforpoints/modules/voteforpoints/index.php on line 44 When I try to click and vote doesn't works!
  5. I couldn't do it, can you provide more information?
  6. <?php if (!defined('FLUX_ROOT')) exit; ?> <br/> <h2>Add New Voting Site - Administrator</h2> <?php if(count($error)>0): ?> <h3>Error:</h3> <ul> <?php foreach($error as $err){ ?> <li><?php echo $err; ?></li> <?php } ?> </ul> <?php endif; ?> <form action="<?php echo $this->url ?>&return=add_site" method="post" enctype="multipart/form-data" class="generic-form"> <table class="vertical-table" width="100%"> <tr> <th align="left"> <?php echo Flux::message('SITE_NAME_LABEL'); ?> </th> <td> <input type="text" name="site_name" id="id_site_name" value="<?php echo $params->get('site_name'); ?>" placeholder="Enter Site Name" required="required" /> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('ADDRESS_LABEL'); ?> </th> <td> <input type="text" name="site_address" id="id_site_address" value="<?php echo $params->get('site_address'); ?>" placeholder="Enter Site Name" required="required" /> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('BANNER_LABEL'); ?> </th> <td> <input type="file" name="banner_upload" id="id_banner_upload" value="<?php echo $params->get('banner_upload'); ?>" /> <input type="checkbox" name="cbox_banner_url" id="id_cbox_banner_url" <?php if($params->get('cbox_banner_url')) echo "CHECKED"; ?>/><i>URL Banner:</i> <input type="text" name="banner_url" id="id_banner_url" value="<?php echo $params->get('banner_url'); ?>" placeholder="Enter Banner URL" <?php if($params->get('cbox_banner_url')) echo "ENABLED"; else echo "DISABLED"; ?>/> <br/> <i style="color:red">Allowed file types for file upload: <?php echo $file_types; ?></i> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('BLOCK_TIME_LABEL'); ?> </th> <td> <select name="blocking_hours" id="id_blocking_hours"> <?php for($i = 1; $i<=24; $i++){ ?> <option value="<?php echo $i; ?>" <?php if($params->get('blocking_hours')==$i){ echo "SELECTED"; } ?>><?php echo $i; ?></option> <?php } ?> </select> <i>hr(s).</i> <select name="blocking_minutes" id="id_blocking_minutes"> <?php for($i = 0; $i<=59; $i++){ ?> <option value="<?php echo $i; ?>" <?php if($params->get('blocking_minutes')==$i){ echo "SELECTED"; } ?>><?php echo $i; ?></option> <?php } ?> </select> <i>min(s).</i> </td> </tr> <tr> <th align="left"> <?php echo Flux::message('POINTS_LABEL'); ?> </th> <td> <input type="text" name="points" id="id_points" value="<?php echo $params->get('points'); ?>" placeholder="Enter Points" required="required" /> </td> </tr> <tr> <td colspan="2" align="right"> <input type="reset" value="Clear"/> <input type="submit" name="Add" id="Add" value="Submit"/> </td> </tr> </table> </form> <script type="text/javascript" language="javascript"> $('#id_cbox_banner_url').change(function(){ var checked = $(this).attr('CHECKED'); $('#id_banner_url').attr('DISABLED',!checked); $('#id_banner_upload').attr('DISABLED',!!checked); }); </script>
  7. how can I provide this information ?
  8. I did... i need use a command "gdb map-server map-server_sql.core" when? after run my server?
  9. I am trying to debug rathena on linux... how can I do it?
  10. where i put it/? Index: src/map/mob.h =================================================================== --- src/map/mob.h (revision 16936) +++ src/map/mob.h (working copy) @@ -123,6 +123,7 @@ struct block_list bl; struct unit_data ud; struct view_data *vd; + struct tmp_data tmpd; struct status_data status, *base_status; //Second one is in case of leveling up mobs, or tiny/large mobs. struct status_change sc; struct mob_db *db; //For quick data access (saves doing mob_db(md->class_) all the time) [Skotlex] Index: src/map/pc.h =================================================================== --- src/map/pc.h (revision 16936) +++ src/map/pc.h (working copy) @@ -91,6 +91,7 @@ struct block_list bl; struct unit_data ud; struct view_data vd; + struct tmp_data tmpd; struct status_data base_status, battle_status; struct status_change sc; struct regen_data regen; Index: src/map/skill.c =================================================================== --- src/map/skill.c (revision 16936) +++ src/map/skill.c (working copy) @@ -2110,7 +2110,38 @@ return 0; } - +int skill_mcri_hit(int tid, unsigned int tick, int id, intptr_t data) +{ + struct mob_data *md = (struct mob_data *)data; + struct tmp_data *tmpd; + tmpd = &md->tmpd; + if(tmpd!=NULL) + { + switch(1) // 1 = red ; 2 = blue + { + case 1: + clif_damage(tmpd->src, tmpd->bl, gettick(), 1, 1, id, 0, 10, 0); + break; + case 2: + clif_skill_damage(tmpd->src,tmpd->bl,gettick(), 1, 1, id, 0, TK_STORMKICK, 1, 8); + clif_skill_nodamage(tmpd->src,tmpd->src,tmpd->num[0],tmpd->num[1],1); + break; + } + } + return 0; +} +int skill_mcri_kill_delay(int tid, unsigned int tick, int id, intptr_t data) +{ + struct block_list *bl = map_id2bl(id); + struct block_list *src = (struct block_list *)data; + struct mob_data *md = BL_CAST(BL_MOB, bl); + if(bl!=NULL) + { + mob_dead(md,src,0); + status_kill(bl); + } + return 0; +} /* * ========================================================================= * Does a skill attack with the given properties. @@ -2449,6 +2480,48 @@ default: if( flag&SD_ANIMATION && dmg.div_ < 2 ) //Disabling skill animation doesn't works on multi-hit. type = 5; + //m_cri + if ( src->type == BL_PC || battle_get_master(src)->type == BL_PC ) + { + char m_cri = 0; + if(sd==NULL) + m_cri = cap_value(map_id2sd(battle_get_master(src)->id)->battle_status.cri/10,1,100); + else + m_cri = cap_value(sd->battle_status.cri/10,1,100); + if( rand()%100 < m_cri ) + { + struct mob_data *md=NULL; + struct tmp_data *tmpd=NULL; + int d_ = 200; + unsigned int u_ = 0; + int i=0, num=abs(skill_get_num(skillid,skilllv)), _damage=0; + damage *= 2; + md = mob_once_spawn_sub(src, src->m, src->x, src->y, "--en--",1083,"", SZ_SMALL, AI_NONE); + md->deletetimer=add_timer(tick+d_*num+1,mob_timer_delete,md->bl.id,0); + status_set_viewdata(&md->bl, INVISIBLE_CLASS); + tmpd = &md->tmpd; + if(skill_get_splash(skillid,skilllv)>1&&num>1) + num = 1; + _damage = damage/num; + tmpd->src = src; + tmpd->bl = bl; + tmpd->num[0]=skillid; + tmpd->num[1]=skilllv; + u_ = tick+d_*num+1; + if( tstatus->hp <= damage )//delay to kill it + { + damage = 1; + status_change_start(bl, SC_BLADESTOP_WAIT, 10000, 1, 0, 0, 0, u_, 2); + status_change_start(bl, SC_INVINCIBLE, 10000, 1, 0, 0, 0, u_, 2); + add_timer(u_,skill_mcri_kill_delay,bl->id,(intptr_t)src); + } + clif_skill_nodamage(src,src,skillid,skilllv,1); + for(i=0;i<num;i++) + add_timer(tick+d_*i +1,skill_mcri_hit,_damage,(intptr_t)md); + u_ = d_ = _damage = 0; + break; + } + } if( bl->type == BL_SKILL ){ TBL_SKILL *su = (TBL_SKILL*)bl; if( su->group && skill_get_inf2(su->group->skill_id)&INF2_TRAP )// show damage on trap targets Index: src/map/skill.h =================================================================== --- src/map/skill.h (revision 16936) +++ src/map/skill.h (working copy) @@ -21,7 +21,8 @@ #define MAX_SKILL_IMPROVISE_DB 50 #define MAX_SKILL_LEVEL 100 - +int skill_mcri_hit(int tid, unsigned int tick, int _damage, intptr_t data); +int skill_mcri_kill_delay(int tid, unsigned int tick, int id, intptr_t data); //Constants to identify the skill's inf value: enum e_skill_inf { Index: src/map/unit.h =================================================================== --- src/map/unit.h (revision 16936) +++ src/map/unit.h (working copy) @@ -13,7 +13,11 @@ #include "map.h" // struct block_list #include "path.h" // struct walkpath_data #include "skill.h" // struct skill_timerskill, struct skill_unit_group, struct skill_unit_group_tickset - +struct tmp_data { + struct block_list *src; + struct block_list *bl; + int num[2]; +}; struct unit_data { struct block_list *bl; struct walkpath_data walkpath;
  11. I tryed to use it, but show me erros. Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão Erro C2198 'status_change_start': poucos argumentos para chamada map-server d:\servidor\emulador\rathena\src\map\skill.c 3457 Erro C2198 'clif_damage': poucos argumentos para chamada map-server d:\servidor\emulador\rathena\src\map\skill.c 3030 Erro C2065 'skillid': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3439 Erro C2065 'skilllv': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3439 Erro C2065 'skillid': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3445 Erro C2065 'skilllv': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3445 Erro C2065 'skillid': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3450 Erro C2065 'skilllv': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3451 Erro C2198 'status_change_start': poucos argumentos para chamada map-server d:\servidor\emulador\rathena\src\map\skill.c 3456 Erro C2065 'skillid': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3460 Erro C2065 'skilllv': identificador não declarado map-server d:\servidor\emulador\rathena\src\map\skill.c 3460
  12. Congratulations for this work, I don't have time, sorry bro. I hope you can do it well!
  13. if you find the solution, share with us please.
  14. nothing helpful. guys! i need help please!!! please!!!
  15. i tried, but nothing show! i see nothing.
  16. FluxCP Addon: Vote For Points hello, can you help me add a new web site to vote?
×
×
  • Create New...