-
Content Count
59 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Dduwsmitt
-
i tested with latest stable revision on both pre-re and renewal Client ver. 2019-05-30aRagexeRE and i cannot reproduce the bug. do you have any src modifications and what client version did you use? BTW this is the skill code on latest rev. IDK why yours is different from the video. { Id: 382 Name: "SN_SHARPSHOOTING" Description: "Focused Arrow Strike" MaxLevel: 5 Range: 9 Hit: "BDT_MULTIHIT" SkillType: { Enemy: true } AttackType: "Weapon" Element: "Ele_Weapon" SplashRange: 1 InterruptCast: true SkillInstances: 13 CastTime: 2000 AfterCastActDelay: 1500 CoolDown: 0 Requirements: { SPCost: { Lv1: 18 Lv2: 21 Lv3: 24 Lv4: 27 Lv5: 30 Lv6: 33 Lv7: 36 Lv8: 39 Lv9: 42 Lv10: 45 } WeaponTypes: { Bows: true } AmmoTypes: { A_ARROW: true } AmmoAmount: 1 } },
-
i opened this issue on github. you can follow the topic on https://github.com/HerculesWS/Hercules/issues/2922
-
Update: i changed pc->unequipitem(sd, i, PCUNEQUIPITEM_FORCE); to pc->unequipitem(sd, i, PCUNEQUIPITEM_RECALC); still not triggering the OnUnequipScript.
-
additional info. After successfully removing the card, the script command 'successremovecards' fails to re-equip the item. it seems pc->equipitem(sd, i, sd->status.inventory.equip); is not working properly. pc->unequipitem(sd, i, PCUNEQUIPITEM_FORCE); does not recalculate stats so we rely on the pc->equipitem(sd, i, sd->status.inventory.equip); to recalculate the stats thus not triggering the OnUnequipScript. i dont know how to fix it tho. /// Removes all cards from the item found in the specified equipment slot of the invoking character, /// and give them to the character. If any cards were removed in this manner, it will also show a success effect. /// successremovecards(<slot>); static BUILDIN(successremovecards) { int i = -1, c, cardflag = 0; struct map_session_data *sd = script->rid2sd(st); int num = script_getnum(st, 2); if (sd == NULL) return true; if (num > 0 && num <= ARRAYLENGTH(script->equip)) i = pc->checkequip(sd,script->equip[num - 1]); if (i < 0 || sd->inventory_data[i] == NULL) return true; if (itemdb_isspecial(sd->status.inventory[i].card[0])) return true; for (c = sd->inventory_data[i]->slot - 1; c >= 0; --c) { if (sd->status.inventory[i].card[c] > 0 && itemdb_type(sd->status.inventory[i].card[c]) == IT_CARD) { int flag; struct item item_tmp; memset(&item_tmp, 0, sizeof(item_tmp)); cardflag = 1; item_tmp.nameid = sd->status.inventory[i].card[c]; item_tmp.identify = 1; sd->status.inventory[i].card[c] = 0; if ((flag = pc->additem(sd, &item_tmp, 1, LOG_TYPE_SCRIPT))) { clif->additem(sd, 0, 0, flag); map->addflooritem(&sd->bl, &item_tmp, 1, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 0, false); } } } if (cardflag == 1) { pc->unequipitem(sd, i, PCUNEQUIPITEM_FORCE); clif->delitem(sd, i, 1, DELITEM_MATERIALCHANGE); clif->additem(sd, i, 1, 0); pc->equipitem(sd, i, sd->status.inventory[i].equip); //THIS LINE HERE FAILS TO WORK clif->misceffect(&sd->bl,3); } return true; }
-
Custom Healing Item ** no visual effect **
Dduwsmitt replied to astralprojection's question in Database Support
afaik potion effects are hardcoded in the client so when we make custom potions we add this line: specialeffect(EF_POTION4, AREA, playerattached()); ex. { Id: 37000 AegisName: "White_Potion_ZXC" Name: "White Potion ZXC" Type: "IT_HEALING" Buy: 1200 Weight: 150 Script: <" itemheal rand(325,405),0; specialeffect(EF_POTION4, AREA, playerattached()); "> }, -
on the latest stable release this problem is fixed. Release v2020.12.14: https://github.com/HerculesWS/Hercules/commit/2f410d1da3f0afa72e7a66099eb0f38469c20427#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR59
-
Currently not working on Release v2020.12.14 due to refactored codes: - `unit->blown()` (renamed to `unit->push()`) - `path->blownpos()` (related to the `unit->blown()` change)
-
its on hercules/src/map Folder.
-
Hello just want to report in my recent discovery that Bard/Dancer buffs doesnt work on party members OUTSIDE cell_pvp area even with CELL_PVP_SKILL_ALLOW. Using pre-renewal with OLD Song effect diff All Party members are outside cell_pvp area
-
Where do the red squares come from when a monster casts certain skills?
Dduwsmitt replied to Daraen's question in Source Support
you need to find the skill on skill_db.conf and change ShowSkillScale set to false. SkillInfo: { ShowSkillScale: false } -
Hello i just discovered that when a map has a CELL_PVP area, - you cannot use PARTY BUFFS outside CELL_PVP area even with CELL_PVP_SKILL_ALLOW if you are in a PARTY / Solo Party is there any way to resolve this?
-
hello is it okay to just ignore these warnings?
-
yes you can enchant an item using slot enchantment 4 times. and in your case that will be 3 times since the item you want to enchant is 1 slot.
-
How to make Certain Skills and Critical Hits ignore reflect?
Dduwsmitt replied to prism's question in Source Support
Find this line at battle.c if( sc->data[SC_REFLECTSHIELD] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO && !(d_bl && !(wd->flag&BF_SKILL)) // It should not be a basic attack if the target is under devotion && !(d_bl && sce_d && !check_distance_bl(target, d_bl, sce_d->val3)) // It should not be out of range if the target is under devotion ) { Add the skills you dont want to reflect on if( sc->data[SC_REFLECTSHIELD] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO example i want bash not to be reflected by reflect shield i will add this line: && skill_id != SM_BASH so it will be if( sc->data[SC_REFLECTSHIELD] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO && skill_id != SM_BASH -
from item_bonus.txt on hercules docs this should answer your problem bonus2 bMagicAtkEle,e,n; //Increases damage of element e magic by n% bonus2 bMagicAtkEle,Ele_Water,500; //Increases damage of element Water magic by 500% bonus2 bMagicAtkEle,Ele_Fire,500; //Increases damage of element Fire magic by 500%
-
Hello. since the lure/bait is an accessory you can make it a "durational item" using rentitem(<item id>, <time>) or rentitem("<item name>", <time>) script commands. note: <time> is in seconds example: rentitem 2775,3600; // makes you rent the fishing lure for 1 hour
-
turbo_room,63,98,4 script test 4_M_BIBI,{ switch(select("Case 0","Case 1")) { case 0: if(countitem2(25226,1,8,0,0,0,0,0) < 1){ mes " Sorry, but you haven't brought the requirements"; close; } mes "Bwahahahah"; mes "Thank you for your help!!"; delitem2 25226,1,1,8,0,0,0,0,0; getitem 30205,1; close; break; case 1: if(countitem2(25226,1,8,0,0,0,0,0) < 1){ mes " Sorry, but you haven't brought the requirements"; close; } mes "Bwahahahah"; mes "Thank you for your help!!"; delitem2 25225,1,1,8,0,0,0,0,0; getitem 30208,1; close; break; } } what seems to be the problem? the only thing that i found wrong is the case format and spacing. try this code
-
try putting refreshall on your script
- 9 replies
-
- status item script
- day
-
(and 1 more)
Tagged with:
-
Current status: UNAVAILABLE Who da fuq is dis sht: Hello i am Dduwsmitt, i have been a core developer sometimes a scripter on rathena since 2012. i have migrated here on hercules on 2014. What can I do for you?: Name it and i will forge it. EXCEPT "Web Development" (well i know some of it but its only to the point where i can help you fix or find some errors). i can create original contents that you want me to develop just give me an idea of what you want to do. Well to give you some general idea of what i can do: Server Modifications - SRC, Configs, NPC, Database Custom Contents - SRC, Configs, NPC, Database, Custom items, etc. Client Modifications - Hexing, Translation, Other mods, etc. I DONT DO PLUGINS BECAUSE IT WILL BE EASIER FOR MY CLIENTS TO REDISTRIBUTE MY WORK. Contact me: skype: dduwsmitt or pm me here on hercules
-
- scripter
- paid services
-
(and 1 more)
Tagged with:
-
Custom Jobs using 2014-10-22b client
Dduwsmitt replied to Dduwsmitt's question in Client-Side Support
fixed -
announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}} can someone give me an example how to use fontY?