Jump to content

Restricción de Card


Zikoziz

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Saludos,

Estoy intentado que en WoE solo funcione 1 Card MVP de las que tenga el user equipada y las demas entren a storage.

 

Aqui a Script

function	script	Card	{

OnPCLoadMapEvent:
if (strcharinfo(3) == @Maps$[.@i]) {
atcommand "@storeall "+ strcharinfo(0);
for( set .@i,0; .@i<getarraysize(.Card$); set .@i,.@i+1 ) {
if ( isequipped(.Card$[.@i]) == 1 ) {
set @Card$,@Card$+1;
if ( @Card$ > 1){
dispbottom "No puedes usar más de una MvP card acá.";
set @Card$,0;
nude;
				}
		}
}
setarray .Card$[0],4357,4361,4363,4365,4367;
setarray .Maps$[0],
		"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05",
		"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05",
		"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05",
		"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05",
		"arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05",
		"schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05";

}
end;
}
aldeg_cas01	mapflag	loadevent
aldeg_cas02	mapflag	loadevent
aldeg_cas03	mapflag	loadevent
aldeg_cas04	mapflag	loadevent
aldeg_cas05	mapflag	loadevent
gefg_cas01	mapflag	loadevent
gefg_cas02	mapflag	loadevent
gefg_cas03	mapflag	loadevent
gefg_cas04	mapflag	loadevent
gefg_cas05	mapflag	loadevent
prtg_cas01	mapflag	loadevent
prtg_cas02	mapflag	loadevent
prtg_cas03	mapflag	loadevent
prtg_cas04	mapflag	loadevent
prtg_cas05	mapflag	loadevent
schg_cas01	mapflag	loadevent
schg_cas02	mapflag	loadevent
schg_cas03	mapflag	loadevent
schg_cas04	mapflag	loadevent
schg_cas05	mapflag	loadevent
arug_cas01	mapflag	loadevent
arug_cas02	mapflag	loadevent
arug_cas03	mapflag	loadevent
arug_cas04	mapflag	loadevent

Agregé callfunc "Card"; a las script de las card

4357,B_Seyren_Card,Lord Knight Card,6,20,,10,,,,,,,,769,,,,,{ callfunc "Card"; skill "LK_BERSERK",1; bonus bMaxHPrate,-50; },{},{}
4361,B_Harword_Card,MasterSmith Card,6,20,,10,,,,,,,,2,,,,,{ callfunc "Card"; bonus bBreakWeaponRate,1000; bonus bBreakArmorRate,700; },{},{}
4362,Harword_Card,Howard Alt-Eisen Card,6,20,,10,,,,,,,,2,,,,,{ callfunc "Card"; bonus bAspdRate,-5; bonus bHit,30; },{},{}
4364,Magaleta_Card,Margaretha Sorin Card,6,20,,10,,,,,,,,769,,,,,{ callfunc "Card"; bonus bInt,1; bonus5 bAutoSpellWhenHit,"PR_LEXDIVINA",5,150,BF_MAGIC,1; },{},{}
4367,B_Shecil_Card,Sniper Card,6,20,,10,,,,,,,,2,,,,,{ callfunc "Card"; bonus2 bHpDrainRate,100,20; bonus bHPrecovRate,-10; },{},{}

El problema que tengo es que Skill como Bersek que me entrega la Lord Knight Card no me la toma en ningún mapa

thump_2269623error.png

 

Si alguien me pudiera ayudar a dejar solo que funcione una card MVP en WoE que salga como al azar y las demás a storage

 

PD: No marcan errores Script tampoco item_db

Edited by Zikoziz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  07/08/12
  • Last Seen:  

¿Eso sería sin necesidad de agregarle una función a la carta?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Voy a testiar gracias por la ayuda ;)

Link to comment
Share on other sites

  • 5 weeks later...

  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Solucionado ;)

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
Reply to this topic...

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