Jump to content

pa tulong naman sir gumawa ako custom


Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

gumawa ako ng custom npc ko kaso nung niload ko walang lumalabas

pa fix nmn to mga paps 

 

eto

gusto ko mangyari ganito sana

Hello name, my name is crazyman.

msg
The purpose of this NPC is to
provide you the quest of the latest
headgears here in TestRO!
Would you like to brows on the new
headgears?
NEXT
Here are the quest items you can
aquire in this NPC.
NEXT
item
item
item
so you want item
headgear huh.
Here are the things you need for
it!
NEXT
quest items
NEXT
you meet requirement?
NEXT
yes!
nope. 
I am sorry but you simply are short
of the requirements!
please come again.

//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
    npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
    next;
    mes"The purpose of this NPC is to";
    mes"provide you the quest of the latest";
    mes"headgears here in TESTRO!";
    mes"Would you  like to brows on the new headgears?
    goto H_top;  

 H_top:
 menu "0-2",H_01,"Cancel",H_cancel;

//__________Hat List__________//

 H_01:
 menu

 "Alice Doll",I_alice,
 "Hockey Mask",I_hockey,
 "Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

 I_alice:
     next;
     mes "5x Marionett Dolls";
     mes "100x Alice's Apron";
     mes "5x Soft Apron";
     menu "Make",M_alice,"Return to Menu",H_top;

 I_hockey:
     next;
     mes "200x Suspicious Hat";
     mes "2x Blank Eyes";
     mes "10x Gold";
     mes "10x TCG Card";
     menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

 M_alice:
     if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
     goto M_insufficient;
     delitem 5141,5;
     delitem 7047,100;
     delitem 661,5;
     getitem 5137,1;
     close;

 M_hockey:
     if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
     goto M_insufficient;
     delitem 7567,200;
     delitem 5102,2;
     delitem 969,10;
     delitem 7227,10;
     getitem 5314,1;
     close;

//________not enough or not the correct items________

 M_insufficient:
     next;
     mes "CrazyMan I am sorry";
     mes "You don't have the required materials.";
     mes "Please come back when you do...";
     close;

 H_cancel:

 close;

 OnInit:

 waitingroom "Limited QUEST EVENT",0;

 end;
}

 

Edited by Boneash
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

3 hours ago, Boneash said:

gumawa ako ng custom npc ko kaso nung niload ko walang lumalabas

pa fix nmn to mga paps 

 

eto

gusto ko mangyari ganito sana

Hello name, my name is crazyman.

msg
The purpose of this NPC is to
provide you the quest of the latest
headgears here in TestRO!
Would you like to brows on the new
headgears?
NEXT
Here are the quest items you can
aquire in this NPC.
NEXT
item
item
item
so you want item
headgear huh.
Here are the things you need for
it!
NEXT
quest items
NEXT
you meet requirement?
NEXT
yes!
nope. 
I am sorry but you simply are short
of the requirements!
please come again.


//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
    npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
    next;
    mes"The purpose of this NPC is to";
    mes"provide you the quest of the latest";
    mes"headgears here in TESTRO!";
    mes"Would you  like to brows on the new headgears?
    goto H_top;  

 H_top:
 menu "0-2",H_01,"Cancel",H_cancel;

//__________Hat List__________//

 H_01:
 menu

 "Alice Doll",I_alice,
 "Hockey Mask",I_hockey,
 "Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

 I_alice:
     next;
     mes "5x Marionett Dolls";
     mes "100x Alice's Apron";
     mes "5x Soft Apron";
     menu "Make",M_alice,"Return to Menu",H_top;

 I_hockey:
     next;
     mes "200x Suspicious Hat";
     mes "2x Blank Eyes";
     mes "10x Gold";
     mes "10x TCG Card";
     menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

 M_alice:
     if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
     goto M_insufficient;
     delitem 5141,5;
     delitem 7047,100;
     delitem 661,5;
     getitem 5137,1;
     close;

 M_hockey:
     if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
     goto M_insufficient;
     delitem 7567,200;
     delitem 5102,2;
     delitem 969,10;
     delitem 7227,10;
     getitem 5314,1;
     close;

