Jump to content
  • 0
Yuna

Monsters drop equipment with cards

Question

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

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

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.