Jump to content
  • 0

PVP drop skull on specific time


DK77

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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;

 

 

Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  22
  • Reputation:   1
  • Joined:  06/21/20
  • Last Seen:  

OnClock2000:
	setbattleflag("bone_drop",1);
	end;

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

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  ? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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

Link to comment
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.

×
×
  • Create New...