//________not enough or not the correct items________

 M_insufficient:
     next;
     mes "CrazyMan I am sorry";
     mes "You don't have the required materials.";
     mes "Please come back when you do...";
     close;

 H_cancel:

 close;

 OnInit:

 waitingroom "Limited QUEST EVENT",0;

 end;
}

 

We have a lot of quest NPC available in here like Emitry's and Euphy's dynamic quest shop. Which is easier to configure. Also please refrain from posting twice with the same concern. Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

HELLO SIR BAT WALANG LUMALABAS.  PAG LOADNPC KO?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

57 minutes ago, Boneash said:

HELLO SIR BAT WALANG LUMALABAS.  PAG LOADNPC KO?

aba hindi namin alam /omg  baka may mali ka na isang termination code kaya hnd nalabas

Edited by Diconfrost VaNz
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

This is your sample and i tried to make it a working npc


prontera,x,y,3	script	Crazyman	69,{
	mes "Hello name, my name is crazyman.";
	mes "The purpose of this NPC is to";
	mes "provide you the quest of the latest";
	mes "headgears here in TestRO!"
	mes "Would you like to brows on the new";
	mes "headgears?";
	next;
	mes "Here are the quest items you can";
	mes "aquire in this NPC.";
	next;
	switch(select("AFK Hat","Dark Randgris Helm","Fisherman's Hat")){
		case 1:
			mes "^00B200I need the following item:^000000";
			mes "5000 Cloud Crumb";
			mes "500 Green Herb";
			mes "250 Orange";
			mes "50 Condensed Red Potion";
			mes "1 TCG Card";
			next;
			if(countitem(7162) < 5000 || countitem(511) < 500 || countitem(582) < 250 || countitem(545) < 50 || countitem(7227) < 1  ) goto L_NOTENOUGH;

			delitem 7162,5000;
			delitem 511,500;
			delitem 582,250;
			delitem 545,50;
			delitem 7227,1;
			mes "Take this item for your hardworking for my quest";
			getitem 5474,1;
			next;
			mes "Come back Again !";
			close;
		case 2:
			mes "^00B200I need the following item:^000000";
			mes "50 Blade Lost in Darkness";
			mes "3000 Fragment of Darkness";
			mes "1000 Rune of Darkness";
			mes "1 TCG Card";
			next;
			if(countitem(7023) < 50 || countitem(7798) < 3000 || countitem(7511) < 1000 || countitem(7227) < 1  ) goto L_NOTENOUGH;

			delitem 7023,50;
			delitem 7798,3000;
			delitem 7511,1000;
			delitem 7227,1;
			mes "Take this item for your hardworking for my quest";
			getitem 5373,1;
			next;
			mes "Come back Again !";
			close;
		case 3:;
			mes "^00B200I need the following item:^000000";
			mes "2000 Sharp Scale";
			mes "250 Lemon";
			mes "10 Condensed Yellow Potion";
			mes "50 Lemon Dyestuffs";
			next;
			if(countitem(963) < 2000 || countitem(568) < 250 || countitem(546) < 10 || countitem(976) < 50  ) goto L_NOTENOUGH;

			delitem 963,2000;
			delitem 568,250;
			delitem 546,10;
			delitem 976,50;;
			mes "Take this item for your hardworking for my quest";
			getitem 5317,1;
			next;
			mes "Come back Again !";
			close;
}
L_NOTENOUGH:
	mes "Please Check your inventory";
	close;
}

I just made what you need . But not tested on live server .

1st . Next after you create your custom npc put it on npc/custom/yournpcfilehere.txt

2nd. Find the script_custom.conf and put this inside 

  • path:npc/custom/yournpcfilehere.txt

3rd . Restart your server or just simply type this on your admin account . @reloadscript
 

Note: You will get error with this because i put x,y on map . If you get error you should can fix it because it minimal error only

 

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
Reply to this topic...

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