Jump to content
  • 0

Duplicate NPC but not the ITEMS


Question

Posted

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

11 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted (edited)
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
  • 0
Posted

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
  • 0
Posted
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

  • 0
Posted
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!

  • 0
Posted
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.

  • 0
Posted

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

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