minijoe Posted January 29, 2016 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 11/14/15 Last Seen: December 12, 2018 Share Posted January 29, 2016 hello! I made a shadow card 55050,New_item,Weapon Shadow card,6,20,,10,,,,,,,,131072,,,,,{ bonus bMaxSP,10; },{},{} and a shadow equipment with slots 24012,Promotional_Weapon_Shadow,Weapon Shadow,12,10,,0,,,,2,0xFFFFFFFF,63,2,131072,,1,,,{ bonus bDex,1; },{},{} but when i double click on the card in the game, it does not work. How to make the shadow card work as the general cards? thank you:) Quote Link to comment Share on other sites More sharing options...
0 Keitenai Posted January 30, 2016 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 98 Reputation: 75 Joined: 12/04/14 Last Seen: December 10, 2024 Share Posted January 30, 2016 Card for costume / shadow armor is not supported. unless you hard code it in src Quote Link to comment Share on other sites More sharing options...
0 sotf Posted January 30, 2016 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Share Posted January 30, 2016 I did this on my previous project as well. It's not yet supported but I did a work-around to make it work like a card. What I did was I made 2 seperate items, one is the "card" which has the original effect, then the other one which is the "pretend card" which is actually a consumable item that inserts your "card" into the shadow equip that your player is wearing using getitem2 command. (in my case it's shadow weapon) Here's my "card": 31101,sphere001,Sphere,6,20,,10,,,,,,,,,,,,,{ skill 8,10; },{},{} Here's my "pretend card": 32101,sphere001x,Sphere,11,10,,0,,,,0,0xFFFFFFFF,63,2,,,,,,{ set powsphere,1; callfunc "powersphere"; },{},{} I set them both to have the same sprite, display name and description so players would think it's just one item. (unless they user @iteminfo, then the cover will be blown~) Here's the simple function I made: function script powersphere { mes "^ff0000===========!WARNING!===========^000000"; mes "Attatching a Power Sphere in an Aura is an irreversible process. It cannot be undone in any way. Do you want to proceed?"; mes "^ff0000===============================^000000"; switch(select("Cancel:Proceed")) { case 1: close; case 2: close2; if(getequipid(EQI_SHADOW_WEAPON) == -1) { dispbottom "FAILED! You're not equipping any Aura!"; end; } if(getequipcardid(EQI_SHADOW_WEAPON,0) > 0) { dispbottom "FAILED! Your Aura is already enchanted!"; end; } if(countitem(getequipid(EQI_SHADOW_WEAPON)) > 1) { dispbottom "FAILED! You have more than 1 of the same Aura in your inventory! Please store the other ones first!"; end; } specialeffect2 58; progressbar "green",2; set powaura,getequipid(EQI_SHADOW_WEAPON); unequip EQI_SHADOW_WEAPON; //unequips your shadow weapon delitem 32100+powsphere,1; //deletes the "pretend card" delitem powaura,1; //deletes your shadow weapon getitem2 powaura,1,1,0,0,31100+powsphere,0,0,0; //generates the same shadow weapon but with the "card" already in it end; } } Well I know it's not much but I hope you get the idea Quote Link to comment Share on other sites More sharing options...
0 minijoe Posted January 31, 2016 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 11/14/15 Last Seen: December 12, 2018 Author Share Posted January 31, 2016 I did this on my previous project as well. It's not yet supported but I did a work-around to make it work like a card. What I did was I made 2 seperate items, one is the "card" which has the original effect, then the other one which is the "pretend card" which is actually a consumable item that inserts your "card" into the shadow equip that your player is wearing using getitem2 command. (in my case it's shadow weapon) Here's my "card": 31101,sphere001,Sphere,6,20,,10,,,,,,,,,,,,,{ skill 8,10; },{},{} Here's my "pretend card": 32101,sphere001x,Sphere,11,10,,0,,,,0,0xFFFFFFFF,63,2,,,,,,{ set powsphere,1; callfunc "powersphere"; },{},{} I set them both to have the same sprite, display name and description so players would think it's just one item. (unless they user @iteminfo, then the cover will be blown~) Here's the simple function I made: function script powersphere { mes "^ff0000===========!WARNING!===========^000000"; mes "Attatching a Power Sphere in an Aura is an irreversible process. It cannot be undone in any way. Do you want to proceed?"; mes "^ff0000===============================^000000"; switch(select("Cancel:Proceed")) { case 1: close; case 2: close2; if(getequipid(EQI_SHADOW_WEAPON) == -1) { dispbottom "FAILED! You're not equipping any Aura!"; end; } if(getequipcardid(EQI_SHADOW_WEAPON,0) > 0) { dispbottom "FAILED! Your Aura is already enchanted!"; end; } if(countitem(getequipid(EQI_SHADOW_WEAPON)) > 1) { dispbottom "FAILED! You have more than 1 of the same Aura in your inventory! Please store the other ones first!"; end; } specialeffect2 58; progressbar "green",2; set powaura,getequipid(EQI_SHADOW_WEAPON); unequip EQI_SHADOW_WEAPON; //unequips your shadow weapon delitem 32100+powsphere,1; //deletes the "pretend card" delitem powaura,1; //deletes your shadow weapon getitem2 powaura,1,1,0,0,31100+powsphere,0,0,0; //generates the same shadow weapon but with the "card" already in it end; } } Well I know it's not much but I hope you get the idea This is really a good idea, I also had similar ideas, just made an NPC, let the card to enchant adding equipment, like costume enchants. but there are so many cards, than I still want to modify the source code to make it worked like the general cards. If I can't change it, I will try your idea, thank you:) Quote Link to comment Share on other sites More sharing options...
Question
minijoe
hello!
I made a shadow card
and a shadow equipment with slots
but when i double click on the card in the game, it does not work.
How to make the shadow card work as the general cards?
thank you:)
Link to comment
Share on other sites
3 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.