Quero trocar 10 cartas aleatórias entre 4001-4453 pelo Oridecon_Enquerico.
O script precisa verificar se o jogador possui 10 cartas aleatórias no inventário; se ele tiver, ele receberá o item Oridecon_Enquecido e remove as 10 cartas do inventário.
-----------------------------------------
Good evening,
Help me with this script.
I want to exchange 10 random cards between 4001-4453 for Oridecon_Enquerico.
The script needs to check if the player has 10 random cards in the inventory, if he has, he will receive the item Oridecon_Enquecido and remove the 10 cards from the inventory.
prontera,154,179,3 script Oca#cards 4W_M_01,{
//GroupID do usuário
set .@groupid_user, 1;
// Quantidade Oridecon Enriquecidos entregue
set .@qtd_oridecon, 1;
// Quantidade cartas obrigatórias
set .@qtd_item, 10;
// Site no qual será indicado ao jogador para se tornar um Usuário VIP.
.@WebSite$ = "https://google.com.br";
if( getgroupid() >= .@groupid_user) {
mes "Deseja trocar carta por Oridecon Enriquecidos?";
switch( select("Sim", "Não"))
{
case 1:
mes "Ok, irei verificar os requisitos.";
next;
for( set .@i,4001; .@i <= 4453; .@i++)
{
if(countitem(getitemname(.@i)) && .@qtd_item == 10)
{
mes "Aqui está seu item.";
getitem 7620,1;
close2;
cutin "", 255;
} else
{
mes "verifique os requisitos";
close2;
end;
}
}
case 2:
mes "até mais";
close2;
cutin "", 255;
end;
}
} else
{
mes "Somente VIP pode usar meus serviços. Para se tornar um usuário VIP, acesse nosso site:";
mes "^0000FF" + .@WebSite$ + "^000000";
close2;
cutin "", 255;
end;
}
}
Question
daelgyn
Boa noite,
Me ajude com este script.
Quero trocar 10 cartas aleatórias entre 4001-4453 pelo Oridecon_Enquerico.
O script precisa verificar se o jogador possui 10 cartas aleatórias no inventário; se ele tiver, ele receberá o item Oridecon_Enquecido e remove as 10 cartas do inventário.
-----------------------------------------
Good evening,
Help me with this script.
I want to exchange 10 random cards between 4001-4453 for Oridecon_Enquerico.
The script needs to check if the player has 10 random cards in the inventory, if he has, he will receive the item Oridecon_Enquecido and remove the 10 cards from the inventory.
prontera,154,179,3 script Oca#cards 4W_M_01,{ //GroupID do usuário set .@groupid_user, 1; // Quantidade Oridecon Enriquecidos entregue set .@qtd_oridecon, 1; // Quantidade cartas obrigatórias set .@qtd_item, 10; // Site no qual será indicado ao jogador para se tornar um Usuário VIP. .@WebSite$ = "https://google.com.br"; if( getgroupid() >= .@groupid_user) { mes "Deseja trocar carta por Oridecon Enriquecidos?"; switch( select("Sim", "Não")) { case 1: mes "Ok, irei verificar os requisitos."; next; for( set .@i,4001; .@i <= 4453; .@i++) { if(countitem(getitemname(.@i)) && .@qtd_item == 10) { mes "Aqui está seu item."; getitem 7620,1; close2; cutin "", 255; } else { mes "verifique os requisitos"; close2; end; } } case 2: mes "até mais"; close2; cutin "", 255; end; } } else { mes "Somente VIP pode usar meus serviços. Para se tornar um usuário VIP, acesse nosso site:"; mes "^0000FF" + .@WebSite$ + "^000000"; close2; cutin "", 255; end; } }
Link to comment
Share on other sites
1 answer 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.