donkeyg Posted February 19, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Share Posted February 19, 2014 //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee~ //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ izlude,102,163,5 script PvP Warper::pvp#1 60,{ mes "[PvP Warper]"; mes "Do you want to warp to the PvP Arena and fight your enemies?"; menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No; L_Yes: mes "[PvP Warper]"; mes "Which PvP Arena do you want to enter?"; menu "Free For All PvP Arena [" + getmapusers("guild_vs3.gat") + " / 100]",L1, "Trans Classes PvP Room [" + getmapusers("guild_vs4.gat") + " / 100]",L4, "PvP Izlude [" + getmapusers("pvp_y_5-2.gat") + " / 100]",L2, "NO-MVP-CARDS PvP Arena [" + getmapusers("guild_vs2.gat") + " / 100]",L3, "Solo PvP Room [" + getmapusers("guild_vs5.gat") + " / 2]",L5; end; L1: if (getmapusers("guild_vs3.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5; warp "guild_vs3",0,0; close; L2: if (getmapusers("pvp_y_5-2.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the PvP Izlude Room",0,0x81DAF5; warp "pvp_y_5-2",0,0; close; L3: if (getmapusers("guild_vs4.gat") > 1) goto Lsorry; //if (Class > 4054) { mes "Third classes cannot enter."; close; } announce "[ "+strcharinfo(0)+" ] has entered to the NO-MVP-CARDS PvP Room",0,0x81DAF5; warp "guild_vs4",0,0; close; L4: if (getmapusers("guild_vs2.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the No-Party PvP Arena",0,0x81DAF5; warp "guild_vs2",0,0; close; L5: if (getmapusers("guild_vs5.gat") > 1) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the Solo PvP Room",0,0x81DAF5; warp "guild_vs5",0,0; close; Lsorry: mes "[PvP Warper]"; mes "Sorry but this PvP Arena is full, maybe you could try another one."; close; L_No: close; OnInit: waitingroom "PvP Warper",0; end; } pvp_y_8-2 mapflag nocommand guild_vs1 mapflag nocommand guild_vs2 mapflag nocommand guild_vs3 mapflag nocommand guild_vs4 mapflag nocommand guild_vs5 mapflag nocommand guild_vs3,12,50 warp warpz#1 1,1,izlude,127,162 guild_vs3,49,87 warp warpz#2 1,1,izlude,127,162 guild_vs3,50,12 warp warpz#3 1,1,izlude,127,162 guild_vs3,87,50 warp warpz#4 1,1,izlude,127,162 pvp_y_5-2,25,98 warp warpz#5 1,1,izlude,127,162 guild_vs5,50,77 warp warpz#6 1,1,izlude,127,162 Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 20, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 20, 2014 Find L_Yes: mes "[PvP Warper]"; Replace L_Yes: if(PvPDelay > gettimetick(2)) { mes "You have to wait "+PvPDelay-gettimetick(2)+" before you can enter the PvP room again"; close; } mes "[PvP Warper]"; set PvPDelay,gettimetick(2)+604800; Quote Link to comment Share on other sites More sharing options...
donkeyg Posted February 20, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted February 20, 2014 Find L_Yes: mes "[PvP Warper]"; Replace L_Yes: if(PvPDelay > gettimetick(2)) { mes "You have to wait "+PvPDelay-gettimetick(2)+" before you can enter the PvP room again"; close; } mes "[PvP Warper]"; set PvPDelay,gettimetick(2)+604800; If every 2 days once ? How to write it Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 20, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 20, 2014 find set PvPDelay,gettimetick(2)+604800; change 604800 to 60 seconds * 60 minutes * 24 hours * 2 days = 172800 Quote Link to comment Share on other sites More sharing options...
donkeyg Posted February 20, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted February 20, 2014 (edited) find set PvPDelay,gettimetick(2)+604800; change 604800 to 60 seconds * 60 minutes * 24 hours * 2 days = 172800 but it happened to me like this after i enter 2nd time. the chat box is stuck p/s: i tried use this for my malaya dungeon instead of pvp room. here is my script. L_Yes: if(PvPDelay > gettimetick(2)) { mes "You have to wait "+PvPDelay-gettimetick(2)+" before you can enter the PvP room again"; close; } mes "[Malaya Special Dungeon]"; set PvPDelay,gettimetick(2)+604800; mes "Which Malaya Special Dungeon do you want to enter?"; Edited February 20, 2014 by donkeyg Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 20, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 20, 2014 Can you show the whole script you edited? Quote Link to comment Share on other sites More sharing options...
donkeyg Posted February 20, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted February 20, 2014 Can you show the whole script you edited? //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee~ //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ izlude,103,156,5 script Nightmare Dungeon 954,{ mes "[Malaya]"; mes "Do you want to warp to the Malaya Special Dungeon and fight MVPs?"; menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No; L_Yes: if(PvPDelay > gettimetick(2)) { mes "You have to wait "+PvPDelay-gettimetick(2)+" before you can enter the PvP room again"; close; } mes "[Malaya Special Dungeon]"; set PvPDelay,gettimetick(2)+604800; mes "Which Malaya Special Dungeon do you want to enter?"; menu "Malaya Special Dungeon [" + getmapusers("pvp_n_7-2.gat") +" / 4 ]",L1, "Malaya Special Dungeon 2 [" + getmapusers("pvp_n_8-2.gat") + " / 4 ]",L2; // "PvP Izlude [" + getmapusers("pvp_y_5-2.gat") + " / 100]",L2, // "NO-MVP-CARDS PvP Arena [" + getmapusers("guild_vs2.gat") + " / 100]",L3, // "Solo PvP Room [" + getmapusers("guild_vs5.gat") + " / 2]",L5; end; L1: if (getmapusers("pvp_n_7-2.gat") > 4) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon",0,0x81DAF5; warp "pvp_n_7-2",0,0; close; L2: if (getmapusers("pvp_n_8-2.gat") > 4) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon 2",0,0x81DAF5; warp "pvp_n_8-2",0,0; close; //L3: //if (getmapusers("guild_vs4.gat") > 1) goto Lsorry; //if (Class > 4054) { mes "Third classes cannot enter."; close; } //announce "[ "+strcharinfo(0)+" ] has entered to the NO-MVP-CARDS PvP Room",0,0x81DAF5; //warp "guild_vs4",0,0; //close; //L4: //if (getmapusers("guild_vs2.gat") > 99) goto Lsorry; //announce "[ "+strcharinfo(0)+" ] has entered to the No-Party PvP Arena",0,0x81DAF5; //warp "guild_vs2",0,0; //close; //L5: //if (getmapusers("guild_vs5.gat") > 1) goto Lsorry; //announce "[ "+strcharinfo(0)+" ] has entered to the Solo PvP Room",0,0x81DAF5; //warp "guild_vs5",0,0; //close; Lsorry: mes "[Malaya Dungeon]"; mes "Sorry but this Malaya Port Dungeon is full, maybe you could try another one."; close; L_No: close; OnInit: waitingroom "Malaya Special Dungeon",0; end; } Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 21, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 21, 2014 Have you tried adding close; before L_Yes ends? Sorry I can't test it for you I don't have an emu.. If it gets stuck, there's should be a debug message in your map-server console.. Quote Link to comment Share on other sites More sharing options...
donkeyg Posted February 21, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted February 21, 2014 Have you tried adding close; before L_Yes ends? Sorry I can't test it for you I don't have an emu.. If it gets stuck, there's should be a debug message in your map-server console.. Yes tried, still cant. Quote Link to comment Share on other sites More sharing options...
Poseidon Posted February 21, 2014 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 107 Reputation: 6 Joined: 12/09/11 Last Seen: May 9, 2017 Share Posted February 21, 2014 Hi Donkeyg Ive rewritten it and debuged it and tested on current revision and it works //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee & Sandbox & Poseidon //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ izlude,103,156,5 script Nightmare Dungeon 954,{ if (PvPDelay > gettimetick(0)+172800000) { mes "You have to wait "+gettimetick(0)+" before you can enter the PvP room again"; close; } mes "[Malaya]"; mes "Do you want to warp to the Malaya Special Dungeon and fight MVPs?"; next; switch(select("Sure, Bring it on!:Nah, I'm not ready yet.")){ case 1: mes "[Malaya Special Dungeon]"; set PvPDelay,gettimetick(0)+172800000; mes "Which Malaya Special Dungeon do you want to enter?"; next; switch(select("Malaya Special Dungeon [" + getmapusers("pvp_n_7-2.gat") +" / 4 ]:Malaya Special Dungeon 2 [" + getmapusers("pvp_n_8-2.gat") + " / 4 ]")){ case 1: if (getmapusers("pvp_n_7-2.gat") > 4) { mes "Sorry but this Malaya Port Dungeon is full, maybe you could try another one."; close;} announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon",0,0x81DAF5; warp "pvp_n_7-2",0,0; close; case 2: if (getmapusers("pvp_n_8-2.gat") > 4) { mes "Sorry but this Malaya Port Dungeon is full, maybe you could try another one."; close;} announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon 2",0,0x81DAF5; warp "pvp_n_8-2",0,0; close; } case 2: close; } OnInit: waitingroom "Malaya Special Dungeon",0; end; } Quote Link to comment Share on other sites More sharing options...
donkeyg Posted February 22, 2014 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Author Share Posted February 22, 2014 find set PvPDelay,gettimetick(2)+604800; change 604800 to 60 seconds * 60 minutes * 24 hours * 2 days = 172800 i still dont know how to set thsi timer... what if i make it 2 days once?? Hi Donkeyg Ive rewritten it and debuged it and tested on current revision and it works //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee & Sandbox & Poseidon //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ izlude,103,156,5 script Nightmare Dungeon 954,{ if (PvPDelay > gettimetick(0)+172800000) { mes "You have to wait "+gettimetick(0)+" before you can enter the PvP room again"; close; } mes "[Malaya]"; mes "Do you want to warp to the Malaya Special Dungeon and fight MVPs?"; next; switch(select("Sure, Bring it on!:Nah, I'm not ready yet.")){ case 1: mes "[Malaya Special Dungeon]"; set PvPDelay,gettimetick(0)+172800000; mes "Which Malaya Special Dungeon do you want to enter?"; next; switch(select("Malaya Special Dungeon [" + getmapusers("pvp_n_7-2.gat") +" / 4 ]:Malaya Special Dungeon 2 [" + getmapusers("pvp_n_8-2.gat") + " / 4 ]")){ case 1: if (getmapusers("pvp_n_7-2.gat") > 4) { mes "Sorry but this Malaya Port Dungeon is full, maybe you could try another one."; close;} announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon",0,0x81DAF5; warp "pvp_n_7-2",0,0; close; case 2: if (getmapusers("pvp_n_8-2.gat") > 4) { mes "Sorry but this Malaya Port Dungeon is full, maybe you could try another one."; close;} announce "[ "+strcharinfo(0)+" ] has entered to the Malaya Special Dungeon 2",0,0x81DAF5; warp "pvp_n_8-2",0,0; close; } case 2: close; } OnInit: waitingroom "Malaya Special Dungeon",0; end; } thanks, i wil try it later!! Quote Link to comment Share on other sites More sharing options...
Question
donkeyg
//===== eAthena Script =======================================
//= PvP
//===== By: ==================================================
//= Destinee~
//===== Description: =========================================
//= A basic PVP script.
//===== Additional Comments: =================================
//= Dont copyright this and claiming that you've made this. Use it only for your own server.
//============================================================
izlude,102,163,5 script PvP Warper::pvp#1 60,{
mes "[PvP Warper]";
mes "Do you want to warp to the PvP Arena and fight your enemies?";
menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No;
L_Yes:
mes "[PvP Warper]";
mes "Which PvP Arena do you want to enter?";
menu "Free For All PvP Arena [" + getmapusers("guild_vs3.gat") + " / 100]",L1,
"Trans Classes PvP Room [" + getmapusers("guild_vs4.gat") + " / 100]",L4,
"PvP Izlude [" + getmapusers("pvp_y_5-2.gat") + " / 100]",L2,
"NO-MVP-CARDS PvP Arena [" + getmapusers("guild_vs2.gat") + " / 100]",L3,
"Solo PvP Room [" + getmapusers("guild_vs5.gat") + " / 2]",L5;
end;
L1:
if (getmapusers("guild_vs3.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5;
warp "guild_vs3",0,0;
close;
L2:
if (getmapusers("pvp_y_5-2.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the PvP Izlude Room",0,0x81DAF5;
warp "pvp_y_5-2",0,0;
close;
L3:
if (getmapusers("guild_vs4.gat") > 1) goto Lsorry;
//if (Class > 4054) { mes "Third classes cannot enter."; close; }
announce "[ "+strcharinfo(0)+" ] has entered to the NO-MVP-CARDS PvP Room",0,0x81DAF5;
warp "guild_vs4",0,0;
close;
L4:
if (getmapusers("guild_vs2.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the No-Party PvP Arena",0,0x81DAF5;
warp "guild_vs2",0,0;
close;
L5:
if (getmapusers("guild_vs5.gat") > 1) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the Solo PvP Room",0,0x81DAF5;
warp "guild_vs5",0,0;
close;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
close;
OnInit:
waitingroom "PvP Warper",0;
end;
}
pvp_y_8-2 mapflag nocommand
guild_vs1 mapflag nocommand
guild_vs2 mapflag nocommand
guild_vs3 mapflag nocommand
guild_vs4 mapflag nocommand
guild_vs5 mapflag nocommand
guild_vs3,12,50 warp warpz#1 1,1,izlude,127,162
guild_vs3,49,87 warp warpz#2 1,1,izlude,127,162
guild_vs3,50,12 warp warpz#3 1,1,izlude,127,162
guild_vs3,87,50 warp warpz#4 1,1,izlude,127,162
pvp_y_5-2,25,98 warp warpz#5 1,1,izlude,127,162
guild_vs5,50,77 warp warpz#6 1,1,izlude,127,162
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.