Jump to content
  • 0

Monsters drop equipment with cards


Yuna

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

I know that this is possible to do with a script, however I would like a src modification instead.

 

What I need is for monsters to drop headgear with random cards equipped in them already.

 

For example: Archer Skeleton drops an Apple of Archer with a Poring Card already equipped into it.

 

to start off, I know that I have to edit this in mob.c

 

struct item_drop* mob_setdropitem(int nameid, int qty, struct item_data *data) {

 

Thanks for any help!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

i am still in need of help with this.

 

This is what I have so far and this was made by Cydh.

 

https://gist.github.com/cydh/e1ba6cb31303ad8683fc

 

I don't want to specify headgear IDs, i want this done globally to all the headgear in general.

Edited by Lilo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   10
  • Joined:  01/13/12
  • Last Seen:  

no test

case IT_ARMOR:
			switch (id->equip){
				case 256:
				case 512:
				case 1:
					// Global armor
					drop->item_data.refine = rnd() % 9 + 1; // Add random refine
					if (rnd() % 1000 < 100) { // 10% Chance
						drop->item_data.card[0] = 4112; // Marduk Card
						drop->item_data.card[1] = 4799; // HP500 (enhance stone)
						drop->item_data.card[2] = 4802; // SP150 (enhance stone)
						drop->item_data.card[3] = 4807; // Atk_Speed1 (enhance stone)
					}
					break;
			}
			break;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

Didn't work. The card/stone equipping is not working..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.02
  • Content Count:  71
  • Reputation:   0
  • Joined:  06/24/19
  • Last Seen:  

Hi, someone can help with this? i need something like this. But can be a npc what identify and put a random card/enchant gems from item id on 4º slot from equips.

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...