Jump to content
  • 0

MvP Cad restriction not working at all


Question

Posted

Sorry for resurrect this post again, but i just noticed that this script does not work at all

a player can equip more than the ip of the cards inc ertain order

i don't know why ):

function	script	Sample	{
if( isequippedcnt( 4357,4359,4361,4363,4365,4367,4457,4463,4462,4459,4456,4458,4441,4408,4430,4263,4403,4419,4376,4399,4407,4451 ) > 2 ){
message strcharinfo(0),"You can't equipo more than 2 of these cards, Biolab, Nidhoggur, Naght, Tendrilrion, Mammoth, Rata, Duneyrr,Fallen Bishop, Gloom, Ifrit, Incantation, Kiel, Ktullanux, Tanee, Thanatos, Randgris, Crothen.";
nude;
}
return;
}

help ):

12 answers to this question

Recommended Posts

Posted

Maybe it's not related but it seems the last line in your picture miss some bracket. Have you any error on your mapserv when you use @reloaditemdb ?

...{ callfunc "Sample"; },{}// miss the last bracket.. nope?
Posted (edited)

Maybe it's not related but it seems the last line in your picture miss some bracket. Have you any error on your mapserv when you use @reloaditemdb ?

...{ callfunc "Sample"; },{}// miss the last bracket.. nope?

oh i have not

on the emulator and on the test server both does not give error

also that's just a part of the script text, because it was so big so i just cut it

 

i don't know why, with others mvp cards it works

 

the thing is that if a player equips the restricted cards in a specific order they will be able to equip them

 

how that can be ¿?

 

i don't want to bother with a request for mvp restriction, i have tested a few (like 1 or 2) that i found on google but they don't wrok too ):

Edited by Kido
Posted

hello?

 

well some one can optimize or fix this script or does have a better mvp/item restriction ):?

 

my users and i would love it so much

 

thanks in advance

Posted

I don't know... maybe try another way

function	script	Sample	{
	setarray .@card_id, 4357,4359,4361,4363,4365,4367,4457,4463,4462,4459,4456,4458,4441,4408,4430,4263,4403,4419,4376,4399,4407,4451;
	set .@size, getarraysize( .@card_id );
	for ( set .@i, 0; .@i < .@size; set .@i, .@i+1 )
		set .@total, .@total + isequippedcnt( .@card_id[.@i] );
	if( .@total > 2 ){
		message strcharinfo(0),"You can't equipo more than 2 of these cards, Biolab, Nidhoggur, Naght, Tendrilrion, Mammoth, Rata, Duneyrr,Fallen Bishop, Gloom, Ifrit, Incantation, Kiel, Ktullanux, Tanee, Thanatos, Randgris, Crothen.";
		nude;
	}
}
Posted

hello

when i started my emulator again i noticed this:

FbThD1J.png

 

and after i changed again the script you have me i got this:

LBYTf4J.png

 

in the first one it ends with :1

and in the second ends with :8

 

I would like to know why does this happen or what does it means :1 and :8

thanks again :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...