Jump to content

greenieken

Members
  • Content Count

    90
  • Joined

  • Last visited

Posts posted by greenieken


  1. Hello. I made the stat orbs to function as a card but can only be enchanted in costume items. 

    I changed the stat orbs location to Loc: 7168, and my costumes locations are as follows, Upper: 1024, Mid: 2048, Lower: 4096

    I wanted an NPC that will remove the orb in my costume so i can put another orb if i wanted to change it. Thank you so much!


  2. I saw this script that annie used coz i've heard that the strcharinfo(0)+ may cause lag. I haven't tried this yet in my server, can you check if this is compatible with the latest herc? thanks! @Happy

     

    Spoiler

    -    script    ksdfskjfhs    -1,{
    OnPCLoginEvent:
        dispbottom "Your timer starts now. You will receive 10 minute tickets after being online for 10 minutes";
        while (1) {
            if ( checkvending() != 2 ) {
                .@hourpointtick++;
                if ( .@hourpointtick > .tick ) {
                    dispbottom "You have received 10 minute tickets";
                    getitem 7227, 10;
                    .@hourpointtick = 0;
                }
            }
            sleep2 .sleeploop;
        }
        end; // doesn't read
    OnInit:
        .sleeploop = 10000; // every 30 seconds
        .tick = 1; // loop 60 times of 30 seconds == 30 minutes
        end;
    }

     


  3. I just checked the char ids, and unfortunately all of them are below 15000. sample pic below:

    The previous trunk that I used doesn't have this rodex feature, (unforetunately) i decided to use the latest trunk to solve the deprecated commands, but now im having problem with this rodex now. @meko

    charid.png


  4. 23 hours ago, meko said:
    
    -	script	@request	32767,{
    OnCall:
    	if (gettimetick(2) <= @COMMAND_LOCK[getnpcid(0)] && !has_permission(PERM_RECEIVE_REQUESTS)) {
    		dispbottom(sprintf("You must wait at least %i seconds to call this command again.", .delay));
    	} else {
    		@COMMAND_LOCK[getnpcid(0)] = gettimetick(2) + .delay; // update the lock
    		atcommand("@request " + implode(.@atcmd_parameters$[0], " ")); // call the true command
    	}
    	end;
    
    OnInit:
    	.delay = 10; // number of seconds to wait in between calls
    	bindatcmd("request", strnpcinfo(NPC_NAME) + "::OnCall", 99, 99, 0); // bind the custom atcommand
    	add_group_command("request", 0, true, false); // allow group 0 to use the custom atcommand
    	add_group_command("request", 1, true, false); // allow group 1 to use the custom atcommand
    	add_group_command("request", 2, true, false); // allow group 2 to use the custom atcommand
    	add_group_command("request", 3, true, false); // allow group 3 to use the custom atcommand
    	add_group_command("request", 4, true, false); // allow group 4 to use the custom atcommand
    	add_group_command("request", 10, true, false); // allow group 10 to use the custom atcommand
    	// ^ add or remove groups to match your groups.conf
    }


    In the OnInit section change .delay to the amount of seconds to wait and add your groups to the add_group_command() lines if any is missing.
    Any group that has the "receive_requests" permission will bypass the delay entirely.

     

    Relevant documentation:

    Thanks! Will try this


  5. 6 hours ago, meko said:

    You could make @request only usable by group id 99 (admin) and create a custom command (with bindatcmd()) in which you put your extra checks and call the real @request with atcommand()

    Could you make one for me please? Coz I honestly dont know how to do it.


  6. 8 hours ago, Dastgir said:

    msgstringtable problem.

    the wordings changed in msgstringtable, but server sends name, mob name, item name in order.

    I suggest change msgstring field for that.

    here's what i saw in my msgstringtable

     

    [%s] has won [%s] from '%s'.#

     

    all the same variable. o.o

×
×
  • Create New...

Important Information

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