Jump to content

Tomahawk

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by Tomahawk

  1. Same here, they are affected by the skill, but it doesnt change anything.
  2. It's been some time, does anyone know how to solve this? Is it only NPC_SKILLS? It really doesnt show on client. 2018-06-20.
  3. I'm trying to add a secondary cooldown for a certain map. Here's the code: skill.hpp int32 raidcd[MAX_SKILL_LEVEL]; int skill_get_raidcd(uint16 skill_id, uint16 skill_lv); skill.cpp int skill_get_raidcd(uint16 skill_id, uint16 skill_lv) { skill_get_lv(skill_id, skill_lv, skill_db.find(skill_id)->raidcd); } pc.cpp int cooldown = skill_get_cooldown(skill_id, skill_lv); if (map_getmapflag(sd->bl.m, MF_SMAP) && skill_get_raidcd(skill_id, skill_lv)) cooldown = skill_get_raidcd(skill_id, skill_lv); no errors but its not applying the cd i put on skill db Raidcd: xxxxx its like its not recognizing the skill_get_raidcd(skill_id, skill_lv). I need some help please, thank you! SOLVED. Forgot to phase it into yaml. Thanks to Stolao for helping me!
  4. Hello, is there a way to call searchstore_query after calling searchstore_open in 'searchstores'' script commands? I'm trying to add it. searchstore_query(struct map_session_data* sd, unsigned char type, unsigned int min_price, unsigned int max_price, const struct PACKET_CZ_SEARCH_STORE_INFO_item* itemlist, unsigned int item_count, const struct PACKET_CZ_SEARCH_STORE_INFO_item* cardlist, unsigned int card_count) Im kinda lost here, where does the server transforms the text to the "itemlist", is it here or in clif.cpp? also, does it only accept packet and not texts? is there a way to call this function with "script_getstr" for the item name?
  5. getmapxy @map$,@x,@y,0; if ( @map$ == $pvp$[$pvp] ) goto PvP; if ( @map$ == $pvp$[$pvpx] ) goto PvP; if ( @map$ == $pvp$[$pvpw] ) goto PvP; if ( @map$ == $pvp$[$pvpy] ) goto PvP2;//Sem ygg if ( @map$ == $gvg$[$gvg] ) goto GvG; if ( @map$ == $gvg$[$gvgx] ) goto GvG; if ( @map$ == $gvg$[$gvgw] ) goto GvG; if ( @map$ == $gvg$[$gvgy] ) goto GvG2;//Sem ygg if ( @map$ == $pvp$[$playes] ) goto playes; to this .@map$ = strcharinfo(3); if ( @map$ == $pvp$[0] ) goto PvP; if ( @map$ == $gvg$[0] ) goto GvG;
  6. Is it possible to change area_size based on mapflag? I'm trying to change clif.cpp with no luck if(mapdata->flag[MF_NEWAREA]) { map_foreachinallarea(clif_send_sub, bl->m, bl->x-20, bl->y-20, bl->x+20, bl->y+20, BL_PC, buf, len, bl, type);} else { map_foreachinallarea(clif_send_sub, bl->m, bl->x-AREA_SIZE, bl->y-AREA_SIZE, bl->x+AREA_SIZE, bl->y+AREA_SIZE, BL_PC, buf, len, bl, type);} break; Map server crashes on start. Thank you for reading.
  7. Hello, I'm trying to add ShowScale to other skills like WZ_HEAVENDRIVE but it doesn't work. No errors it simply doesn't show the "red dots" that NPC_SKILLS like NPC_EARTHQUAKES does. Flags: IsAutoShadowSpell: true TargetHidden: true ShowScale: true Is it hard coded on client? or am I missing something? Thanks!
  8. Thank you very much! it was the sd without checking, it is solved!
  9. How do you save the damage as a player variable? I tried using : pc_setglobalreg(sd, add_str("variable"), mvp_damage); Or pc_setaccountreg(sd, add_str("variable"), mvp_damage); But the map_server crashes.
  10. Maybe you can use OnTouch, whenever the player is close it changes the sprite. That way its always invisible unless the player has a variable, didn't test it tho.
  11. Isn't it possible through classchange? classchange HIDDEN_WARP_NPC, strnpcinfo(0), bc_self; Edit: Btw I got this code from AnnieRuru's blog.
  12. There's a tutorial on the wiki page: https://github.com/rathena/rathena/wiki/Adding_new_mapflag
  13. setarray .mvplist[0],1832,1511,1647,1785,1630,1039,1874,2068,1272,1719,1046,1389,1112,1115,1418,1871,1252,1768,1885,1649,1651,1492,1734,1251,1779,1688,1646,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1650,1583,1312,1751,1685,1648,1658; .@mobid = .mvplist[rand(0,getarraysize(.mvplist))]; monster "map_x",0,0,strmobinfo(2,.@mobid),.@mobid,1,"mvpspawn::OnMVPDead"; sometimes gives this error: Can anyone help me? I'm just not getting what i'm doing wrong.
  14. Hey Haziel, awesome work! I'm using it in my local server, but whenever I summon it the sprite is always backwards... Is it supposed to be like that? What I mean is, the back of the chest always faces "south".
  15. Maybe you didn't calculate light maps or are only using global lighting? That's usually how it happens to me.
  16. Not that I know of. Great then an older one shouln't give you any problems, good luck ?
  17. Just tested with the same data and it indeed gives an error. Did you test it with other kRO data.grf from 2018? cause i'm using a data.grf from 2017 and its working fine with my browedit.
  18. Pretty sure its warcraft. ?
  19. You gotta hex the client to include sky background on custom maps. Open the client on a hex editor and change one of the original sky maps to yours. Ex: Search for airplane01.rsw and change it to: custommap1.rsw (the custom name must have the same lenght as the original).
  20. I think you need to define packetver in SRC>Config>packets.h: #define PACKETVER 20151104 -> #define PACKETVER 20140305 Recompile after changing it.
  21. Maybe you are missing the sprites in your data.
×
×
  • Create New...