Tomahawk
Members-
Posts
27 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Tomahawk's Achievements
-
Same here, they are affected by the skill, but it doesnt change anything.
-
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.
-
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!
-
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?
-
PvP counting death on all server maps
Tomahawk replied to kenanjosss's question in Scripting Support
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; -
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.
-
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!
-
Thank you very much! it was the sd without checking, it is solved!
-
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.
-
how to make a npc invisible to a character that has complete it
Tomahawk replied to mirabell's question in Script Requests
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. -
how to make a npc invisible to a character that has complete it
Tomahawk replied to mirabell's question in Script Requests
Isn't it possible through classchange? classchange HIDDEN_WARP_NPC, strnpcinfo(0), bc_self; Edit: Btw I got this code from AnnieRuru's blog. -
Maybe something like:
- 1 reply
-
- 1
-
There's a tutorial on the wiki page: https://github.com/rathena/rathena/wiki/Adding_new_mapflag
-
Thank you.
-
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.