Jump to content
  • 0

Passive Skill that Loot Items from monsters while attacking


namerpus18

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.07
  • Content Count:  95
  • Reputation:   1
  • Joined:  11/15/22
  • Last Seen:  

Hello,

I've been working on modifying a skill - [Steal] so that it can be used several times to the same monster and now I am thinking an alternative if which will be better.

I am on work on it reading relative scripts but don't know where to start.

What I want to do is a Passive skill that loot items by chance from the monster that player is attacking. Same as [Steal] skill of the Thief job.

//so some behaviors of the skill that I think should be considered like 1. Same item can be stolen [jellopy] 2. The monster cannot be healed (not important I will just prohibit [Heal] on that map) 3. You can steal until the monster dies (I dont know if that needs to be specify to the code though)

 

Thank you  so much,

Noob

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  150
  • Reputation:   11
  • Joined:  12/03/18
  • Last Seen:  

I don't think script will do this for you. You need to create changed at the source code level for this.

As how i see this being done.

You need to do the following:

1. Create a new skill that is similar to Steal but as a passive.
2. If you want to disable heal you need to add a status on the monster to disable it's heal or refer to skills already on the game that prohibits heal on monsters and such.

Hope this helps!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.07
  • Content Count:  95
  • Reputation:   1
  • Joined:  11/15/22
  • Last Seen:  

9 hours ago, PsyOps said:

I don't think script will do this for you. You need to create changed at the source code level for this.

As how i see this being done.

You need to do the following:

1. Create a new skill that is similar to Steal but as a passive.
2. If you want to disable heal you need to add a status on the monster to disable it's heal or refer to skills already on the game that prohibits heal on monsters and such.

Hope this helps!

Hello, Ive been working on modifying that skill [Steal] for days now ;P. 

I was able to put it autocast [STEAL] in an ITEM "Rod"[0]#1603 that can be equip by any class. 

My problem is I want skill [STEAL] to be cast again until the monster die(NOTE: same item can be looted again). But i cannot able to make it work after editing lot of scripts related to that skill. 

So my final thought as I am still working on it is to make some alternative.

Now maybe I will start on working to making new [Skill] instead from scratch. 

Edited by namerpus18
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

maybe you can remove the flag from here src/map/pc.cpp#L6596

	md->state.steal_flag = UCHAR_MAX; //you can't steal from this mob any more

or

adjust the config here conf/battle/skill.conf#L223-L226

// How many times you could try to steal from a mob.
// Note: It helps to avoid stealing exploit on monsters with few rare items
// Use 0 to disable (max allowed value is 255)
skill_steal_max_tries: 0

 

if you want it to auto steal with skill with minimum src mod

you can consider to grant the char with both steal skill and snatcher skill, it should do the trick

Link to comment
Share on other sites

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.

×
×
  • Create New...