Jump to content

Promise

Members
  • Posts

    386
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Promise

  1. conf/battle/skill.conf // Using 'old' behavior for devotion vs reflect damage? (Note 2) // Default is 0 (official). If 'devotion_rdamage' is > 0 (chance to devote the reflected damage), // when player with devotion attacks player with reflect damage ability (item bonus or skill), // the damage will be taken by the person who provides devotion instead the attacker. devotion_rdamage: 0
  2. I have done it on my server, if anybody wants to help me to make a diff, i can update it as a free release.
  3. Shows any error on the console?
  4. https://rathena.org/board/topic/63578-costumes-refiner-card-support/
  5. - script logout_check -1,{ OnPCLogoutEvent: set .map$, mapname; if( !compare( strcharinfo(3), .map$ ) ) end; // Poring Race map name set prace_winner$,""; set prace_playing,0; } Try this, put it at the end of the script.
  6. Compile: Visual Basics C++ 2010-2016 SQL: mySQL workbench
  7. To adjust the sacrifice damage: src/map/battle.c switch (skill_id) { //Calc base damage according to skill case PA_SACRIFICE: wd.damage = sstatus->max_hp* 9/100; // Here is the damage (max HP x 9 / 100) wd.damage2 = 0; Another part: src/map/status.c case SC_SACRIFICE: val2 = 5; // Here you edit the total hits of sacrifice on enable tick = -1; break;
  8. OnPCLogout: set .map$, mapname; // Poring Race map Here getmapxy(@map$, @xb, @yb, 0 ); if (@map$ != .map$) end; set prace_winner$,""; set prace_playing,0; Try this.
  9. i can try to fix it. PM me with ur skype.
  10. this MakeDWord its just a warning, it doesn't care
  11. //Brian Bg Items - updated by [AnubisK] #define BG_CHARID 165100 // char named "Battleground" // you can change the character id. #define BG_TRADE 91 // trade mask of BG consumables // You can edit the mask You have to add those lines in: src/map/battleground.h
  12. if (!((pc_has_permission(pl_sd, PC_PERM_HIDE_SESSION) || (pl_sd->sc.option & OPTION_INVISIBLE)) && pc_get_group_level(pl_sd) > level)) { // you can look only lower or same level This is a part of the @who command
  13. I dont think so, maybe you will have some problems with the host, but i dont think that the map server crashes by this.
  14. src/map/channel.c Search int channel_mjoin(struct map_session_data *sd) { if(!sd) return -1; if( !map[sd->bl.m].channel ) { map[sd->bl.m].channel = channel_create(channel_config.map_chname,NULL,channel_config.map_chcolor,CHAN_TYPE_MAP,sd->bl.m); } if( !( map[sd->bl.m].channel->opt & CHAN_OPT_ANNOUNCE_JOIN ) ) { char mout[60]; sprintf(mout, msg_txt(sd,1435),channel_config.map_chname,map[sd->bl.m].name); // You're now in the '#%s' channel for '%s'. clif_disp_onlyself(sd, mout, strlen(mout)); } return channel_join(map[sd->bl.m].channel,sd); } And replace with: int channel_mjoin(struct map_session_data *sd) { if(!sd) return -1; if( !map[sd->bl.m].channel ) { map[sd->bl.m].channel = channel_create(channel_config.map_chname,NULL,channel_config.map_chcolor,CHAN_TYPE_MAP,sd->bl.m); } /* if( !( map[sd->bl.m].channel->opt & CHAN_OPT_ANNOUNCE_JOIN ) ) { char mout[60]; sprintf(mout, msg_txt(sd,1435),channel_config.map_chname,map[sd->bl.m].name); // You're now in the '#%s' channel for '%s'. clif_disp_onlyself(sd, mout, strlen(mout)); } */ return channel_join(map[sd->bl.m].channel,sd); }
  15. Depends on what u want to edit of the skill, if you want to add a litte more hp, you can just replace the 30 for another number
  16. hp = 30 + 5 * skill_lv + 5 * (status_get_vit(src) / 10); // HP recovery Edit this 30 + 5 * skill level + 5 * player VIT /10
  17. rathena/src/map/skill.c case BA_APPLEIDUN: #ifdef RENEWAL hp = 100 + 5 * skill_lv + 5 * (status_get_vit(src) / 10); // HP recovery #else hp = 30 + 5 * skill_lv + 5 * (status_get_vit(src) / 10); // HP recovery #endif If your server is renewal edit hp = 100 + 5 * skill_lv + 5 * (status_get_vit(src) / 10); // HP recovery else hp = 30 + 5 * skill_lv + 5 * (status_get_vit(src) / 10); // HP recovery Example in renewal server: Skill level: 10 Vit of the player: 90 100 + (5 * 10) + (5 * 90/10) 100 + 50 + 45 195 This will give +195 HP if im not wrong * Note: (status_get_vit(src) / 10) = Player vit/10
  18. for(.@i = 9285; .@i <= 9289; .@i++) { if(checkquest(.@i)>=0) erasequest .@i; else { end; } }
  19. When u make this kind of scripts its for scripts that u dont need a npc Sprite or when u want to make a general script and duplicate the npc using the duplication script, for example; - script NPCNAME -1{ OnWhisperGlobal: mes "hello!"; close; } This script is not visible in the game, but if you whisp NPC:NPCNAME the server will show you a "hello!" npc message window. You can get more info in the next link https://rathena.org/wiki/Basic_Scripting
  20. if(sex) { mes "you're a male."; } else { mes "you're a female"; } sex == 1 // Male sex == 0 // female
  21. Upload your src/map/battle.c i want to check something.
  22. src/map/mail.c int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading || sd->npc_id || sd->npc_shopid ) return 0; clif_Mail_window(sd->fd, 0); return 1; } to int mail_openmail(struct map_session_data *sd) { nullpo_ret(sd); if( sd->state.storage_flag || sd->state.vending || sd->state.buyingstore || sd->state.trading ) return 0; clif_Mail_window(sd->fd, 0); return 1; }
  23. Promise

    please help

    You can attack other players with this mapflag enabled?
×
×
  • Create New...