Yuna Posted March 16, 2016 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 96 Reputation: 5 Joined: 03/16/16 Last Seen: May 30, 2023 Share Posted March 16, 2016 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! Quote Link to comment Share on other sites More sharing options...
0 Yuna Posted March 22, 2016 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 96 Reputation: 5 Joined: 03/16/16 Last Seen: May 30, 2023 Author Share Posted March 22, 2016 (edited) 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 March 22, 2016 by Lilo Quote Link to comment Share on other sites More sharing options...
0 a91323 Posted March 22, 2016 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 99 Reputation: 10 Joined: 01/13/12 Last Seen: December 6, 2020 Share Posted March 22, 2016 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; Quote Link to comment Share on other sites More sharing options...
0 Yuna Posted March 22, 2016 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 96 Reputation: 5 Joined: 03/16/16 Last Seen: May 30, 2023 Author Share Posted March 22, 2016 Didn't work. The card/stone equipping is not working.. Quote Link to comment Share on other sites More sharing options...
0 kronobr Posted September 23, 2020 Group: Members Topic Count: 32 Topics Per Day: 0.02 Content Count: 71 Reputation: 0 Joined: 06/24/19 Last Seen: September 18, 2022 Share Posted September 23, 2020 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. Quote Link to comment Share on other sites More sharing options...
Question
Yuna
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.