Jump to content

simplynice

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by simplynice

  1. I'm not sure where to post this since it can be a hotkey problem / client problem or lub problem.

     

    I'm using 2008-01-22 client. Too old, i know. :D

     

     

    Anyone knows how to remove ctrl+v from the image? so i can paste a text into a chatbox and remain the alt+v.

     

    See attachment.

    post-323-0-20163800-1398332222_thumb.jpg

  2. I want to spawn different kind of mobs that saved on the array. 5 Levels.

    Can't make it work.

     

     

    Here's my code:

    
    set .@count,0;
    setarray .@namelevel$[0], ".@level0", ".@level1", ".@level2", ".@level3", ".@level4";
    setarray .@level0[0], 1002, 1002, 1002;
    setarray .@count0[0], 1, 1, 1;
    setarray .@level1[0], 1002, 1002, 1002;
    setarray .@count1[0], 1, 1, 1;
    setarray .@level2[0], 1002, 1002, 1002;
    setarray .@count2[0], 1, 1, 1;
    setarray .@level3[0], 1002, 1002, 1002;
    setarray .@count3[0], 1, 1, 1;
    setarray .@level4[0], 1002, 1002, 1002;
    setarray .@count4[0], 1, 1, 1;
    
    for( set .@i, 0; .@i < getarraysize(.@namelevel$[.@count]); set .@i, .@i +1 ) {
     // spawn monster here and call the :monsterKilled label and count mobs on the map
     // if mob count is 0 set .@count, .@count+1
     // and do the for loop again
     // so it will be .@level1
     // until .@level4 finishes
    }
    
    Any work around?
    

    Thank you in advance.

  3. I'd like to attach a timer to a player.

     

    Example:

     

    I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for  1 week.

     

    It's an account based attachment of time.

     

    The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again.

     

    I just need an idea easy enough to understand.

    hi there

     

    could u kindly explain y do u need such a script? i apologize but i did not understand the need of such script.

    I'd like to limit players to talk to NPC because it gives item.

  4. I'd like to attach a timer to a player.

     

    Example:

     

    I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for  1 week.

     

    It's an account based attachment of time.

     

    The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again.

     

    I just need an idea easy enough to understand.

  5. Thank you for this sir! I edited your work into much simpler one, it will let you select up to 3x with the same item.

     

       

     

     setarray .beadID[1],4739,4709,4749,4729,4759,4719,4790,4794,4763,4799,4802,4825,4831,4841,4844,4849,4848,4852,4868;
        
        deletearray .@selections[1], getarraysize(.beadID);
        
        set .@how_many_selects, 4;
        
        while (.@how_many_selects > 1)
        {
        set .@BeadMenu$,"";
        
        for( set .@i,1; .@i < getarraysize( .beadID ); set .@i,.@i + 1 ){
            set .@BeadMenu$,.@BeadMenu$ + getitemname( .beadID[.@i] )+":";
        }
        set .@Bead,select( .@BeadMenu$ );
        set .@how_many_selects, .@how_many_selects - 1;
        set .@selections[.@how_many_selects], .beadID[.@Bead];
        sleep2 1;
        }
        
        for ( set .@i, 1; .@i < getarraysize(.beadID); set .@i, .@i+1 ) {
            if (.@selections[.@i]) {
                //getitem .@selections[.@i],1;
                dispbottom "ITEM ID"+.@selections[.@i];
            }
        }
        close;
     

    Thanks for the snippet.

  6. So my script is just like this..

    //this is the item choices
    setarray .beadID[1],4739,4709,4749,4729,4759,4719,4790,4794,4763,4799,4802,4825,4831,4841,4844,4849,4848,4852,4868;
    set .@BeadMenu$,"";
    
    //loop for menufor( set .@i,1; .@i < getarraysize( .beadID ); set .@i,.@i + 1 ){
    set .@BeadMenu$,.@BeadMenu$ + getitemname( .beadID[.@i] )+":";
    }
    
    //makes a selection of what item you want
    set .@Bead,select( .@BeadMenu$ );
     

     

     

     

     

    I want the player to choose three kinds of bead or loop it 3 times and save it into an array.

    set .beadChoices[1],.beadID[.@Bead]1,.beadID[.@Bead]2,.beadID[.@Bead]3;

     

    How can i achieve this?

     
  7. Are you trying to ban or kick those GM with a level of 2 - 98.

     

    If it is then:

     

    if( (getgroupid != 99) || (getgroupid != 1) ){

    //kick him or whatever

    atcommand "@kick "+strcharinfo(0)+"";

    }

     

    What he means is that when a normal player hack a gm or an account with a group id of 1 or higher, it will prompt the hacker a password and if not matched, it will be give a group id of 25 which has no commands.

    That's the script does, it gives the person a group id of 25 with no commands although if the password did not match it will kick the person. There's no use that you want him inside the game without a basic command.

  8. File Name: Simple Hack Security

    File Submitter: simplynice

    File Submitted: 18 Jun 2013

    File Category: Utilities

    Content Author: SimplyNice

    The title says it all.

    Every time a Game Master with a group_id of 1 or higher log in game, automatically the "HackerDetector" NPC will be triggered.

    It will prompt and ask you for a security password which is "iamnotahacker",you can change it to your liking but before that NPC will give you the group_id of 25. Why 25? i don't know it's my favorite number.

    Put this in your \conf\groups.conf

    {	id: 25	name: "Hacker"	level: 25	inherit: ( /*empty list*/ )	commands: {		/* no commands */	}	permissions: {	}} 

    Enjoy and don't forget to say thank you and do not remove credits.

    Click here to download this file

  9. how about we add this every time we do the for loop:

     

    set .@int, .@int++; // just like php and other programming language

     

     

    How about:

     

    set .@int, mysql_num_rows; // count the number of rows

  10. prontera,127,213,4    script    Guild_Emperium    722,{
    if(@breakgname$ == "") {
        } else {
            flagemblem @breakgnameid;
    }
    switch(select("Participate:Guild Master:Guild Breaker")){
        case 1:
        
        if(agitcheck() == 1){
            mes "War of Emperium is currently active.";
        }
        
        if(getcharid(2,strcharinfo(0)) == 0){
            mes "You should be in a guild;";
            close;
        }
        
        if (@breakgname$){
            if( getcharid(2) == @breakgnameid ){
            warp "pvp_y_1-1",155,195;
            }
        }
        
        warp "pvp_y_1-1",279,204;
        dispbottom "The emperium is located at the center of the map.";
        end;
        break;
        
        case 2:
        if(@breakgname$ == "") {
            mes "No record yet.";
            close;
        } else {
        mes "The Guild Master of ^ff0000"+@breakgname$+"^000000 Guild is:";
        mes "^ff0000"+GetGuildMaster(@breakgnameid)+"^000000";
        }
        break;
        
        case 3:
        if(@breakgname$ == "") {
            mes "No record yet.";
            close;
        } else {
            mes "The breaker of ^ff0000"+@breakgname$+"^000000 Guild is:";
            mes "^ff0000"+@breakeremp$+"^000000";
        }
        break;
    }
    close;
        
    OnInit:
    monster "pvp_y_1-1",155,195,"Emperium",1288,1,"GvG::OnBreakEmp";
    end;
    
    OnBreakEmp:
    set @breakeremp$,""+strcharinfo(0)+"";
    set @breakgnameid,getcharid(2,strcharinfo(0));
    set @breakgname$,getguildname(@breakgnameid);
    maprespawnguildid "pvp_y_1-1",@breakgnameid,6;
    sleep2 1000;
    announce "The [ Guild Emperium ] has been destroyed by the [ " + @breakgname$ + " ] guild.",bc_all;
    if(!mobcount("pvp_y_1-1","GvG::OnBreakEmp")){
    monster "pvp_y_1-1",155,195,"Emperium",1288,1,"GvG::OnBreakEmp";
    }
    end;
    
    OnGuildBreak:
        SetCastleData "pvp_y_1-1",0,0;
        sleep2 2000;
        Announce "Guild Emperium has been abandoned.",0;
        end;
    }
    
    pvp_y_1-1    mapflag    nowarp
    pvp_y_1-1    mapflag    nomemo
    pvp_y_1-1    mapflag    nobranch
    pvp_y_1-1    mapflag    noteleport
    pvp_y_1-1    mapflag    nosave    SavePoint
    pvp_y_1-1    mapflag    gvg_castle
    

     

    i want the script that everytime someone in a guild kill the emp, it cannot be killed again just like the woe. how can i do that?

     

    My castledb.txt

     

    34,pvp_y_1-1,EmperiumWar,Guild_Emperium,1
    

     

     

  11. Euphy please help me with this:

    http://rathena.org/b...elp-job-master/

    This is my modification, just a scratch:

    if((Class == 4211) || (Class == 4212)){
     mes "No more jobs are available.";
     close;
    }
    if((Class == 25) && ( BaseLevel >= 99 ) && ( JobLevel >= 150 )){
     if (select("Kagerou or Oboro","Later")==1) {
      jobchange 4211;
     }
     close;
    } else if((Class == 25) && ( BaseLevel < 99 ) && ( JobLevel < 150 )) {
     mes "You should have a base level of 99 and job level of 150 to change into kagerou or oboro.";
     close;
    }
    

  12. How can i join `global_reg_value` and `char`?

    I'd like to mes the `name` of the invoking `character_id` from `global_reg_value` so the only way to get the `name` is to join the table or comparing the `char_id` of both `global_reg_value` and `char` or if there's another way it will be much better.

    The purpose of this is to display the top 5 PVP players on npc.

    Example:

    Character Name - Kills

    name1 - 25 kills

    name2 - 2 kills

    etc....

×
×
  • Create New...