Jump to content

Question

7 answers to this question

Recommended Posts

  • 1
Posted
14 hours ago, IsabelaFernandez said:

Thank you, it worked perfectly, exactly as I wanted !!! <3
He only has one problem after selecting the enchantment, he only walks after using @refresh, do you have any idea what that might be? 

try this, just insert command for refresh

-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements[.@i],180000,5;
		atcommand "@refresh "+strcharinfo(0);
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements, 96, 97, "99", "98", "37", "144", "26";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,99;
	end;
}

 

  • Upvote 1
  • Love 1
  • 0
Posted
-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements$[.@i],180000,5;
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Fire", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements$, "SC_FIREWEAPON", "SC_WATERWEAPON", "SC_EARTHWEAPON", "SC_WINDWEAPON", "SC_ASPERSIO", "SC_SHADOWWEAPON", "SC_ENCPOISON";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,5;
	end;
}

 

  • Like 1
  • 0
Posted
8 hours ago, crazyarashi said:

-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements$[.@i],180000,5;
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Fire", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements$, "SC_FIREWEAPON", "SC_WATERWEAPON", "SC_EARTHWEAPON", "SC_WINDWEAPON", "SC_ASPERSIO", "SC_SHADOWWEAPON", "SC_ENCPOISON";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,5;
	end;
}

 

paytowin hahaha nice one ?

Thanks for the intention, but unfortunately it did not work, would it be possible with bindatcmd script? Thank you dear 
  • 0
Posted
-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements[.@i],180000,5;
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements, 96, 97, "99", "98", "37", "144", "26";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,99;
	end;
}

Added some changes to it. it should add a command for VIP which is group 5 just edit it if you have custom group for VIP's

  • Love 1
  • 0
Posted (edited)
54 minutes ago, crazyarashi said:

-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements[.@i],180000,5;
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements, 96, 97, "99", "98", "37", "144", "26";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,99;
	end;
}

Added some changes to it. it should add a command for VIP which is group 5 just edit it if you have custom group for VIP's

Thank you, it worked perfectly, exactly as I wanted !!! <3
He only has one problem after selecting the enchantment, he only walks after using @refresh, do you have any idea what that might be? 
Edited by IsabelaFernandez
  • 0
Posted
20 hours ago, crazyarashi said:

Well sad to say i don't know why is that happening ?

 

No problem, you've helped me a lot already. Thank you very much ?

6 hours ago, hendra814 said:

try this, just insert command for refresh


-	script	paytowinbuffs	-1,{
end;

OnBuffs:
	.@size = getarraysize(.buffs$);
	for( .@i = 0; .@i < .@size; .@i++){
		.@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
		}
		.@i = select(.@menu$) -1;
		sc_start .elements[.@i],180000,5;
		atcommand "@refresh "+strcharinfo(0);
		end;

OnInit:
	setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
	setarray .elements, 96, 97, "99", "98", "37", "144", "26";
	bindatcmd "buffs2","paytowinbuffs::OnBuffs",5,99;
	end;
}

 

 

I would suggest this, thank you friend, now it's perfect ❤️

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