Jump to content
  • 0

PVP drop skull on specific time


Question

Posted (edited)

hello and good morning , i have 1 pvp script , but i want the drop skull function only at 2000-2300 to avoid abuse .

heres the example pvp script  

 

askald,134,101,4    script    PVP Arena    733,{

set .npcname$,"^0147FA[ PVP Arena Warper ]^000000";

mes .npcname$;
mes "[Arena Lists & Player's Count]";
mes "[Solo] [ ^00FF33" + getmapusers("guild_vs3") + "^000000 / 100 ]";
mes "[Party] [ ^00FF33" + getmapusers("pvp_y_1-1") + "^000000 / 100 ]";

switch(select("Solo:Party")) {

        Case 1:    
            if(getmapusers("guild_vs3") == 100) goto L_Full;
            getmapxy .@map$,.@x,.@y;;
            announce strcharinfo(0)+" has entered PVP Solo "+$@lista$,0;
            //sc_end SC_ASSUMPTIO ;
            warp "guild_vs3",0,0;
            
            end;
        Case 2:    
            if(getmapusers("pvp_y_1-1") == 100) goto L_Full;
            getmapxy .@map$,.@x,.@y;;
            announce strcharinfo(0)+" has entered PVP Party "+$@lista$,0;
            warp "pvp_y_1-1",0,0;
            end;

L_Full:
    mes .npcname$;
    mes "Sorry you cant go in now";
    mes "The room is full now";
    mes "Please try again later";
    close;
    }

OnPCDieEvent:
getmapxy( .@map$, .@x, .@y);
if (.@map$ == "guild_vs3") 
makeitem 7420, 1, .@map$, .@x, .@y; 
end;


OnAgitStart:
hideonnpc strnpcinfo(0);
end;

OnAgitEnd:
hideoffnpc strnpcinfo(0);
end;
OnAgitStart2:
hideonnpc strnpcinfo(0);
end;

OnAgitEnd2:
hideoffnpc strnpcinfo(0);
end;

end;

OnInit:
waitingroom "PVP Warper",0;

}

//MAPFLAGS
pvp_y_1-1    mapflag    gvg    off    
guild_vs3    mapflag    gvg    off
pvp_y_1-1    mapflag    pvp
guild_vs3    mapflag    pvp
pvp_y_1-1    mapflag    nosave    SavePoint
guild_vs3    mapflag    nosave    SavePoint
pvp_y_1-1    mapflag    noteleport
guild_vs3    mapflag    noteleport
pvp_y_1-1    mapflag    nowarp
guild_vs3    mapflag    nowarp
pvp_y_1-1    mapflag    nowarpto
guild_vs3    mapflag    nowarpto
pvp_y_1-1    mapflag    nomemo
guild_vs3    mapflag    nomemo
pvp_y_1-1    mapflag    nobranch
guild_vs3    mapflag    nobranch
guild_vs3    mapflag    pvp_noguild
 

Edited by DK77

4 answers to this question

Recommended Posts

  • 0
Posted
Quote

OnPCDieEvent:
getmapxy( .@map$, .@x, .@y);
if (.@map$ == "guild_vs3") 
  if (gettime(DT_HOUR)>=20 && gettime(DT_HOUR)<22){
	makeitem 7420, 1, .@map$, .@x, .@y; 
  }
end;

 

 

  • 0
Posted

okay ill try first ❤️ 

On 5/11/2021 at 12:28 PM, LearningRO said:

 

@LearningRO Hello sir , i already test and it working fine , btw  can i make it from 12pm - 2am  ? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...