Advertisement
Guest User

Untitled

a guest
Nov 15th, 2011
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. // Broadcaster NPC:
  3. // version: 1.0
  4. // Custom Server NPC:
  5. // scripted: BrainWind
  6. //
  7. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8. payon,161,234,3 script Broadcaster 429,{
  9. //what's the npc name to show in messages?
  10. set @npcname$, "Broadcaster";
  11. //NPC Headers Name:
  12. set @header$,"[^0000ff" + @npcname$ + "^000000]";
  13. //NPC COST PER Broadcast:
  14. set @broadcastfee, 500000;
  15. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  16. mes @header$;
  17. mes "Hi, I'm the Broadcaster";
  18. mes "I can Broadcast a message for you";
  19. next;
  20. mes @header$;
  21. mes "It costs ^ff0000"+ @broadcastfee +"^000000 zeny ";
  22. next;
  23. mes @header$;
  24. mes "Would you like to Broadcast?";
  25. switch (select("-yes","-No")){
  26. case 1:
  27. if(@Broadcast> gettimetick(2)) {
  28. next;
  29. mes @header$;
  30. mes "Sorry you have to wait for 3 minutes.";
  31. close;
  32. }
  33. next;
  34. mes @header$;
  35. if(Zeny<500000) goto $nozenybc;
  36. set Zeny,zeny - @broadcastfee;
  37. mes "Please input your message.";
  38. next;
  39. input @broadcast$;
  40. announce " "+strcharinfo(0)+": "+@broadcast$+"",16;
  41. close2;
  42. set @Broadcast, gettimetick(2)+180;
  43. dispbottom "Broadcaster: Please wait for 3 minutes until next broadcast to avoid flooding.";
  44. end;
  45. case 2:
  46. mes "Suit yourself";
  47. close;
  48. }
  49. $nozenybc:
  50. mes "I have to check that you have";
  51. mes "enough money";
  52. next;
  53. mes @header$;
  54. mes "Im sorry but you dont have ^ff0000"+@broadcastfee+"^000000 zeny";
  55. mes "Go get it if you want to Broadcast";
  56. close;
  57. }
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement