Jump to content

Eross

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by Eross

  1. Hi ! Im trying to use other token IDs for non tradable one .. The question is how to make them work ??? Only ID 7621 is working on my server . Thankyou !!
  2. Hi ! ive created a script that will dispel specific buffs on changing maps .. its working fine until I upgraded to latest Rathena .. I dont know why ? or maybe my SQL script is outdated ? I dont know ..Please help me thankyou - script dispell_buff -1,{ OnPCLoadMapEvent: .@map$ = strcharinfo(3); query_sql ("SELECT `last_map` FROM `char` WHERE `char_id` = "+ getcharid(0), .lastmap$); if (.@map$ == .lastmap$) { getmapxy(.map$,.x,.y,BL_PC); end; } else { //sleep2 1000; query_sql "UPDATE `char` SET `last_map` = '"+escape_sql(.@map$)+"' WHERE `char_id` = '"+getcharid(0)+"'"; //sc_end sc_spirit; sc_end sc_gospel; sc_end SC_POEMBRAGI; sc_end SC_APPLEIDUN; sc_end SC_ASSNCROS; sc_end SC_WHISTLE; sc_end SC_SERVICE4U; //sc_end 37; // holy weapon //sc_end 38; // holy armor sc_end 187; // increase all stat sc_end 194; // increase hit sc_end 196; // increase flee sc_end 198; // max hp increase sc_end 199; // max sp increase sc_end 200; // attach strength sc_end 202; // increase def sc_end 214; // SC_SCRESIST sc_end 175; // POEMBRAGI sc_end 181; // SERVICE4U specialeffect2 235; getmapxy(.map$,.x,.y,BL_PC); end; } }
  3. Hi ! Im trying to make a costume that will change player to first and second job but the skills for trans will not be removed .. Anyone please kindly help me .. This is the example for third job changebase roclass(eaclass()|EAJL_THIRD); How to make this for first like magician archer or second like wizard hunter ..Thankyou !
  4. Hi ! Lately I created an NPC that will teleport mvp whenever it gets near the portal .. But the problem is it also teleport the near mobs .. How to make it trigger only by MVP monster ?? Thankyou ! - script AntiMVPLure -1,{ OnTouch: end; OnTouchNPC: unitwarp 0,"this", -1, -1; end; }
  5. Hi ! May I request for a guild dungeon warper that will function like an instance ? That has a time limit .. I'm currently using latest rathena (YML) .. Please help thankyou guys !
  6. Hi ! Is it posible to sell character slots to players ? Like for example player buy 1 slot permanently to his account . VIP can unlock slots but all of them .. I want it one by one . thankyou
  7. Hi fellas ! How to fix this issue ? When using Marriage Teleport skill on dead partner, it resurrects it with 2hp ? How to remove resurecting partner to also avoid exploitation on mvp maps . Thankyou !
  8. Hi @Emistry and @kohjuliana , do I have to add this codes to all staffs books and rods ? Isnt it possible to be like whats on the default refine adding attack on refine weapons ?? Thanks
  9. Hi ! How to add bonus Matk when refining weapons like rods staffs etc ??? Thankyou
  10. Hi ! Ive tested the fury chant for super novice but wont work if you are on max level .. How to make it working even you are level 99 ?? Thankyou
  11. H thankyou sensei ! Do you also have @whobuy ??? Thankyou
  12. Thanks sir .. I thought it isnt 'coz its "define post" thanks
  13. Hi ! Yes it checked .. The problem is theres no GD STORAGE skill on guild skill window Hi ! Im using Pre-re .. is it fine ??
  14. Hi ! Ive decided lately to upgrade to latest https://github.com/rathena/rathena. But Guild Storage Skill is not showing after I add it on pre-re/guild-skill-tree.yml which is really weird coz its the same settings with my old one .. Please help ! I try @reloadskilldb and I also reboot my server but nothing happened. the skill still wont show.
  15. Hi ! can anyone help me to revise this to become latest RA compatible ? BUILDIN_FUNC(gethotkeys) { TBL_PC *sd; TBL_PC *tsd; int i; if( !script_rid2sd(sd) ) return SCRIPT_CMD_FAILURE; if (!script_charid2sd(2,tsd)) return SCRIPT_CMD_FAILURE; for(i=0;i<MAX_HOTKEYS;i++){ pc_setreg(sd,reference_uid(add_str("@hotkey_type"), i),tsd->status.hotkeys[i].type); pc_setreg(sd,reference_uid(add_str("@hotkey_id"), i),tsd->status.hotkeys[i].id); pc_setreg(sd,reference_uid(add_str("@hotkey_lv"), i),tsd->status.hotkeys[i].lv); pc_setreg(sd,reference_uid(add_str("@hotkey_pos"), i),i); } pc_setreg(sd,add_str("@hotkey_count"),i); return SCRIPT_CMD_SUCCESS; } BUILDIN_FUNC(updatehotkey) { TBL_PC *sd; int type,id,lv,pos,j, flag = 0; short i; struct script_data *data; if (!script_charid2sd(7,sd)) return SCRIPT_CMD_FAILURE; type = script_getnum(st,2); if(type < 0 || type > 1){ clif_displaymessage(sd->fd, "Update Hotkey failed. Invalid type."); return SCRIPT_CMD_FAILURE; } data = script_getdata(st, 3); get_val(st, data); // Convert into value in case of a variable id = ( data_isstring(data) ? skill_name2id(script_getstr(st,3)) : script_getnum(st,3) ); lv = script_getnum(st,4); pos = script_getnum(st,5); if(pos < 0 || pos >= MAX_HOTKEYS){ clif_displaymessage(sd->fd, "Update Hotkey failed. Invalid hotkey position."); return SCRIPT_CMD_FAILURE; } if( script_hasdata(st,6) ) flag = script_getnum(st,6); if(type == 0 && id > 0){ // item ARR_FIND(0, MAX_INVENTORY, i, sd->inventory.u.items_inventory[i].nameid == id); if(i<MAX_INVENTORY){ if(sd->inventory.u.items_inventory[i].amount != lv) lv = sd->inventory.u.items_inventory[i].amount; } else lv = 0; } else if(type == 1 && id > 0){ // skill j = pc_checkskill(sd,id); if(j < lv) lv = j; } if(flag == 1){ // Delete duplicate on same row i = 0; if(pos >= 0 && pos <= 8){ ARR_FIND(0, 9, i, sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv); if(i < 9){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } else if(pos >= 9 && pos <= 17){ ARR_FIND(9, 18, i, sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv); if(i < 18){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } else if(pos >= 18 && pos <= 26){ ARR_FIND(18, 27, i, sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv); if(i < 27){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } #if PACKETVER >= 20090603 else if(pos >= 27 && pos <= 35){ ARR_FIND(27, 36, i, sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv); if(i < 36){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } #endif #if PACKETVER >= 20090617 else if(pos >= 36 && pos < MAX_HOTKEYS){ ARR_FIND(36, MAX_HOTKEYS, i, sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv); if(i < MAX_HOTKEYS){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } #endif } else if(flag == 2){ // Delete duplicate on all rows for(i = 0; i < MAX_HOTKEYS; i++){ if(sd->status.hotkeys[i].type == type && sd->status.hotkeys[i].id == id && sd->status.hotkeys[i].lv == lv){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } } } sd->status.hotkeys[pos].type = type; sd->status.hotkeys[pos].id = id; sd->status.hotkeys[pos].lv = lv; clif_hotkeys_send(sd); return SCRIPT_CMD_SUCCESS; } BUILDIN_FUNC(clearhotkeys) { TBL_PC *sd; int i; if (!script_charid2sd(2,sd)) return SCRIPT_CMD_FAILURE; for(i=0;i<MAX_HOTKEYS;i++){ sd->status.hotkeys[i].type = 0; sd->status.hotkeys[i].id = 0; sd->status.hotkeys[i].lv = 0; } clif_hotkeys_send(sd); return SCRIPT_CMD_SUCCESS; } Im getting this error
  16. thats bad ? I dont have crit flag on my db yet ... hays I think I should upgrade
  17. Hi ! Is there a guide how to enable critical on DA ? or any other passive skills ? Im using a NON-YML rathena .. Ive seen a new Git pull but its on YML format .. Thankyou I hope someone can help me out ..tHanks
  18. Hi! Is it normal to eddga to go IDLE if it has been attacked by two players ??? It stops attacking and just smoking on his pipe ROFL
  19. Hi ! I think I have same issue with this post ... https://herc.ws/board/topic/11456-mvp-rude-attack-modified/ I'm testing it on Eddga using grimtooth but its not teleporting ... How to fix this ??? thanks Im using this settings // Defines various mob AI related settings. (Note 3) // 0x001: When enabled mobs will update their target cell every few iterations // (normally they never update their target cell until they reach it while // chasing) // 0x002: Makes mob use their "rude attack" skill (usually warping away) if they // are attacked and they can't attack back regardless of how they were // attacked (eg: GrimTooth), otherwise, their rude attack" is only activated // if they can't melee reach the target (eg: sniping) // 0x004: If not set, mobs that can change target only do so when attacked within a // distance of [attack range+1], otherwise mobs may change target and chase // ranged attackers. This flag also overrides the 'provoke' target. // 0x008: When set, mobs scatter as soon as they lose their target. Use this mode // to make it much harder to mob-train by hiding and collecting them on a // single spot (ie: GrimTooth training) // 0x010: If set, mob skills defined for friends will also trigger on themselves. // 0x020: When set, the monster ai is executed for all monsters in maps that // have players on them, instead of only for mobs who are in the vicinity // of players. // 0x040: When set, when the mob's target changes map, the mob will walk towards // any npc-warps in it's sight of view (use with mob_warp below) // 0x080: If not set, mobs on attack state will only change targets when attacked // by normal attacks. Set this if you want mobs to also switch targets when // hit by skills. // 0x100: When set, a mob will pick a random skill from it's list and start from // that instead of checking skills in orders (when unset, if a mob has too // many skills, the ones near the end will rarely get selected) // 0x200: When set, a mob's skill re-use delay will not be applied to all entries of // the same skill, instead, only to that particular entry (eg: Mob has heal // on six lines in the mob_skill_db, only the entry that is actually used // will receive the delay). This will make monsters harder, especially MvPs. // 0x400: Set this to make mobs have a range of 9 for all skills. Otherwise, they // will obey the normal skill range rules. // 0x800: When set, monsters that are provoked will always change target to the // provoking person, even if they would usually not change target on attack. // Example: 0x140 -> Chase players through warps + use skills in random order. monster_ai: 0x1002
  20. Hi ! Is it posible to make an MVP teleport when a player hits it and change map using portal ?? this is to prevent Acid demo hit and leave tactics ... thanks PS. I also notice that 0x002 is not working I guess .. enlighten me how to use it // Defines various mob AI related settings. (Note 3) // 0x001: When enabled mobs will update their target cell every few iterations // (normally they never update their target cell until they reach it while // chasing) // 0x002: Makes mob use their "rude attack" skill (usually warping away) if they // are attacked and they can't attack back regardless of how they were // attacked (eg: GrimTooth), otherwise, their rude attack" is only activated // if they can't melee reach the target (eg: sniping) // 0x004: If not set, mobs that can change target only do so when attacked within a // distance of [attack range+1], otherwise mobs may change target and chase // ranged attackers. This flag also overrides the 'provoke' target. // 0x008: When set, mobs scatter as soon as they lose their target. Use this mode // to make it much harder to mob-train by hiding and collecting them on a // single spot (ie: GrimTooth training) // 0x010: If set, mob skills defined for friends will also trigger on themselves. // 0x020: When set, the monster ai is executed for all monsters in maps that // have players on them, instead of only for mobs who are in the vicinity // of players. // 0x040: When set, when the mob's target changes map, the mob will walk towards // any npc-warps in it's sight of view (use with mob_warp below) // 0x080: If not set, mobs on attack state will only change targets when attacked // by normal attacks. Set this if you want mobs to also switch targets when // hit by skills. // 0x100: When set, a mob will pick a random skill from it's list and start from // that instead of checking skills in orders (when unset, if a mob has too // many skills, the ones near the end will rarely get selected) // 0x200: When set, a mob's skill re-use delay will not be applied to all entries of // the same skill, instead, only to that particular entry (eg: Mob has heal // on six lines in the mob_skill_db, only the entry that is actually used // will receive the delay). This will make monsters harder, especially MvPs. // 0x400: Set this to make mobs have a range of 9 for all skills. Otherwise, they // will obey the normal skill range rules. // 0x800: When set, monsters that are provoked will always change target to the // provoking person, even if they would usually not change target on attack. // Example: 0x140 -> Chase players through warps + use skills in random order. monster_ai: 0x802
  21. I'm considering the possibility that innocent farmer will get involve. I would like to make it just between MVPers that are competing to kill the mvp monster only
  22. Hi ! Is it possible to make the map area pvp mode ?? Like for example Im in sight range of Eddga with other players, everyone can kill each other except those players who are far away .. Thanks
  23. Hi ! Is it possible to modify the Warp Portal skill of acolyte to allow only party members to enter??? If yes, How ???Thanks
  24. Thanks sir . But the .@exp is the checker if the party is on Even Share mode .. hmm
  25. hmm I need to get the location of the party member who killed the monster.. Or maybe location of party leader will do since this feature is made for leeching players only ... ^_^ Hi thanks sir @sader1992! it worked .. But the only thing/problem is ? How can I make the EXP output recieved by partymember less for like 60% only and 100% for the killer ? OnNPCKillEvent: query_sql ("SELECT `exp` FROM `party` WHERE `party_id` = "+ getcharid(1), .@exp); if(killedrid!=$MobTypeLow && killedrid!=$MobTypeMid && killedrid!=$MobTypeHard ) { end; } .mobid = killedrid; .@m$ = strcharinfo(3);//the killer map. .@pid = getcharid(1);//get killer party id .@char_id = getcharid(0);//save char id for check later if(.@pid){//the player is in a party getpartymember(.@pid,1,.@cid);//get party information char id getpartymember(.@pid,2,.@aid);//get party information account id .@size = getarraysize(.@cid);//array size for(.@i=0;.@i<.@size;.@i++){ if(.@cid[.@i] == .@char_id) continue;//this is the killer , skip if(isloggedin(.@aid[.@i],.@cid[.@i])){//is the party member online? if(strcharinfo(3,.@cid[.@i]) == .@m$){//check the map //the party member is in the same map. //your code here. if (.@exp) { addrid(2,0,getcharid(1)); } } } } } dispbottom "[Monster of the Day]: Experience Gained Base:"+strmobinfo(6,.mobid)+" Job:"+strmobinfo(7,.mobid)+""; set BaseExp,(BaseExp+strmobinfo(6,.mobid)); set JobExp,(JobExp+strmobinfo(7,.mobid)); end;
×
×
  • Create New...