Jump to content
  • 0

badges for cash


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

You need to include more information with your post... What exactly are you asking for?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

just setup a cashshop and sell these badges using cashpoint =D

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

 

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.

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