Jump to content
  • 0

Help with this :)


Question

Posted (edited)

So i have this warper long ago in eathena. i dont know who owns this but for sure he is a great one /gg. here is the problem.

if the player gets killed, the weapon he is wearing gets dropped. Specially in pvp_n_1-5 WHYYY? :(

Here is the script:

pvp_n_1-5 mapflag nobranch
pvp_n_1-5 mapflag nomemo
pvp_n_1-5 mapflag nosave SavePoint
pvp_n_1-5 mapflag noteleport
pvp_n_1-5 mapflag nowarp
pvp_n_1-5 mapflag nowarpto
pvp_n_1-5 mapflag nomvploot
pvp_n_1-5 mapflag loadevent
pvp_n_1-5 mapflag pvp_noparty
pvp_n_2-5 mapflag nobranch
pvp_n_2-5 mapflag nomemo
pvp_n_2-5 mapflag nosave SavePoint
pvp_n_2-5 mapflag noteleport
pvp_n_2-5 mapflag nowarp
pvp_n_2-5 mapflag nowarpto
pvp_n_2-5 mapflag nomvploot
pvp_n_2-5 mapflag loadevent
pvp_y_1-2 mapflag nobranch
pvp_y_1-2 mapflag nomemo
pvp_y_1-2 mapflag nosave SavePoint
pvp_y_1-2 mapflag noteleport
pvp_y_1-2 mapflag nowarp
pvp_y_1-2 mapflag nowarpto
pvp_y_1-2 mapflag nomvploot
pvp_y_1-2 mapflag loadevent
prt_are01 mapflag nobranch
prt_are01 mapflag nomemo
prt_are01 mapflag nosave SavePoint
prt_are01 mapflag noteleport
prt_are01 mapflag nowarp
prt_are01 mapflag nowarpto
prt_are01 mapflag nomvploot
prt_are01 mapflag loadevent

prontera,150,150,5 script PvP Warper#2 843,{
if (getgmlevel() > 65) goto gmbeginmenu;
beginnplayer:
if(Class == 0) goto nonovice;
delwaitingroom;
waitingroom "["+ (getmapusers("pvp_n_1-5")) +"] ["+ (getmapusers("pvp_y_8-1")) +"] ["+ (getmapusers("pvp_y_8-2")) +"] ["+ (getmapusers("pvp_y_8-3")) +"] ["+ (getmapusers("pvp_y_8-4")) +"] ["+ (getmapusers("pvp_y_8-5")) +"]",0;
mes "[PvP Warper]";
mes "Hello, ^0000CD"+strcharinfo(0)+"^000000";
mes "Welcome on the PVP Battle Rooms!";
mes "Where do you want to battle?";
mes "	 ";
mes "?What happens in the PvP Room";
mes "stays in the PvP Room.";
menu  "- Battle ground ^FF0000["+ (getmapusers("pvp_n_1-5")) +"]^000000",battle,
"- The Arena",arena,
"- Guild vs. Guild ^FF0000["+ (getmapusers("pvp_n_2-5")) +"]^000000",gvgor,
"- Party vs. Party ^FF0000["+getmapusers("pvp_y_1-2")+"]^000000",pavpa;

battle:
 if (getgmlevel() > 1) goto leise;
 if(countitem(607)>0) goto L_Noberry;
 if(countitem(13517)>0) goto L_Noberry;
 npctalk ""+strcharinfo(0)+" entered the Battle ground! ";
 //atcommand "@size 3"; ----- Kinda annoying because players get so large hehehe
 atcommand "@undisguise";
 mapannounce "pvp_n_1-5",""+strcharinfo(0)+" ("+PVPKills+" Kills and "+PVPDeaths+" Deaths) entered the Battle Ground!",0;
 leise:
 warp "pvp_n_1-5", 0,0;
 close;
arena:
 if (getgmlevel() > 1) goto GMundsowas;
 npctalk ""+strcharinfo(0)+" entered The Arena! ";
 mapannounce "prt_are01",""+strcharinfo(0)+" ("+PVPKills+" Kills and "+PVPDeaths+" Deaths) entered The Arena!",0;
 GMundsowas:
 warp "prt_are01", 0,0;
 close;
pavpa:
next;
mes "[PvP Warper]";
 if (getcharid(1) == 0) {
	mes "You're not in a party.";
  } else if (getpartyleader(getcharid(1),2) != getcharid(0)) {
	mes "You are not the party leader.";
 } else {
	getpartymember(getcharid(1));
   if ($@partymembercount < 2) {
		 mes "You need at least 2 party members for me to warp you.";
	 } else {
warpparty "pvp_y_1-2",0,0, getcharid(1);
	}
 }
 close;

nonovice:
mes "[PvP Warper]";
mes "You are to weak to go in PvP!";
close;
L_Noberry:
next;
mes "[PvP Warper]";
mes "No Berrys please.";
close;

gvgor:
next;
mes "[PvP Warper]";
mes "please insert your ^0000CDGuild name^000000";
input .@guildname$;
if (.@guildname$!=strcharinfo(2)) {
 next;
 mes "[PvP Warper]";
 mes "Sorry, but I don't think I heard";
 mes "you correctly";
 close;
 }
next;
mes "[PvP Warper]";
mes "Where you want to Begin Battle?";
menu "North",gvgnorth,"East",gvgeast,"South",gvgsouth,"West",gvgwest;

gvgnorth:
mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
set @glvl, 1;
warp "pvp_n_2-5", 99,133;
close;
gvgeast:
mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
set @glvl, 1;
warp "pvp_n_2-5", 133,99;
close;
gvgsouth:
mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
set @glvl, 1;
warp "pvp_n_2-5", 100,65;
close;
gvgwest:
mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0;
set @glvl, 1;
warp "pvp_n_2-5", 66,99;
close;



gmbeginmenu:
menu "Normal Player View",beginnplayer,"Warp Player Out of Batlleground",outwarp;
outwarp:
mapannounce "pvp_n_1-5","I am Sorry..But GM "+strcharinfo(0)+" has warped all players out of this map!",0;
close2;
sleep2 3000;
mapwarp "pvp_n_1-5","prontera",156,184;
end;

OnPcKillEvent:
if((@glvl == 1)) goto glvln;
set @killer$, rid2name(killedrid);
if (getmapxy(@mapname$,@mapx,@mapy,0,""+strcharinfo(0)+"") != 0) goto Cancel;
if (@mapname$ != "pvp_n_1-5") end;
if (strcharinfo(0)==@killer$ || "(null)"==@killer$) {
mapannounce "pvp_n_1-5",""+strcharinfo(0)+" has suicided.",0; }
else {
mapannounce "pvp_n_1-5",""+strcharinfo(0)+" killed "+@killer$+".",0,0x0000FF; }
close;
glvln:
set @gglvlt, rand(1,3);
if((@gglvlt == 3)) goto gglvlt;
end;
gglvlt:
atcommand "@glvl +1";
end;
OnPcLoginEvent:
set @glvl, 0;
end;

OnPcDeadEvent:
set @glvl, 0;
end;
OnInit:
finalstrikeropresents:
delwaitingroom;
waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Battleground - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_1-5")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
sleep2 1000;
delwaitingroom;
waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
sleep2 1000;
goto finalstrikeropresents;
}

Edited by MrVandalBus
use [codebox] if the script >10 lines ... and move to script support

2 answers to this question

Recommended Posts

Posted (edited)
When quoting/pasting large amounts of text, please use codeboxes instead of regular code tags, or enclose the code/quote inside of spoiler tags.

and I think this topic is in the wrong section.

btw see if Mapflag#pvp_nightmaredrop in your mapflag folder

trunk/conf/mapflag/nightmare.txt

is enabled to pvp_n_1-5

Edited by Capuche

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...