Jump to content
  • 0

Duplicate npc not working


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

hi good day can you help me guys how to fix this

 

i  added a dupicate at the bottom of the script but the duplicates not showing

 

thank you

 

heres the script

 

 

PvP-GvG-PartyVsParty.txt

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

16 minutes ago, Quesooo said:

hi good day can you help me guys how to fix this

 

i  added a dupicate at the bottom of the script but the duplicates not showing

 

thank you

 

heres the script

 

 

PvP-GvG-PartyVsParty.txt

guild_vs3	mapflag	nobranch
guild_vs3	mapflag	nomemo
guild_vs3	mapflag	nosave	SavePoint
guild_vs3	mapflag	noteleport
guild_vs3	mapflag	nowarp
guild_vs3	mapflag	nowarpto
guild_vs3	mapflag	nomvploot
guild_vs3	mapflag	loadevent
guild_vs3	mapflag	pvp
guild_vs3	mapflag	pvp_noguild
guild_vs3	mapflag	pvp_noparty

guild_vs4	mapflag	nobranch
guild_vs4	mapflag	nomemo
guild_vs4	mapflag	nosave	SavePoint
guild_vs4	mapflag	noteleport
guild_vs4	mapflag	nowarp
guild_vs4	mapflag	nowarpto
guild_vs4	mapflag	nomvploot
guild_vs4	mapflag	loadevent
guild_vs4	mapflag	pvp

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_n_2-5	mapflag	gvg

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
pvp_y_1-2	mapflag	pvp

rachel,119,144,4	script	PvP_Warper	413,{

if(getgmlevel() > 99) goto gmenu;

beginnplayer:
if(agitcheck()) goto nowoetime;
if(Class == 0) goto nonovice;
delwaitingroom;
waitingroom "["+ (getmapusers("guild_vs3")) +"] ["+ (getmapusers("guild_vs4")) +"] ["+ (getmapusers("pvp_n_2-5")) +"] ["+ (getmapusers("pvp_y_1-2")) +"]",0;
	mes "[PvP Warper]";
	mes "Hello, ^0000CD"+strcharinfo(0)+"^000000";
	mes "Where do you want to battle?";
	mes "     ";
	mes "?What happens in the PvP Room";
	mes "stays in the PvP Room.";
	menu 	"- PVP Square ^FF0000["+ (getmapusers("guild_vs3")) +"]^000000",alljob,
	"- PVP Arena ^FF0000["+ (getmapusers("guild_vs4")) +"]^000000",trans,
	"- Guild vs. Guild Room ^FF0000["+ (getmapusers("pvp_n_2-5")) +"]^000000",gvgor,
	"- Party vs. Party Room^FF0000["+getmapusers("pvp_y_1-2")+"]^000000",pavpa;

	alljob:
		if(getgmlevel()> 0) goto leise1;
		query_sql ("SELECT `pvpladder`.`kills` FROM `pvpladder` WHERE `pvpladder`.`char_id` = "+ getcharid(0), .@kills);
		query_sql ("SELECT `pvpladder`.`deaths` FROM `pvpladder` WHERE `pvpladder`.`char_id` = "+ getcharid(0), .@deaths);
		announce "~ [ "+strcharinfo(0)+" ("+ .@kills +" Kills and "+ .@deaths +" Deaths) entered the pvp square! ] ~",0,0x00CCFF;
		leise1:
		warp "guild_vs3", 0,0;
		end;

	trans:
		if(getgmlevel()> 0) goto leise2;
		query_sql ("SELECT `pvpladder`.`kills` FROM `pvpladder` WHERE `pvpladder`.`char_id` = "+ getcharid(0), .@kills);
		query_sql ("SELECT `pvpladder`.`deaths` FROM `pvpladder` WHERE `pvpladder`.`char_id` = "+ getcharid(0), .@deaths);
		announce "~ [ "+strcharinfo(0)+" ("+ .@kills +" Kills and "+ .@deaths +" Deaths) entered the pvp arena! ] ~",0,0x00CCFF;
		leise2:
		warp "guild_vs4", 0,0;
		end;

	pavpa:
	next;
	mes "[PvP Warper]";
   		if (getcharid(1) == 0) {
      		mes "You are not in a party.";
			close;
    		} else if (getpartyleader(getcharid(1),2) != getcharid(0)) {
      		mes "You are not the party leader.";
			close;
   		} else {
       	getpartymember(getcharid(1));
      	if ($@partymembercount < 2) {
           	 mes "You need at least 2 party members for me to warp you.";
			 close;
        	} else {
	warpparty "pvp_y_1-2",0,0, getcharid(1);
        }
    	}
    	end;

	nowoetime:
		mes "[PvP Warper]";
		mes "You cannot enter to PvP Room during WoE!";
		close;

	nonovice:
		mes "[PvP Warper]";
		mes "You are to weak to go in PvP!";
		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";
			end;
			}
		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,0x00CCFF;
		set @glvl, 1;
		warp "pvp_n_2-5", 99,133;
		end;

	gvgeast:
		mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0,0x00CCFF;
		set @glvl, 1;
		warp "pvp_n_2-5", 133,99;
		end;

	gvgsouth:
		mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0,0x00CCFF;
		set @glvl, 1;
		warp "pvp_n_2-5", 100,65;
		end;

	gvgwest:
		mapannounce "pvp_n_2-5",""+strcharinfo(0)+" of the "+strcharinfo(2)+" Guild has entered the Guild Battle Ground!",0,0x00CCFF;
		set @glvl, 1;
		warp "pvp_n_2-5", 66,99;
		end;

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

