Werdio Posted July 25, 2012 Posted July 25, 2012 (edited) Hello again x') My weapon element Buffer didn't work ;/ Script: mymap,45,56,4 script Buffer 794,{ percentheal 100,100; sc_start SC_PRESERVE,760000,10; sc_start SC_WINDWALK,760000,5; sc_start SC_ENDURE,760000,10; sc_start SC_ANGELUS,760000,10; sc_start SC_CONCENTRATE,760000,10; sc_start SC_MAGNIFICAT,760000,5; sc_start SC_GLORIA,760000,5; sc_start SC_IMPOSITIO,760000,5; sc_start SC_BLESSING,760000,10; sc_start SC_INCREASEAGI,760000,10; sc_start SC_CONCENTRATION,760000,5; sc_start SC_CP_ARMOR,760000,5; sc_start SC_CP_HELM,760000,5; sc_start SC_CP_WEAPON,760000,5; sc_start SC_CP_SHIELD,760000,5; sc_start SC_TRUESIGHT,760000,5; sc_start SC_ASSUMPTIO,760000,5; percentheal 100,100; mes "[buffer]"; mes "Which weaponelement you want?"; switch(select("Earth,"Wind","Water","Fire","Ghost","Shadow","Holy","Nothing")) { case 1: sc_start SC_WARM_WIND,760000,1; close; case 2: sc_start SC_WARM_WIND,760000,2; close; case 3: sc_start SC_WARM_WIND,760000,3; close; case 4: sc_start SC_WARM_WIND,760000,4; close; case 5: sc_start SC_WARM_WIND,760000,5; close; case 6: sc_start SC_WARM_WIND,760000,6; close; case 7: sc_start SC_WARM_WIND,760000,7; case 8: close; } } soFar~ Edited July 26, 2012 by Nochii Quote
EvilPuncker Posted July 25, 2012 Posted July 25, 2012 have you noticed that you are missing a " after Earth? Quote
Werdio Posted July 26, 2012 Author Posted July 26, 2012 (edited) *facepalm* But it dont work, I stuck and cant move if I select one element, then I have to make @die ;/ Script (Edited): mymap,45,56,4 script Buffer 794,{ percentheal 100,100; sc_start SC_PRESERVE,760000,10; sc_start SC_WINDWALK,760000,5; sc_start SC_ENDURE,760000,10; sc_start SC_ANGELUS,760000,10; sc_start SC_CONCENTRATE,760000,10; sc_start SC_MAGNIFICAT,760000,5; sc_start SC_GLORIA,760000,5; sc_start SC_IMPOSITIO,760000,5; sc_start SC_BLESSING,760000,10; sc_start SC_INCREASEAGI,760000,10; sc_start SC_CONCENTRATION,760000,5; sc_start SC_CP_ARMOR,760000,5; sc_start SC_CP_HELM,760000,5; sc_start SC_CP_WEAPON,760000,5; sc_start SC_CP_SHIELD,760000,5; sc_start SC_TRUESIGHT,760000,5; sc_start SC_ASSUMPTIO,760000,5; percentheal 100,100; mes "[buffer]"; mes "Which weaponelement you want?"; switch(select("Earth","Wind","Water","Fire","Ghost","Shadow","Holy","Nothing")) { case 1: sc_start SC_WARM_WIND,760000,1; close; case 2: sc_start SC_WARM_WIND,760000,2; close; case 3: sc_start SC_WARM_WIND,760000,3; close; case 4: sc_start SC_WARM_WIND,760000,4; close; case 5: sc_start SC_WARM_WIND,760000,5; close; case 6: sc_start SC_WARM_WIND,760000,6; close; case 7: sc_start SC_WARM_WIND,760000,7; case 8: close; } } Edited July 26, 2012 by Nochii Quote
Euphy Posted July 26, 2012 Posted July 26, 2012 Sorry, I had to. x.x setarray .@SC[0],35,40,41,72,73,74,75,110,115,120,121,21,23,29,30,32,151; for(set .@i,0; .@i<getarraysize(.@SC); set .@i,.@i+1) sc_start .@SC[.@i],760000,(.@i>10)?10:5; percentheal 100,100; set .@i, select("Earth:Wind:Water:Fire:Ghost:Shadow:Holy:Cancel")-1; if (.@i<7) { setarray .@SC[0],99,98,97,96,146,144,37; sc_start .@SC[.@i],760000,1; } close; "SC_WARM_WIND" doesn't exist, therefore defaulting to 0, or "SC_STONE" (Stone Curse). You did have me fooled for a minute, though~ (The correct status is "SC_SEVENWIND", but it's not as straightforward to use.) Quote
Werdio Posted July 26, 2012 Author Posted July 26, 2012 (edited) Okay I'll try to use it You forgot to use a " } " Right script map,45,56,4 script Buffer 794,{ setarray .@SC[0],35,40,41,72,73,74,75,110,115,120,121,21,23,29,30,32,151; for(set .@i,0; .@i<getarraysize(.@SC); set .@i,.@i+1) sc_start .@SC[.@i],760000,(.@i>10)?10:5; percentheal 100,100; set .@i, select("Earth:Wind:Water:Fire:Ghost:Shadow:Holy:Cancel")-1; if (.@i<7) { setarray .@SC[0],99,98,97,96,146,144,37; sc_start .@SC[.@i],760000,1; } close; } //<----- Here But I would add poison element too HELP ME x_X Edited July 26, 2012 by Nochii Quote
Euphy Posted July 26, 2012 Posted July 26, 2012 You forgot to use a " } " I didn't even add a header. o_o SC_ENCPOISON 26 Quote
Werdio Posted July 27, 2012 Author Posted July 27, 2012 Holy weapon didn't work :/ Whats the number for Aspersio? .. Solve this script please x') Script: whatever,45,56,4 script Buffer 794,{ setarray .@SC[0],35,40,41,72,73,74,75,110,115,120,121,21,23,29,30,32,151; for(set .@i,0; .@i<getarraysize(.@SC); set .@i,.@i+1) sc_start .@SC[.@i],760000,(.@i>10)?10:5; percentheal 100,100; mes "^ff0000[buffer]^000000"; mes "blaaaaaaah"; set .@i, select("Fire Weapon:Ice Weapon:Thunder Weapon:Earth Weapon:^F0F8FFGhost Weapon000000:Shadow Weapon:^8B008BPoison^000000 Weapon:Holy Weapon:Nothing")-1; if (.@i<7) { setarray .@SC[0],96,97,98,99,146,144,26,37; sc_start .@SC[.@i],760000,5; } mes "Have a nice day ~"; close; } soFar~ Quote
Emistry Posted July 28, 2012 Posted July 28, 2012 you can find the number here https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/const.txt Quote
Werdio Posted July 28, 2012 Author Posted July 28, 2012 (edited) Thank you but ... still it don't work with Aspersio ;< here my Script : blaa,45,56,4 script Buffer 794,{ setarray .@SC[0],35,40,41,72,73,74,75,110,115,120,121,21,23,29,30,32,151; for(set .@i,0; .@i<getarraysize(.@SC); set .@i,.@i+1) sc_start .@SC[.@i],760000,(.@i>10)?10:5; percentheal 100,100; mes "^8B0000[buffer]^000000"; mes "Welche Waffenverzauberung möchtest du?"; set .@i, select("Feuer Waffe:Eis Waffe:Blitz Waffe:Erd Waffe:^F0F8FFGhost Waffe^000000:Unlicht Waffe:^8B008BGift^000000 Waffe:Holy Waffe:Keine")-1; if (.@i<7) { setarray .@SC[0],96,97,98,99,146,144,26,37; sc_start .@SC[.@i],760000,5; } mes "Ich wünsche dir einen angenehmen Aufenthalt."; close; } Edited July 29, 2012 by Nochii Merged. Please refrain from creating a new topic when you already have a discussion going on here. Quote
Bayne Posted April 26, 2013 Posted April 26, 2013 (edited) http://rathena.org/board/topic/69323-buffer-%C2%A7-identifier/ post from Pysk Edited April 26, 2013 by Bayne Quote
Capuche Posted April 26, 2013 Posted April 26, 2013 The problem was because of if (.@i<7) { but .@i value for holy element in the menu was 7 -> Must be if (.@i<8) { Quote
Question
Werdio
Hello again x')
My weapon element Buffer didn't work ;/
Script:
soFar~
Edited by Nochii10 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.