Jump to content

Hercules

Members
  • Posts

    104
  • Joined

  • Last visited

Posts posted by Hercules

  1. How can i make my Broadcaster creates a room titled "Service Unable" after a player use it's service,

    But when the 30 sec interval ends,The room will removed at the top the npc and it's service will be resumed again.

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

  3. I want to make my Shadow Jump skill to play instant.

    Because when i hide+shadow jump.There is a delay between hiding and shadow jump.about a second before the ninja cast shadow jump after casting hiding.I already set the delay rate of my server to minimum on the skill.conf.

    I play a before ragnarok that there is no delay in casting shadow jump.

    The ninja there keeps shadow jumping very fast.

    Please help.

  4. To make an aliases of @main, go here: https://rathena.svn....and_athena.conf go to the end where it says kill: ["die"]

    and add:

    main: ["gmes"]

    save and exit.

    /* Command aliases
    You can define aliases for any command. Aliases work just like original
    command.
    Format is
    <commandname>: ["<alias>", ...]
    */
    

    However, for the colour and format the way you want it.. you need to go here: https://rathena.svn....map/atcommand.c

    and find what to change in here :/

    
    /*===================================
    * Main chat [LuzZza]
    * Usage: @main <on|off|message>
    *-----------------------------------*/
    ACMD_FUNC(main)
    {
    if( message[0] ) {
    
    	if(strcmpi(message, "on") == 0) {
    		if(!sd->state.mainchat) {
    			sd->state.mainchat = 1;
    			clif_displaymessage(fd, msg_txt(380)); // Main chat has been activated.
    		} else {
    			clif_displaymessage(fd, msg_txt(381)); // Main chat already activated.
    		}
    	} else if(strcmpi(message, "off") == 0) {
    		if(sd->state.mainchat) {
    			sd->state.mainchat = 0;
    			clif_displaymessage(fd, msg_txt(382)); // Main chat has been disabled.
    		} else {
    			clif_displaymessage(fd, msg_txt(383)); // Main chat already disabled.
    		}
    	} else {
    		if(!sd->state.mainchat) {
    			sd->state.mainchat = 1;
    			clif_displaymessage(fd, msg_txt(380)); // Main chat has been activated.
    		}
    		if (sd->sc.data[sC_NOCHAT] && sd->sc.data[sC_NOCHAT]->val1&MANNER_NOCHAT) {
    			clif_displaymessage(fd, msg_txt(387));
    			return -1;
    		}
    
    		if ( battle_config.min_chat_delay ) {
    			if( DIFF_TICK(sd->cantalk_tick, gettick()) > 0 )
    				return 0;
    			sd->cantalk_tick = gettick() + battle_config.min_chat_delay;
    		}
    
    		// send the message using inter-server system
    		intif_main_message( sd, message );
    	}
    
    } else {
    
    	if(sd->state.mainchat)
    		clif_displaymessage(fd, msg_txt(384)); // Main chat currently enabled. Usage: @main <on|off>, @main <message>.
    	else
    		clif_displaymessage(fd, msg_txt(385)); // Main chat currently disabled. Usage: @main <on|off>, @main <message>.
    }
    return 0;
    }

    .

    i'm sorry but i don't understand this..

    What line will i change for the format and the color??

  5. Isn't this the same thing as @main?

    Yeah.It is like @main,

    How can i rename @main into @gmes and change the color instead of yellow to this COLOR?

    And how can i add an interval of 1 minute to prevent spamming?

    And also,i want this kind of format.

    [Global] NAME : MESSAGE

    Please help me..i want it to apply on my server

  6. Hello,I have a request command..

    Gmes Command:

    Each time a player types ,

    @gmes "Message Here"

    e.g.

    Skypirate types,

    @gmes Thank You!!

    The players will receive his message like this.

    [Global] Skypirate : Thank You!!

    [Global] NAME : MESSAGE

    ~All online players will receive the message with this COLOR but it has an interval of 1minute before he can use @gmes command again.

    ~A player can still deactivate or activate this command by typing "@gmes" alone.

    ~The player who deactivates @gmes,the player will not receive the gmes messages.

    Thanks in future...

  7. Why this script doesn't work?

    And how can i disable it by using an npc?

    1: Tabs in header and mapflag.

    2: enablenpc / disablenpc.

    I mean that the player can disable it via npc to disable the message pops out to their chat box only the player that disable it to npc does not get the message..

  8. it's hexed in client....you have to hex your client to change the colour....

    Why this script doesn't work?

    - script Sample -1,{
    OnPCKillEvent:
    if( killedrid != getcharid(3) )
    globalmes "[ "+strcharinfo(0)+" ] has slained [ "+rid2name(killedrid)+" ] !! ";
    end;
    }
    
    bat_c01	mapflag	loadevent
    

    And how can i disable it by using an npc?

×
×
  • Create New...