Jump to content

brunoshp

Members
  • Content Count

    177
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

6 Neutral

5 Followers

About brunoshp

  • Rank
    Poporing

Profile Information

  • Gender
    Male
  • Location
    brazil

Recent Profile Visitors

2,955 profile views
  1. I made this ability to hit and damage allies, but on GVG maps it doesn't work, I did a test and put the mouse attack mode on GVG maps, and it worked, but by default all allies have this mode activated. the essential would be to enable /ns or when someone uses this skill the mouse goes into attack mode .
  2. Man, go to /src/map/battle.cpp in Line 2617 and check it. case SN_SHARPSHOOTING: case MA_SHARPSHOOTING: #ifdef RENEWAL cri += 300; // !TODO: Confirm new bonus #else cri += 200; #endif if you want increase this value.
  3. Hello, im try get Offset of my client for some days, and i dont have success. i need Help!! im using IDa for try get it. i need this offset : CModeMgr g_modeMgr CModeMgr::GetGameMode CRagConnection::instanceR CRagConnection::GetPacketSize CRagConnection::instanceR CRagConnection::SendPacket UIWindowMgr g_windowMgr UIWindowMgr::DeleteWindow my client is 2018-05-30re
  4. Hello! I'm trying to get Shar to take allies, I did it! but I have a problem, on GVG maps I hit my ally from the same Guild sometimes yes sometimes no! - Id: 382 Name: SN_SHARPSHOOTING Description: Focused Arrow Strike MaxLevel: 5 Type: Weapon TargetType: Attack DamageFlags: Critical: true Flags: GuildOnly: true PartyOnly: true I believe it is the cursor attack! void clif_map_property(struct block_list *bl, enum map_property property, enum send_target t) { #if PACKETVER >= 20121010 short cmd = 0x99b; unsigned char buf[8]; #else short cmd = 0x199; unsigned char buf[4]; #endif WBUFW(buf,0)=cmd; WBUFW(buf,2)=property; #if PACKETVER >= 20121010 struct map_data *mapdata = map_getmapdata(bl->m); WBUFL(buf, 4) = ((mapdata->flag[MF_PVP] ? 1 : 0 || (bl->type == BL_PC && ((TBL_PC*)bl)->duel_group > 0)) << 0) | // PARTY - Show attack cursor on non-party members (PvP) ((mapdata->flag[MF_BATTLEGROUND] || mapdata_flag_gvg2(mapdata) ? 1 : 0) << 1) |// GUILD - Show attack cursor on non-guild members (GvG) ((mapdata->flag[MF_BATTLEGROUND] || mapdata_flag_gvg2(mapdata) ? 1 : 0) << 2) |// SIEGE - Show emblem over characters heads when in GvG (WoE castle) ((mapdata->flag[MF_NOMINEEFFECT] || !mapdata_flag_gvg2(mapdata) ? 0 : 1) << 3) | // USE_SIMPLE_EFFECT - Automatically enable /mineffect ((mapdata->flag[MF_NOLOCKON] || mapdata_flag_vs(mapdata) ? 1 : 0) << 4) | // DISABLE_LOCKON - Only allow attacks on other players with shift key or /ns active ((mapdata->flag[MF_PVP] ? 1 : 0) << 5) | // COUNT_PK - Show the PvP counter ((mapdata->flag[MF_PARTYLOCK] ? 1 : 0) << 6) | // NO_PARTY_FORMATION - Prevents party creation/modification (Might be used for instance dungeons) ((mapdata->flag[MF_BATTLEGROUND] ? 1 : 0) << 7) | // BATTLEFIELD - Unknown (Does something for battlegrounds areas) ((mapdata->flag[MF_NOCOSTUME] ? 1 : 0) << 8) | // DISABLE_COSTUMEITEM - Disable costume sprites ((mapdata->flag[MF_NOUSECART] ? 0 : 1) << 9) | // USECART - Allow opening cart inventory (Well force it to always allow it) ((mapdata->flag[MF_NOSUNMOONSTARMIRACLE] ? 0 : 1) << 10); // SUNMOONSTAR_MIRACLE - Blocks Star Gladiator's Miracle from activating //(1<<11); // Unused bits. 1 - 10 is 0x1 length and 11 is 0x15 length. May be used for future settings. #endif clif_send(buf,packet_len(cmd),bl,t); } can anybody help me?
  5. Dont have support? hahaha or are you not the creator of this system?
  6. in the old rathena, skilld db i had the option // 04 inf (0- passive, 1- enemy, 2- place, 4- self, 16- friend, 32- trap) and I could make the ability have an effect on anyone I wanted. in the new rathena would be the TargetType? how would I make SN_SHARPSHOOTING have an effect on allies?
  7. brunoshp

    Prrovoker

    How i can make The skill work on party and guild only in maps GVG and Battlegrounds ? case SM_PROVOKE: case SM_SELFPROVOKE: case MER_PROVOKE: if( status_has_mode(tstatus,MD_STATUS_IMMUNE) || battle_check_undead(tstatus->race,tstatus->def_ele) ) { map_freeblock_unlock(); return 1; } // Official chance is 70% + 3%*skill_lv + srcBaseLevel% - tarBaseLevel% if(!(i = sc_start(src, bl, type, skill_id == SM_SELFPROVOKE ? 100 : (70 + 3 * skill_lv + status_get_lv(src) - status_get_lv(bl)), skill_lv, skill_get_time(skill_id, skill_lv)))) { if(sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); map_freeblock_unlock(); return 0; } clif_skill_nodamage(src, bl, skill_id == SM_SELFPROVOKE ? SM_PROVOKE : skill_id, skill_lv, i); unit_skillcastcancel(bl, 2); if( tsc && tsc->count ) { status_change_end(bl, SC_FREEZE, INVALID_TIMER); if( tsc->data[SC_STONE] && tsc->opt1 == OPT1_STONE ) status_change_end(bl, SC_STONE, INVALID_TIMER); status_change_end(bl, SC_SLEEP, INVALID_TIMER); status_change_end(bl, SC_TRICKDEAD, INVALID_TIMER); } if( dstmd ) { dstmd->state.provoke_flag = src->id; mob_target(dstmd, src, skill_get_range2(src, skill_id, skill_lv, true)); }
  8. I just wanted to show that the item would drop from the monster, even if it didn't. @Emistry is it possible to set 1, that is 0, for enter in FOR after set dropchance to 0 to show? item_data->mob[j].chance
  9. Hi, I would like to show the name of the monster on which the card is dropped even if the drop is 0. how i can do it? ACMD_FUNC(whodrops) { struct item_data *item_data, *item_array[MAX_SEARCH]; int i,j, count = 1; if (!message || !*message) { clif_displaymessage(fd, msg_txt(sd,1284)); // Please enter item name/ID (usage: @whodrops <item name/ID>). return -1; } if ((item_array[0] = itemdb_exists(strtoul(message, nullptr, 10))) == nullptr) count = itemdb_searchname_array(item_array, MAX_SEARCH, message); if (!count) { clif_displaymessage(fd, msg_txt(sd,19)); // Invalid item ID or name. return -1; } if (count == MAX_SEARCH) { sprintf(atcmd_output, msg_txt(sd,269), MAX_SEARCH); // Displaying first %d matches clif_displaymessage(fd, atcmd_output); } for (i = 0; i < count; i++) { item_data = item_array[i]; sprintf(atcmd_output, msg_txt(sd,1285), item_data->jname, item_data->slot, item_data->nameid); // Item: '%s'[%d] (ID: %u) clif_displaymessage(fd, atcmd_output); if (item_data->mob[0].chance == 0) { strcpy(atcmd_output, msg_txt(sd,1286)); // - Item is not dropped by mobs. clif_displaymessage(fd, atcmd_output); } else { sprintf(atcmd_output, msg_txt(sd,1287), MAX_SEARCH); // - Common mobs with highest drop chance (only max %d are listed): clif_displaymessage(fd, atcmd_output); for (j=0; j < MAX_SEARCH && item_data->mob[j].chance > 0; j++) { int dropchance = item_data->mob[j].chance; #ifdef RENEWAL_DROP if( battle_config.atcommand_mobinfo_type ) dropchance = dropchance * pc_level_penalty_mod(mob_db(item_data->mob[j].id)->lv - sd->status.base_level, mob_db(item_data->mob[j].id)->status.class_, mob_db(item_data->mob[j].id)->status.mode, 2) / 100; #endif if (pc_isvip(sd)) // Display item rate increase for VIP dropchance += (dropchance * battle_config.vip_drop_increase) / 100; sprintf(atcmd_output, "- %s (%d): %02.02f%%", mob_db(item_data->mob[j].id)->jname, item_data->mob[j].id, dropchance/100.); clif_displaymessage(fd, atcmd_output); } } } return 0; } i changed for >=0 but got error,crash server! for (j=0; j < MAX_SEARCH && item_data->mob[j].chance > 0; j++)
  10. brunoshp

    Color in Name

    i have this, but dont work, someone can help!? clif.cpp void clif_parse_GlobalMessage(int fd, struct map_session_data* sd) { const char* text = (char*)RFIFOP(fd, 4); int textlen = RFIFOW(fd, 2) - 4; int gm_lvl = pc_get_group_level(sd); char* name, * message, * fakename = NULL; int namelen, messagelen; unsigned long player = strtoul("0x55AE3A", NULL, 0); //normal player color leaf unsigned long GM20 = strtoul("0xFFA500", NULL, 0); //GM level 20 to 39 color orange unsigned long GM40 = strtoul("0xCD00CD", NULL, 0); //GM level 40 to 59 color magenta3 unsigned long GM60 = strtoul("0x006400", NULL, 0); //GM level 60 to 79 color dark green unsigned long GM80 = strtoul("0x00008B", NULL, 0); //GM level 80 to 98 color dark blue unsigned long admin = strtoul("0xFF0000", NULL, 0); //Admin color red bool is_fake; // validate packet and retrieve name and message //if (!clif_process_message(sd, 0, name, message, messagelen)) if (!clif_process_message(sd, true, name, message, fakename)) return; if (is_atcommand(fd, sd, message, 1)) return; if (sd->sc.data[SC_BERSERK] || (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1 & MANNER_NOCHAT)) return; if (battle_config.min_chat_delay) { //[Skotlex] if (DIFF_TICK(sd->cantalk_tick, gettick()) > 0) return; sd->cantalk_tick = gettick() + battle_config.min_chat_delay; } /** * Fake Name Design by FatalEror (bug report #9) **/ if ((is_fake = (sd->fakename[0]))) { fakename = (char*)aMalloc(strlen(sd->fakename) + messagelen + 3); strcpy(fakename, sd->fakename); strcat(fakename, " : "); strcat(fakename, message); textlen = strlen(fakename) + 1; } // send message to others (using the send buffer for temp. storage) WFIFOHEAD(fd, 12 + textlen); WFIFOW(fd, 0) = 0x2C1; WFIFOW(fd, 2) = 12 + textlen; WFIFOL(fd, 4) = sd->bl.id; if (gm_lvl == 99) { WFIFOL(fd, 8) = (admin & 0x0000FF) << 16 | (admin & 0x00FF00) | (admin & 0xFF0000) >> 16; } else if (gm_lvl == 0) { WFIFOL(fd, 8) = (player & 0x0000FF) << 16 | (player & 0x00FF00) | (player & 0xFF0000) >> 16; } else if (gm_lvl >= 20 && gm_lvl <= 39) { WFIFOL(fd, 8) = (GM20 & 0x0000FF) << 16 | (GM20 & 0x00FF00) | (GM20 & 0xFF0000) >> 16; } else if (gm_lvl >= 40 && gm_lvl <= 59) { WFIFOL(fd, 8) = (GM40 & 0x0000FF) << 16 | (GM40 & 0x00FF00) | (GM40 & 0xFF0000) >> 16; } else if (gm_lvl >= 60 && gm_lvl <= 79) { WFIFOL(fd, 8) = (GM60 & 0x0000FF) << 16 | (GM60 & 0x00FF00) | (GM60 & 0xFF0000) >> 16; } else if (gm_lvl >= 80 && gm_lvl <= 98) { WFIFOL(fd, 8) = (GM80 & 0x0000FF) << 16 | (GM80 & 0x00FF00) | (GM80 & 0xFF0000) >> 16; } safestrncpy((char*)WFIFOP(fd, 8), is_fake ? fakename : text, textlen); //FIXME: chat has range of 9 only clif_send(WFIFOP(fd, 0), WFIFOW(fd, 2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC); // send back message to the speaker if (is_fake) { WFIFOW(fd, 0) = 0x8e; WFIFOW(fd, 2) = textlen + 4; safestrncpy((char*)WFIFOP(fd, 4), fakename, textlen); aFree(fakename); } else { memcpy(WFIFOP(fd, 0), RFIFOP(fd, 0), RFIFOW(fd, 2)); WFIFOW(fd, 0) = 0x8e; } WFIFOSET(fd, WFIFOW(fd, 2)); #ifdef PCRE_SUPPORT // trigger listening npcs map_foreachinrange(npc_chat_sub, &sd->bl, AREA_SIZE, BL_NPC, text, textlen, &sd->bl); #endif // Chat logging type 'O' / Global Chat log_chat(LOG_CHAT_GLOBAL, 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message); } 1>clif.cpp 1>D:\Emulador\src\map\clif.cpp(11429,6): warning C4101: 'namelen': variável local não referenciada 1>D:\Emulador\src\map\clif.cpp(11439): warning C4700: variável local não inicializada 'message' usada 1>D:\Emulador\src\map\clif.cpp(11439): warning C4700: variável local não inicializada 'name' usada 1>D:\Emulador\src\map\clif.cpp(11455): warning C4700: variável local não inicializada 'messagelen' usada 1>map-server.vcxproj -> D:\Emulador\map-server.exe
  11. @go and @warp to the same map?
  12. brunoshp

    Searchstores

    Where i Edit to change screen? i need to show all vends opened. Now i have 11 vends opened, when i search only show 10 vends, and not show button to go to second page.
  13. i got this problem : [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 [Error]: Skill '65535' is undefined! C:\Users\Joker\Desktop\rathena-master\src\map\status.cpp:125::status_skill2sc [Error]: status_skill2sc: Unsupported skill id 65535 when 1 use A Poem of Bragi [Song / Dance] (Skill ID# 321, iRO Name: Magic Strings) i dont got error but when a use in other char same skill, when i walk the first char i got the error, i use last version rathena emulator and use hexed : 2018-05-30bRagexeRE and use this: 257 Use Default Web Browser for <URL> 3 Chat Flood Remove Limit 5 Enable Proxy Support 8 Custom Window Title 9 Disable 1rag1 type parameters (Recommended) 13 Disable Ragexe Filename Check (Recommended) 271 Change MonsterSizeEffect*.lub path 17 Enable Official Custom Fonts 18 Skip Service Selection Screen 19 Enable Title Bar Menu 23 Enable /who command (Recommended) 24 Fix Camera Angles (Recommended) 282 Change MVP hp bar size 28 Increase Headgear ViewID 287 Change character display deletion time from actual date to relative date 32 Increase Zoom Out Max 34 Enable /showname (Recommended) 35 Read Data Folder First 36 Read msgstringtable.txt (Recommended) 38 Remove Gravity Ads (Recommended) 39 Remove Gravity Logo (Recommended) 40 Restore Login Window (Recommended) 41 Disable Nagle Algorithm (Recommended) 42 Skip Resurrection Button 44 Translate Client (Recommended) 45 Use Custom Aura Sprites 46 Use Normal Guild Brackets (Recommended) 48 Use Plain Text Descriptions (Recommended) 49 Enable Multiple GRFs (Recommended) 50 Skip License Screen 53 Use Ascii on All LangTypes (Recommended) 61 Disable Packet Encryption 64 @ Bug Fix (Recommended) 65 Load Custom lua file instead of iteminfo*.lub (Recommended) 72 Ignore Missing Palette Error 73 Remove Hourly Announce (Recommended) 74 Increase Screenshot Quality 76 Enforce Official Login Background 84 Remove Serial Display (Recommended) 86 Only First Login Background 88 Allow space in guild name 90 Enable DNS Support (Recommended) 91 Disconnect to Login Window 97 Cancel to Login Window (Recommended) 104 Increase creation Hair Style & Color Limits 204 Increase Attack Display 207 Resize Font 208 Restore Cash Shop Icon 210 Use Custom Icon 212 Restore Roulette 213 Disable Help Message on Login (Recommended) 214 Restore Model Culling 215 Increase Map Quality 229 Enable Emblem hover for BG 234 Ignore Lua Errors 239 Ignore /account: command line argument 246 Increase hair style limit in game 249 Change minimal screen resolution limit 250 Allow leader to leave party if no members on map 251 Allow close cutin by pressing esc key the problem in source is here! sc_type status_skill2sc(int skill) { int idx = skill_get_index(skill); ====== in this line i think it dont get skill ID if (idx == 0) { ShowError("status_skill2sc: Unsupported skill id %d\n", skill); return SC_NONE; } return SkillStatusChangeTable[idx]; }
×
×
  • Create New...

Important Information

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