IsabelaFernandez Posted July 31, 2018 Posted July 31, 2018 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 Quote
1 hendra814 Posted August 1, 2018 Posted August 1, 2018 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; } 1 1 Quote
0 crazyarashi Posted July 31, 2018 Posted July 31, 2018 - 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; } 1 Quote
0 IsabelaFernandez Posted July 31, 2018 Author Posted July 31, 2018 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 Quote
0 crazyarashi Posted July 31, 2018 Posted July 31, 2018 - 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 1 Quote
0 IsabelaFernandez Posted July 31, 2018 Author Posted July 31, 2018 (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 July 31, 2018 by IsabelaFernandez Quote
0 crazyarashi Posted July 31, 2018 Posted July 31, 2018 Well sad to say i don't know why is that happening Quote
0 IsabelaFernandez Posted August 1, 2018 Author Posted August 1, 2018 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 Quote
Question
IsabelaFernandez
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
7 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.