Scofield Posted November 13, 2015 Group: Members Topic Count: 109 Topics Per Day: 0.02 Content Count: 272 Reputation: 16 Joined: 01/11/13 Last Seen: Yesterday at 09:49 AM Share Posted November 13, 2015 I would like a configurable npc who swapped badges bg by cash Quote Link to comment Share on other sites More sharing options...
0 GreenMagic793 Posted November 14, 2015 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 157 Reputation: 19 Joined: 08/18/15 Last Seen: April 5, 2023 Share Posted November 14, 2015 You need to include more information with your post... What exactly are you asking for? Quote Link to comment Share on other sites More sharing options...
0 iraciz Posted November 14, 2015 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Share Posted November 14, 2015 (edited) Quick Share! this is my personal one, in spanish! I won´t translate it. guide yourself! //= Cash Points por Badges //===== By: ================================================== //= Iracixz bat_room,168,146,4 script Cash x Badges 685,{ //=============CONFIGURATION=================== setarray .Coins,7829,7828,7773; setarray .Valor,5,7,10; set .@nombr$,"^FF0000Legendario Sakray^000000"; //============================================= mes .@nombr$; cutin "sakray",2; mes "Hola! me alegra verte aqui!"; mes "soy Sakray, la leyenda de este servidor! hoy estoy aqui como puedes ver."; next; cutin "sakray",255; mes .@nombr$; mes "Otorgo Puntos Cash por Medallas de Battlegrounds"; mes "nadie mejor que yo para distribuir estos valiosos creditos."; next; mes .@nombr$; mes "1 Valor Badge = ^00FF005 cash^000000"; mes ""; mes "1 Bravery Badge = ^0000FF7 cash^000000"; mes ""; mes "1 War Badge = ^FF000010 cash^000000"; set .@menu$,""; for(set .@i, 0; .@i < getarraysize(.Coins); set .@i, .@i + 1) { if( .@i < 1 ) set .@menu$, getitemname(.Coins[ .@i ]); else set .@menu$, .@menu$ + ":" + getitemname(.Coins[ .@i ]); } set .@j, select (.@menu$) - 1; next; mes .@nombr$; mes "Selecciona cuantas " + getitemname(.Coins[ .@j ]) + " quieres cambiar, [0 para salir]."; input .@cant; next; mes .@nombr$; if ( .@cant == 0 ) close; if ( countitem(.Coins[ .@j ]) < .@cant ) { mes "No tienes esa cantidad de " + getitemname(.Coins[ .@j ]); emotion e_ag; close; } specialeffect 500; progressbar "ffff00",1; specialeffect 492; sleep2 400; specialeffect 400,0,"Cofre"; sleep2 450; specialeffect2 18; mes "Listo! ya puedes revisar tus CP con el comando ^FF0000@myinfo^000000!"; delitem .Coins[ .@j ], .@cant; set #CASHPOINTS, #CASHPOINTS + ( .Valor[ .@j ] * .@cant ); close2; dispbottom "Tienes actualmente [" + #CASHPOINTS + "] Cash Points"; cutin "sakray",255; end; OnInit: waitingroom "Cash x Badge",0; end; } bat_room,170,146,4 script Cofre 10005,{ specialeffect 778; mes "^FF0000Legendario Sakray^000000"; mes "No mires mucho ese cofre!"; mes "yo se que no deseas perder una mano por ser tan fisgon!."; close; } Edited November 14, 2015 by iraciz Quote Link to comment Share on other sites More sharing options...
0 PandaLovesHamster Posted November 14, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 452 Reputation: 35 Joined: 12/18/14 Last Seen: May 30, 2016 Share Posted November 14, 2015 (edited) Could rewrite the code above in English, rather just have my own dialogues, just keep the code intact. Anyways, I am going to sleep so I'll be back later to fix it up. //= Cash Points por Badges //===== By: ================================================== //= Iracixz bat_room,168,146,4 script Cash x Badges 685,{ //=============CONFIGURATION=================== setarray .Coins,7829,7828,7773; setarray .Valor,5,7,10; set .@name$,"[^FF0000Legendary Sakray^000000]"; // NPC Name Here //============================================= mes .@name$; //cutin "sakray",2; removed cutin, since might not have it and just gives you error mes "Insert Lines Here..."; next; //cutin "sakray",255; mes .@name$; mes "Insert Lines Here..."; next; mes .@name$; mes "1 Valor Badge = ^00FF00"+.Valor[0]+" cash^000000"; mes ""; mes "1 Bravery Badge = ^0000FF"+.Valor[1]+" cash^000000"; mes ""; mes "1 War Badge = ^FF000010"+.Valor[2]+" cash^000000"; set .@menu$,""; for(set .@i, 0; .@i < getarraysize(.Coins); set .@i, .@i + 1) { if( .@i < 1 ) set .@menu$, getitemname(.Coins[ .@i ]); else set .@menu$, .@menu$ + ":" + getitemname(.Coins[ .@i ]); } set .@j, select (.@menu$) - 1; next; mes .@name$; mes "Select Coin " + getitemname(.Coins[ .@j ]); input .@cant; next; mes .@name$; if ( .@cant == 0 ) close; if ( countitem(.Coins[ .@j ]) < .@cant ) { mes "Not enough " + getitemname(.Coins[ .@j ]); emotion e_ag; close; } specialeffect 500; progressbar "ffff00",1; specialeffect 492; sleep2 400; specialeffect 400,0,"Cofre"; sleep2 450; specialeffect2 18; mes "Success!"; delitem .Coins[ .@j ], .@cant; set #CASHPOINTS, #CASHPOINTS + ( .Valor[ .@j ] * .@cant ); close2; dispbottom "You have [" + #CASHPOINTS + "] Cash Points remaining"; //cutin "sakray",255; end; OnInit: waitingroom "Cash x Badge",0; end; } bat_room,170,146,4 script Cofre 10005,{ specialeffect 778; mes "^FF0000Legendary Sakray^000000"; mes "Insert lines here.."; close; } Got lazy, so you have to put the lines back to where they should be. Good luck. Edited November 14, 2015 by PandaRapesHamster Quote Link to comment Share on other sites More sharing options...
-1 Ninja Posted November 14, 2015 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted November 14, 2015 Quick Share! this is my personal one, in spanish! I won´t translate it. guide yourself! the last time I checked you're the one needing help here. Maybe you can be a little bit more polite. Quote Link to comment Share on other sites More sharing options...
-1 Emistry Posted November 14, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 14, 2015 just setup a cashshop and sell these badges using cashpoint =D Quote Link to comment Share on other sites More sharing options...
Question
Scofield
I would like a configurable npc who swapped badges bg by cash
Link to comment
Share on other sites
5 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.