Jump to content
  • 0

Duplicate NPC but not the ITEMS


NightJar

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

Hi could someone help me with this.
I want to make a new npc that will have a different quest.
But when I duplicate the script it duplicates the items and the quest too even though i already changed it.

I change the NPC name and the quest items and ingredients. But it duplicates as the same.

Here's the script of Euphy the I use. 

 

hat_maker.txt

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

1 hour ago, NightJar said:

Hi could someone help me with this.
I want to make a new npc that will have a different quest.
But when I duplicate the script it duplicates the items and the quest too even though i already changed it.

I change the NPC name and the quest items and ingredients. But it duplicates as the same.

Here's the script of Euphy the I use. 

 

hat_maker.txt

Try this old script, i'm still use this script

click

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

3 hours ago, hendra814 said:

Try this old script, i'm still use this script

click

Is this a quest NPC? Ok ill try this! 

Thanks! 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

6 hours ago, hendra814 said:

Try this old script, i'm still use this script

click

Hi i already tried. but its is not working on my server 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

4 hours ago, NightJar said:

Hi i already tried. but its is not working on my server 

are you already enable the duplicate npc?

here my example when i'm enable at prontera and izlude

with gm account i'm setting the quest (must in game)

screenrAthena030.thumb.jpg.85768920a22da9febc094e242fc44f4e.jpgscreenrAthena031.thumb.jpg.27f8244ab266908074bccb775f26bf91.jpg

the duplicate npc already there from line 1542 to 1576

Edited by hendra814
post ss
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Call the corresponding shop ID in your npcs

// Shop NPCs -- supplying no argument displays entire menu.
//	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,164,167,4	script	Quest Gears#h1	998,{ callfunc "qshop2",1; }	// call shop 1
prontera,164,168,4	script	Quest Gears#h2	998,{ callfunc "qshop2",2; }	// call shop 2
// -----------------------------------------------------------
//  Shop IDs -- to add shops, copy dummy data at bottom of file.
//	setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...};
// -----------------------------------------------------------

	setarray .Shops$[1],"Headgears","Midgears","Lowergears","Accessory";

// -----------------------------------------------------------
//  Quest items -- do NOT use a reward item more than once!
//	Add(<shop ID>,<reward ID>,<reward amount>,
//	    <Zeny cost>,<point cost>,
//	    <required item ID>,<required item amount>{,...});
// -----------------------------------------------------------

	Add(1,26037,1,0,0,1022,300,1068,300,7043,300,969,3000);			// shop 1
	Add(1,26036,1,0,0,952,300,1037,300,950,300,969,3000);
	Add(1,26053,1,0,0,951,300,922,300,954,300,969,3000);
	Add(1,26082,1,0,0,711,300,7006,300,951,300,969,3000);
	Add(1,26028,1,0,0,7110,300,7097,300,952,300,969,3000);
	Add(1,5374,1,0,0,1039,300,1044,300,7507,300,969,3000);
	Add(1,5138,1,0,0,1095,300,7567,300,921,300,969,3000);
	sleep 10;
	Add(2,26181,1,0,0,7293,3,7227,50,4140,50,969,1500);				// shop 2
	Add(2,26095,1,0,0,7291,3,7227,50,4140,50,969,1500);
	Add(2,26057,1,0,0,7292,3,7227,50,4140,50,969,1500);	

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

18 minutes ago, Capuche said:

Call the corresponding shop ID in your npcs


// Shop NPCs -- supplying no argument displays entire menu.
//	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,164,167,4	script	Quest Gears#h1	998,{ callfunc "qshop2",1; }	// call shop 1
prontera,164,168,4	script	Quest Gears#h2	998,{ callfunc "qshop2",2; }	// call shop 2

// -----------------------------------------------------------
//  Shop IDs -- to add shops, copy dummy data at bottom of file.
//	setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...};
// -----------------------------------------------------------

	setarray .Shops$[1],"Headgears","Midgears","Lowergears","Accessory";

// -----------------------------------------------------------
//  Quest items -- do NOT use a reward item more than once!
//	Add(<shop ID>,<reward ID>,<reward amount>,
//	    <Zeny cost>,<point cost>,
//	    <required item ID>,<required item amount>{,...});
// -----------------------------------------------------------

	Add(1,26037,1,0,0,1022,300,1068,300,7043,300,969,3000);			// shop 1
	Add(1,26036,1,0,0,952,300,1037,300,950,300,969,3000);
	Add(1,26053,1,0,0,951,300,922,300,954,300,969,3000);
	Add(1,26082,1,0,0,711,300,7006,300,951,300,969,3000);
	Add(1,26028,1,0,0,7110,300,7097,300,952,300,969,3000);
	Add(1,5374,1,0,0,1039,300,1044,300,7507,300,969,3000);
	Add(1,5138,1,0,0,1095,300,7567,300,921,300,969,3000);
	sleep 10;
	Add(2,26181,1,0,0,7293,3,7227,50,4140,50,969,1500);				// shop 2
	Add(2,26095,1,0,0,7291,3,7227,50,4140,50,969,1500);
	Add(2,26057,1,0,0,7292,3,7227,50,4140,50,969,1500);	

 

hi what i want is to make a new npc with a new quest sets but same npc file . sorry im confusing

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

5 hours ago, hendra814 said:

are you already enable the duplicate npc?

here my example when i'm enable at prontera and izlude

with gm account i'm setting the quest (must in game)

screenrAthena030.thumb.jpg.85768920a22da9febc094e242fc44f4e.jpgscreenrAthena031.thumb.jpg.27f8244ab266908074bccb775f26bf91.jpg

the duplicate npc already there from line 1542 to 1576

hi thanks for this. but i need a custom npc with quest items. like the script that i use. thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

1 hour ago, NightJar said:

hi what i want is to make a new npc with a new quest sets but same npc file . sorry im confusing

capuche has already show you the way to setup 2 different shop using the same npc script, without need to trouble to duplicate a new npc script.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

On 1/25/2018 at 1:10 AM, Emistry said:

capuche has already show you the way to setup 2 different shop using the same npc script, without need to trouble to duplicate a new npc script.

i already got it work. thanks @Capuche and @Emistry/no1

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

Hi sorry. My problem just keeps happenning. When i use this 1st npc. (questweapon.txt) and i duplicate another npc (questweapon2.txt) 
It just keeping from duplicating my items on (questweapon.txt). Nothing changes. Please help me :(/sob

questweapon.txt

questweapon2.txt

Link to comment
Share on other sites

  • 0

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

coz you using same shopdata in both scripts 

-    shop    qshop11    -1,909:-1
-    shop    qshop12    -1,909:-1
-    shop    qshop13    -1,909:-1
-    shop    qshop14    -1,909:-1
-    shop    qshop15    -1,909:-1

 

change this , they should not be same in both scripts

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