Jump to content

Nokia

Members
  • Posts

    150
  • Joined

  • Last visited

Posts posted by Nokia

  1. hmm, can i do this by just warping the people random into the waiting rooms? like this:

    bat_room,156,160,3 script Register 416,{
    switch( select("Tierra") )
    {
     case 1:
    switch( rand(1,2) ){
    	case 1: warp "bat_room", 57, 223; end; //blue team waiting room
    	case 2: warp "bat_room", 57, 207; end; //red team waiting room
    }
    }
    }
    

    i probably need some checks there, like stop warping if there are 3 users in the watingroom, this will probably not work becasue all waiting rooms are an the same map :P

  2. topic says, just 1 npc which warps random into the bg, something like this i found:

    //Conquest Randomizer
    bat_room,135,175,4 script Conquest I::ConR_Random 466,{
    end;
    OnInit:
    waitingroom "Conquest",1,"ConR_RANDOM::OnDoB_CONQ",1;
    end;
    }
    - script ConR_RANDOM -1,{
    OnDoB_CONQ:
    if( $@Conquest == 1 ) {
    //
    set .@Guillaume, bg_get_data($@Conquest_id1, 0);
    set .@Croix, bg_get_data($@Conquest_id2, 0);
    if( .@Guillaume < .@Croix )
     waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random";
    else if( .@Guillaume > .@Croix )
     waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random";
    else
    {
     set .@GuillaumeR, getwaitingroomstate(0,"ConR_Random");
     set .@CroixR, getwaitingroomstate(0,"ConR_Random");
     if( .@GuillaumeR <= .@CroixR )
      set .@Limit, .@GuillaumeR;
     else
      set .@Limit, .@CroixR;
     if( .@Limit + .@Guillaume > 50 )
      set .@Limit, 50 - .@Guillaume;
     if( .@Limit <= 0 ) end;
     for( set .@i, 0; .@i < .@Limit; set .@i, .@i + 1 )
     {
      waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random";
      waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random";
     }
     set .@Guillaume, .@Guillaume + .@Limit;
     set .@Croix, .@Croix + .@Limit;
     mapannounce "bat_room","Battleground -- Conquest [80-99] G: " + .@Guillaume + "/50, C: " + .@Croix + "/50 (Playing)",1,0xFFA500;
    }
    end;
    }
    }
    

    but its not working on rathena, nothing happens if i enter the waitingroom.

  3. LMS do not start after 10 min...i have been waiting for 20min already

    its not starting every 10 minutes, like the script said:

    OnMinute10: // Start at every Hours 10th Minutes.
    

    thats every hour on minute 10.

    if it should start every 10 minute, i guess you have to add:

    OnClockxxyyy:
    OnClockxxyy:
    

    xx <- hour yy <- minute

    etc.

    not sure about an easier way, but its working

  4. ehw, you misunderstood that, you said the sleep2 command is the reason, why the npc is freezing if a player logout between the sleep2 / getitem step, so, i can also add the getitem thing before the sleep2 steps and it would be fine.

    my sample. should also solve the npc freeze:

     getitem $guessprize, $guessprizecount;
     npctalk strcharinfo(0) + " got my right name!",0;
     sleep2 3000;
    

    before / wrong:

     npctalk strcharinfo(0) + " got my right name!",0;
     sleep2 3000;
     getitem $guessprize, $guessprizecount;
    

  5. ah, i see, also set the price before the sleep steps will fix it too? like this?

    winround:
     setnpctimer 0;
     deletepset 1;
     set .DisguiseWon, 1;
     set $DisguiseRound, $DisguiseRound + 1;
     getitem $guessprize, $guessprizecount;
     npctalk strcharinfo(0) + " got my right name!",0;
     sleep2 3000;
     npctalk $MonsterName$ + " is the correct answer.";
     sleep2 3000;
     npctalk "Take this as a reward.";
    // getitem $guessprize, $guessprizecount;
    
    

  6. Hi there, i need a simple player check for the disguise event v2 http://rathena.org/b...isguiseeventv2/

    the npc is freezing, if a player guessed the right monster and the player logs out / disconnect.

    i think, its this part:

    winround:
     setnpctimer 0;
     deletepset 1;
     set .DisguiseWon, 1;
     set $DisguiseRound, $DisguiseRound + 1;
     npctalk strcharinfo(0) + " got my right name!",0;
     sleep2 3000;
     npctalk $MonsterName$ + " is the correct answer.";
     sleep2 3000;
     npctalk "Take this as a reward.";
     getitem $guessprize, $guessprizecount;
    

    so, how can i add "if the player is offline just continue with the next round" ?

  7. Hi,

    is there a way to disable autoloot for Mercenaries? Like the Homunculus settings:

    // Does autoloot work, when a monster is killed by homunculus only?

    homunculus_autoloot: no

    but that's not working for mercs and i cant find an option like that for mercs.

  8. Hi, can someone explain how to disable specific skills on a map? i know there are the restricted.txt and skill_no_cast but i cant figure it out how they work together, for example, i wanna disable endure in prontera, what should i do?

  9. Hi, im searching for an IP Check Script, maybe an "onpcloginevent" script, i wanna kick players

    which are already logged on with 3 other accounts, like this:

    OnPCLoginEvent:

    if > players ip is 3 times logged in

    kick

    else

    end:

    possible?

×
×
  • Create New...