Kido Posted November 13, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted November 13, 2013 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 ): Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 13, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 minutes ago Share Posted November 13, 2013 Did you call the function through your items? Quote Link to comment Share on other sites More sharing options...
Kido Posted November 14, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 14, 2013 Did you call the function through your items? sorry for late answer yeah i did it and it's not working ): Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 14, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 14, 2013 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? Quote Link to comment Share on other sites More sharing options...
Kido Posted November 15, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 15, 2013 (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 November 15, 2013 by Kido Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 15, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 15, 2013 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. Quote Link to comment Share on other sites More sharing options...
Kido Posted November 16, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 16, 2013 i just checked them and they are right ): Quote Link to comment Share on other sites More sharing options...
Kido Posted November 18, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 18, 2013 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 Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 18, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 18, 2013 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. Quote Link to comment Share on other sites More sharing options...
Kido Posted November 18, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 18, 2013 i already did it, all cards that i want to ban are now with the function ): Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 19, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 19, 2013 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; } } Quote Link to comment Share on other sites More sharing options...
Kido Posted November 20, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted November 20, 2013 thanks and sorry to make such trouble, going to test it! Quote Link to comment Share on other sites More sharing options...
Kido Posted December 12, 2013 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Author Share Posted December 12, 2013 hello when i started my emulator again i noticed this: and after i changed again the script you have me i got this: 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 Quote Link to comment Share on other sites More sharing options...
Question
Kido
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 ):
help ):
Link to comment
Share on other sites
12 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.