Jump to content
  • 0
Sign in to follow this  
DK77

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 [email protected]$,[email protected],[email protected];;
            announce strcharinfo(0)+" has entered PVP Solo "[email protected]$,0;
            //sc_end SC_ASSUMPTIO ;
            warp "guild_vs3",0,0;
            
            end;
        Case 2:    
            if(getmapusers("pvp_y_1-1") == 100) goto L_Full;
            getmapxy [email protected]$,[email protected],[email protected];;
            announce strcharinfo(0)+" has entered PVP Party "[email protected]$,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( [email protected]$, [email protected], [email protected]);
if ([email protected]$ == "guild_vs3") 
makeitem 7420, 1, [email protected]$, [email protected], [email protected]
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

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
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;

 

 

Share this post


Link to post
Share on other sites
  • 1
OnClock2000:
	setbattleflag("bone_drop",1);
	end;

OnClock2300:
	setbattleflag("bone_drop",0);
	end;

 

Share this post


Link to post
Share on other sites
  • 0

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  ? 

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, DK77 said:

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

try to change 24 and 2

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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