Jump to content
  • 0

Q> How to make the shadow card?


minijoe

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  11/14/15
  • Last Seen:  

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:)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

Card for costume / shadow armor is not supported.

 

unless you hard code it in src

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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 :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  11/14/15
  • Last Seen:  

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 :D

 

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