Jump to content
  • 0

Remove stone from skill TF_THROWSTONE


Question

Posted (edited)

Hello everyone,

 

It's exactly what the title says, I don't want that the stone item be a pre requisite to use the skill Throwstone.

 

I looked on status.c, skill.c, skill.h and battle.c, but nothing founded about this item. I also looked for TF_PICKSTONE, but it's a little confused to me.

 

I hope that someone can help me with this.

case TF_THROWSTONE:
if (!sc_start(src,bl,SC_STUN,3,skill_lv,skill_get_time(skill_id,skill_lv))) //only blind if success
sc_start(src,bl,SC_BLIND,3,skill_lv,skill_get_time2(skill_id,skill_lv));
break;




case TF_PICKSTONE:
if(sd) {
unsigned char eflag;
struct item item_tmp;
struct block_list tbl;
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
memset(&item_tmp,0,sizeof(item_tmp));
memset(&tbl,0,sizeof(tbl)); // [MouseJstr]
item_tmp.nameid = ITEMID_STONE;
item_tmp.identify = 1;
tbl.id = 0;
// Commented because of duplicate animation [Lemongrass]
// At the moment this displays the pickup animation a second time
// If this is required in older clients, we need to add a version check here
//clif_takeitem(&sd->bl,&tbl);
eflag = pc_additem(sd,&item_tmp,1,LOG_TYPE_PRODUCE);
if(eflag) {
clif_additem(sd,0,0,eflag);
map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
}
}
Edited by Noturn

2 answers to this question

Recommended Posts

  • 0
Posted

db/skill_require.db.txt

152,0,0,2,0,0,0,99,0,0,none,0,0,7049,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0							//TF_THROWSTONE
...7049,1... change to 0,0

 

 

Thanks again Lady AnnieRuru, really silly mistake of mine :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...