OnPcKillEvent:
	if((@glvl == 1)) goto glvln;
	set @killer$, rid2name(killedrid);
	if (getmapxy(@mapname$,@mapx,@mapy,0,""+strcharinfo(0)+"") != 0) goto Cancel;
	if (@mapname$ != "guild_vs3") end;
	if (strcharinfo(0)==@killer$ || "(null)"==@killer$) {
	mapannounce "guild_vs3",""+strcharinfo(0)+" has suicided.",0,0x0000FF; }
	end;

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 "PVP Square - "+getmapusers("guild_vs3")+" Player ",0;
	delwaitingroom;
	waitingroom "PVP Square - "+getmapusers("guild_vs3")+" Player ",0;
	delwaitingroom;
	waitingroom "PVP Square - "+getmapusers("guild_vs3")+" Player ",0;
	delwaitingroom;
	waitingroom "PVP Arena - "+getmapusers("guild_vs4")+" Player ",0;
	delwaitingroom;
	waitingroom "PVP Arena - "+getmapusers("guild_vs4")+" Player ",0;
	delwaitingroom;
	waitingroom "PVP Arena - "+getmapusers("guild_vs4")+" Player ",0;
	delwaitingroom;
	waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_2-5")+" Player ",0;
	delwaitingroom;
	waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_2-5")+" Player ",0;
	delwaitingroom;
	waitingroom "Guild vs. Guild - "+getmapusers("pvp_n_2-5")+" Player ",0;
	delwaitingroom;
	waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
	delwaitingroom;
	waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
	delwaitingroom;
	waitingroom "Party vs. Party "+getmapusers("pvp_y_1-2")+" Player ",0;
	goto finalstrikeropresents;
}

//===================== Duplicates ==============================================
alberta,31,240,4	duplicate(PvP_Warper)	PvP_Warper#alb	413
aldebaran,111,110,4	duplicate(PvP_Warper)	PvP_Warper#ald	413
amatsu,213,101,4	duplicate(PvP_Warper)	PvP_Warper#ama	413
ayothaya,155,119,4	duplicate(PvP_Warper)	PvP_Warper#ayo	413
comodo,166,164,4	duplicate(PvP_Warper)	PvP_Warper#com	413
einbroch,79,186,4	duplicate(PvP_Warper)	PvP_Warper#ein	413
einbroch,231,190,2	duplicate(PvP_Warper)	PvP_Warper#ein2	413
einbech,82,110,4	duplicate(PvP_Warper)	PvP_Warper#einb	413
geffen,130,111,4	duplicate(PvP_Warper)	PvP_Warper#gef	413
gonryun,147,109,4	duplicate(PvP_Warper)	PvP_Warper#gon	413
izlude,142,139,4	duplicate(PvP_Warper)	PvP_Warper#izl	413
hugel,85,147,3	duplicate(PvP_Warper)	PvP_Warper#hug	413
lighthalzen,146,93,2	duplicate(PvP_Warper)	PvP_Warper#ligh	413
louyang,218,119,4	duplicate(PvP_Warper)	PvP_Warper#lou	413
morocc,145,81,4	duplicate(PvP_Warper)	PvP_Warper#mor	413
payon,146,227,4	duplicate(PvP_Warper)	PvP_Warper#pay	413
umbala,84,143,4	duplicate(PvP_Warper)	PvP_Warper#umb	413
xmas,141,127,4	duplicate(PvP_Warper)	PvP_Warper#xmas	413
yuno,176,187,4	duplicate(PvP_Warper)	PvP_Warper#yuno	413

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

18 minutes ago, Quesooo said:

hi good day can you help me guys how to fix this

 

i  added a dupicate at the bottom of the script but the duplicates not showing

 

thank you

 

heres the script

 

 

PvP-GvG-PartyVsParty.txt

Try removing the _

(PvP Warper)

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

thank you guys i hope this will work now

 

i cant reload till now lots of players are playing ingame XD maybe later

 

thank you so much

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

to unload

@unloadnpcfile npc/my_npcs_folder/my_npc.txt

to reload

@loadnpc npc/my_npcs_folder/my_npc.txt

 

no need to reload all the scripts by typing @reloadscript

  • Like 1
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...