Jump to content
  • 0

Duplicate NPC


Nullifier

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  140
  • Reputation:   11
  • Joined:  09/28/14
  • Last Seen:  

Im having a problem duplicating PvP Warper please help

this is the script

//===== rAthena Script ======================================= 
//= Untitle Script
//===== By: ================================================== 
//= Zealock!
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena , eAthena
//===== Description: ========================================= 
//= PVP Warper
//============================================================

turbo_room,111,121,4	script	 PvP Warper	105,{


	mes "[ PVP Warper ]";
	mes "Would You Like to Enter the Room?";
	next;
	menu "Yes, I'm Hunger for Blood",PatayanNa,"No, Too Lazy to Kill",No;

	PatayanNa:
	mes "[ PvP Warper ]";
	mes "You Made the Right Choice!";
	next;
	mes "Let's Go!";
	warp "pvp_n_2-5",0,0;
	close;


	No:
	mes "[ PvP Warper ]";
	mes "Are you Scared?";
	next;
	mes "Come Back Again, if you already have the Guts!";
	close;

//WAITING ROOM updates every 2.5 second
OnInit:
    	while(1) {
	delwaitingroom;
	waitingroom "PvP Warper ["+getmapusers("pvp_n_2-5")+"]",0;
	sleep 2500; //2.5 seconds
	}
	end;
}

// Mapflags
pvp_n_2-5	mapflag	nowarp
pvp_n_2-5	mapflag	nowarpto
pvp_n_2-5	mapflag	pvp	on
pvp_n_2-5	mapflag	noteleport
pvp_n_2-5	mapflag	nosave	SavePoint
pvp_n_2-5	mapflag	nobranch
pvp_n_2-5	mapflag	noicewall
pvp_n_2-5	mapflag	noreturn
pvp_n_2-5	mapflag	nopenalty
pvp_n_2-5	mapflag	loadevent
pvp_n_2-5	mapflag	nomemo

im doing like this:

prontera,163,188,5	duplicate(PvP Warper)	PvP Warper#prt	811

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Any errors?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   4
  • Joined:  06/27/12
  • Last Seen:  

//===== rAthena Script ======================================= 
//= Untitle Script
//===== By: ================================================== 
//= Zealock!
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena , eAthena
//===== Description: ========================================= 
//= PVP Warper
//============================================================

-    script    PVP Warper::PVP Warper    -1,{


    mes "[ PVP Warper ]";
    mes "Would You Like to Enter the Room?";
    next;
    menu "Yes, I'm Hunger for Blood",PatayanNa,"No, Too Lazy to Kill",No;

    PatayanNa:
    mes "[ PvP Warper ]";
    mes "You Made the Right Choice!";
    next;
    mes "Let's Go!";
    warp "pvp_n_2-5",0,0;
    close;


    No:
    mes "[ PvP Warper ]";
    mes "Are you Scared?";
    next;
    mes "Come Back Again, if you already have the Guts!";
    close;

//WAITING ROOM updates every 2.5 second
OnInit:
        while(1) {
    delwaitingroom;
    waitingroom "PvP Warper ["+getmapusers("pvp_n_2-5")+"]",0;
    sleep 2500; //2.5 seconds
    }
    end;
}

turbo_room,111,121,4    duplicate(PVP Warper)    PvP Warper#turb    811
prontera,163,188,5    duplicate(PVP Warper)    PvP Warper#prt    811

// Mapflags
pvp_n_2-5    mapflag    nowarp
pvp_n_2-5    mapflag    nowarpto
pvp_n_2-5    mapflag    pvp    on
pvp_n_2-5    mapflag    noteleport
pvp_n_2-5    mapflag    nosave    SavePoint
pvp_n_2-5    mapflag    nobranch
pvp_n_2-5    mapflag    noicewall
pvp_n_2-5    mapflag    noreturn
pvp_n_2-5    mapflag    nopenalty
pvp_n_2-5    mapflag    loadevent
pvp_n_2-5    mapflag    nomemo

Try this.

Edited by blurryrox
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   23
  • Joined:  06/14/16
  • Last Seen:  

My guess is that you have another npc loaded with the name PvP Warper and maybe that's why it doesn't work

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

You should change OnInit.

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