Jump to content

Currently

Members
  • Posts

    313
  • Joined

  • Last visited

Posts posted by Currently

  1.  

    Not sure if this should be in script section or here but..

     

    Anybody know how to make specific items not able to obtain from @item?

     

    Hello. You can either use a source modification or a script to achieve that.

     

    Should you choose to use a script, you'll first have to remove @item access via groups.conf then run this script.

    //By Capuche
    
    -	script	atcmd_noitem	-1,{
    OnInit:
    	bindatcmd "item",strnpcinfo(3)+"::OnAtcommand";
    	setarray .item_restrict,
    		607, //1st item to be restricted
    		501; //2nd item to be restricted
    	.item_restrict_size = getarraysize( .item_restrict );
    	end;
    OnAtcommand:
    	[email protected] = getgmlevel();
    	if( [email protected] && [email protected]_numparameters ){
    		[email protected] = atoi( [email protected]_parameters$[0] );
    		if( [email protected] < 99 ){
    			for( [email protected] = 0; [email protected] < .item_restrict_size; [email protected]++ )
    				if( [email protected] == .item_restrict[[email protected]] ){
    					message strcharinfo(0),"You cannot create this item.";
    					end;
    				}
    		}
    		if( getitemname( [email protected] ) != "null" ){
    			[email protected] = atoi( [email protected]_parameters$[1] );
    			if ( [email protected] < 1 ) [email protected] = 1;
    			getitem [email protected],[email protected];
    		}
    	}
    	end;
    
    }
    

     

    So, I set my Super Player to have the item:

     

    id: 1
    name: "Super Player"
    inherit: ( "Player" ) /* can do everything Players can and more */
    level: 0
    commands: {
    /* informational commands */
    item: true

    and as default on Event Managers:

    id: 4
    name: "Event Manager"
    inherit: ( "Support" )
    level: 1
    commands: {
    monster: true
    monstersmall: true
    monsterbig: true
    killmonster2: true
    cleanarea: true
    cleanmap: true
    item: [true, true]

    So should I remove these both? How about the Admin level though since it has all commands? Lol

  2. if (Class == Job_Lord_Knight) getitem 56000,1; warp "job_soul",30,30; end;
    } else {
    if (Class == Job_High_Priest) getitem 56001,1; warp "prontera",30,30; end;
    } else {
    

    For Lord Knight, the getitem work and also send the character to job soul.

     

    However, High Priest the getitem does not work and does not send the character to Prontera.

     

    Any reasoning or help please?

  3. I know that for job sprites, it is this location to change them.

     

    /data/sprite/Àΰ£Á·/¸öÅë/³²

     

    but my data files have this instead.. [\sprite\방패]

     

    Can anybody tell me the /data/sprite/____/____/__ for male and female?

     

    I wanna change for example the Novice Sprite to another sprite.

     

     

  4. For the Lost Soul NPC at the end of the Endless Tower, it gives an item to the player..

     

    But the time limit is 4 hours so they can go back and forth to the tower and get the item.

     

    How can I add a variable to the Lost Soul NPC so they can't repeatedly get the item and it will automatically delete every after 4 hours?

  5. As I am developing my server and adding scripts here and there, suddenly I tried to do a quest but my character (GM LVL 99) can't "attack" nor use skill on an enemy. I tried to slaveclone myself but that clone also doesn't use any type of aggression.

     

    The enemies can attack me normally or with skill..

     

    I really have no idea how this even happened or how to fix it.

     

    Script-Wise, i can't think of any of the script I added to do this problem.

     

    I tried to create a new account, but even that character cannot attack..

     

    Please help.. really need to fix this.

    Note: In my groups.conf, I have set my all_skills to false and use any of equipment to false. 
    
    But my GM level character have all the skills and use any of the equipment..

    Note: If I re-posted this from General Support, sorry but it seems that section is not active anymore and needs urgent help..

     

     

  6. As I am developing my server and adding scripts here and there, suddenly I tried to do a quest but my character (GM LVL 99) can't "attack" nor use skill on an enemy. I tried to slaveclone myself but that clone also doesn't use any type of aggression.

     

    The enemies can attack me normally or with skill..

     

    I really have no idea how this even happened or to fix it.

     

    Script-Wise, i can't think of any of the script I added to do this problem.

     

    I tried to create a new account, but even that character cannot attack..

     

    Please help.. really need to fix this.

    Note: In my groups.conf, I have set my all_skills to false and use any of equipment to false. 
    
    But my GM level character have all the skills and use any of the equipment..
  7. This is what my user_counter.txt looks like. 

     

    Problem:

    For example, I have 5 players only but the webpage only says I got 1 online player online.

    Same goes for Players Peak, it says 3 for Peak but I already reached 6 players.

    - script user_counter -1,{
    OnPCLoginEvent:
    query_sql("SELECT value FROM mapreg WHERE varname='userOnline'",[email protected]);
    if(getarraysize([email protected]) == 0) {
    query_sql("INSERT INTO mapreg(varname,value) VALUE('userOnline',1)");
    set [email protected],1;
    } else {
    query_sql("UPDATE mapreg SET value=value+1 WHERE varname='userOnline'");
    set [email protected],[email protected][0]+1;
    }
    query_sql("SELECT value FROM mapreg WHERE varname='userPeak'",[email protected]);
    if(([email protected] > [email protected][0]) || (getarraysize([email protected]) == 0)) {
    if(getarraysize([email protected]) == 0)
    [email protected]$ = "INSERT INTO mapreg(varname,value) VALUE('userPeak',"[email protected]+")";
    else
    [email protected]$ = "UPDATE mapreg SET value="[email protected]+" WHERE varname='userPeak'";
    query_sql([email protected]$);
    [email protected] = [email protected];
    } else {
    [email protected] = [email protected][0];
    }
    end;
    OnPCLogoutEvent:
    query_sql("SELECT value FROM mapreg WHERE varname='userOnline'",[email protected]);
    if([email protected][0] > 1)
    query_sql("UPDATE mapreg SET value=value-1 WHERE varname='userOnline'");
    else
    query_sql("DELETE FROM mapreg WHERE varname='userOnline'");
    end;
    }
  8. prontera,158,156,4 script Pay for Buff 100,{
    if( @h_last > gettimetick(2) || !slc_bufs ) goto Set_Buffs;
    set @h_last, gettimetick(2)+5;
    
    
    [email protected] = callsub(Sub_PriceCheck);
    
    
    if( [email protected] > Zeny ) {
    message strcharinfo(0), "You don't have enough zeny to buff double click the buffer to modify your selection.";
    end;
    }
    
    
    for( [email protected] = 0; [email protected] < .len; [email protected]++ )
    if( ( slc_bufs & pow( 2, [email protected] ) ) ) {
    skilleffect .skil_num[[email protected]], .levels[[email protected]];
    sc_start .sc_effect[[email protected]], .ticks[[email protected]], .levels[[email protected]];
    message strcharinfo(0),"Buff "+.skil_txt$[[email protected]]+" Added!";
    }
    Zeny = Zeny - [email protected];
    end;
    
    
    Sub_PriceCheck:
    for( [email protected] = 0; [email protected] < .len; [email protected]++ )
    if( ( slc_bufs & pow( 2, [email protected] ) ) )
    [email protected] = [email protected] + .price[[email protected]];
    return [email protected];
    
    
    Set_Buffs:
    [email protected]_bufs = slc_bufs;
    [email protected] = callsub(Sub_PriceCheck);
    
    
    function sf {
    function s;
    [email protected] = getarg(2);
    [email protected] = getarg(3);
    return (
    sprintf( getarg(0),
    s([email protected], [email protected], getarg(1), getarg(4), getarg(5)), s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)),
    s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)),
    s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), 
    s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), 
    s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5)), s([email protected]++, [email protected], getarg(1), getarg(4), getarg(5))
    )
    +(( [email protected]+1 < [email protected] )?":Next":":")
    +(( [email protected] > 0 )?":Back":":")
    +":Done:Cancel"
    );
    function s {
    if( getarg(0) >= getarg(1) ) return "";
    else {
    [email protected]$ = getelementofarray( getarg(2), getarg(0) );
    return [email protected]$==""?"":"Buff [ ^0054ff"[email protected]$+"^000000 ] Lv"+getelementofarray( getarg(4), getarg(0) )+" [ "+(getarg(3)&pow(2,getarg(0))?"^35a100On":"^FF0000Off")+"^000000 ]";
    }
    };
    };
    function nex { return((getarg(0)+10)<getarg(1)?getarg(0)+10:getarg(1)-(getarg(1)%10)); };
    function bac { return((getarg(0)-10)>=0?getarg(0)-10:0); };
    
    
    mes .npc_nm$;
    mes "Select your buffs!";
    next;
    [email protected] = 0;
    while( 1 ) {
    select( sf( .format$, .skil_txt$, [email protected], .len, [email protected]_bufs, .levels ) );
    switch( @menu ) {
    case 11: [email protected] = nex( [email protected], .len ); break;
    case 12: [email protected] = bac( [email protected] ); break;
    case 13: 
    mes .npc_nm$;
    mes "Alright, your current total will be "[email protected]+"z each time you use my buffing service. Is that ok?";
    next;
    if( select("Yes:No") == 1 )
    slc_bufs = [email protected]_bufs;
    case 14: end;
    
    
    default:
    [email protected] = [email protected][email protected];
    if( ( [email protected]_bufs & pow( 2, [email protected] ) ) ) {
    [email protected]_bufs = [email protected]_bufs - pow( 2, [email protected] );
    [email protected] = [email protected] - .price[[email protected]];
    } else {
    [email protected]_bufs = [email protected]_bufs + pow( 2, [email protected] );
    [email protected] = [email protected] + .price[[email protected]];
    }
    }
    }
    end;
    
    
    OnInit:
    .npc_nm$ = "[ "+strnpcinfo(1)+" ]";
    setarray .sc_effect, SC_CP_WEAPON, SC_CONCENTRATE, SC_ASSUMPTIO, SC_TRUESIGHT, SC_MAXOVERTHRUST, SC_AUTOCOUNTER, SC_PROVIDENCE;
    setarray .skil_txt$, "Full Protection Lv5", "Attention Concentrate Lv10",  "Assumptio Lv 5",  "True Sight Lv 10",  "Maximum Over Thrust Lv5",  "Auto Guard Lv10",  "Providence Lv 5";
    setarray .ticks,     300000,         300000,      300000,       300000,       300000,     300000,        300000;
    setarray .price,     1000000,           3000000,        1000000,         3000000,         3000000,       3000000,         1000000;
    setarray .skil_num,  479,             45,          361,          380,           486,         249,            256;
    setarray .levels,    5,             10,          5,            10,            5,         10,             5;
    .format$ = "%s:%s:%s:%s:%s:%s:%s:%s:%s:%s";
    .len = getarraysize(.sc_effect);
    end;
    }

    So I changed the skills it does, but then after the NPC cast the buffs on me. My character cannot move nor sit down.

     

     

    Which buff skill makes my character not move?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.