Jump to content
  • 0

an NPC displays a pub room


Hercules

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  104
  • Reputation:   1
  • Joined:  05/04/12
  • Last Seen:  

This is the scipt.


dicastes01,192,199,5 script BroadCaster 602,{
set .Minutes,1;
if( .DelayTime <= gettimetick(2)){
mes "The price for today is ^FF0000"+$price+"^000000 zeny.";
next;
goto L_menu;

L_menu:
menu 
    "BLAH!BLAH!",L_01,


L_01:
input @broadcast$;
mes "Are you sure want to broadcast ^FF0000"+@broadcast$+"^000000";
menu "Yes",broad01,"No",L_no;

broad01:
if(Zeny < $price) goto error;
set Zeny, Zeny - $price;
announce ""+strcharinfo(0)+": "+@broadcast$+"",0,0xFF0000;
set .DelayTime,gettimetick(2) + ( .Minutes * 60 );
close;


L_no:
next;
if(Sex == 0)
mes "Hello Mrs ^FA8258"+strcharinfo(0)+"^000000 Have a nice day.";
else
mes "Hello Mr ^FA8258"+strcharinfo(0)+"^000000 Have a nice day.";
close;

error:
next;
mes "You dont have ^FF0000"+$price+"^000000 zeny.";
close;

}else if( .DelayTime > gettimetick(2) ){
set .last,.DelayTime - gettimetick(2);
set .@sec,  .last % (24*60*60) % (60*60) % (60);
npctalk "Please wait for "+.@sec+" seconds";
close;
}
}

SIRs what i will add on this script to displays a

ROOM which a title of the remaining seconds before any player use the broadcaster.Every seconds the title of the room changes into the remaining sec.The npc is unclickable,i mean that if a player click the npc nothing happens.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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