Jump to content
  • 0

MvP Cad restriction not working at all


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Did you call the function through your items?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Did you call the function through your items?

 

sorry for late answer

 

yeah i did it and it's not working ):

vtmg.png

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Make sure you put the call in OnEquip part. If you find none error, send me your item db in PM (if you want) I will test it in my test server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i just checked them and they are right ):

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

I don't find any problem with this function. Maybe you forgot to put the function on a restricted card ? You must to put it on all the cards.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i already did it, all cards that i want to ban are now with the function ):

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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;
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

thanks and sorry to make such trouble, going to test it!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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

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