Jump to content
  • 0

Script for PvP


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

Hello, I would like a script for Vips (group 1) called @buffs2 that would open options to enchant the weapon with: Poison, Holy, Wind, Shadow, Earth, Water and Fire
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1182
  • Reputation:   160
  • Joined:  06/12/12
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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 ❤️

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