Page 1 of 1

RO Custom NPCs

Posted: January 11th, 2006, 11:50
by Dog Pants
I've been throwing together a few custom NPCs for BukkakeRO which will hopefully work this time :)

Rather than fannying around MSNing Grimmie all the time I might just post them in this thread (not sure the tabs will survive though).

If anyone else fancies a go I can stick a quick tutorial up though (the one Grimmie posted a link to is very good but not 100% comprehensive, and you have to register, and the author isn't a native English speaker).

Testing my tabs here:

Code: Select all

tab>	tab>	space> end.
Don't look to work. I will stick <tab> in place of an actual tab in the code then.

Posted: January 11th, 2006, 18:22
by Dog Pants
On reflection, now I'm home with my scripts, screw putting them all on here. Reading some of the scripts I'm planning on doing would probably give away too many clues. I will, however, post a few pointers in case anyone else feels creative.

I've made a template based on a test NPC I made. This one demonstrates how to create conversations with choices with NPCs:

Code: Select all

-------
Header:
-------

prontera.gat,261,219,4<TAB>script<TAB>Mrs Pantu<TAB>711,{
--------------------------------------------------------------------------------------
     ^	     ^   ^  ^  ^          ^      ^      ^   ^  ^
     a        a   a  b  f          f      c      f   d  e

a: Mapname and coordinates. Type /where in game to discover both for current location.
b: Facing direction. 1=NW 2=w 3=SW 4=S 5=SE 6=E 7=NE 8=N.
c: NPC name
d: NPC sprite. Go to http://kalen.s79.xrea.com/npc/npce.shtml for list.
e: Opens script
f: Tab (Don't type <TAB>)
--------------------------------------------------------------------------------------

---------------
Basic Dialogue:
---------------

//This piece of script has the NPC say something to the character over the course of two dialogue boxes.

	mes "[Mrs Pantu]";				//Name at the top of the dialogue box
	mes "Inu Pantu has lost his pet Poring.";	//Text within dialogue box
	next;						//Next button
	mes "[Mrs Pantu]";				//Name at the top of the dialogue box
	mes "He's very upset.";				//text within dialogue box
	close;						//Close button

}							//Closes script

-------------------
Dialogue with menu:
-------------------

//This piece of script adds menu options to the basic dialogue script.

	mes "[Mrs Pantu]";					
	mes "Inu Pantu has lost his pet Poring.";		
	next;
	mes "[Mrs Pantu]";
	mes "He's very upset.";
	next;
	mes "[Mrs Pantu]";					//Name at the top of the dialogue box
	mes "Have you seen it?";				//Text within dialogue box
	menu "Yes",yes,"No",no;					//Menu options: "Option 1 identifier",option 1 text,etc
	close;							//Close button

	Yes:							//Option 1 identifier
	mes "Mrs Pantu";					/name at top of dialogue box
	mes "Oh, please tell Mr Pantu where if you see him.";	/Text within dialogue box
	close;							/Close button

	No:							//Option 2 identifier
	mes "[Mrs Pantu]";					//Name at top of dialogue box
	mes "*Sigh* Poor Mr Pantu.";				//Text within dialogue box
	close;							//Close button

}								//Closes script


If that makes any sense.

Posted: January 11th, 2006, 18:26
by Grimmie
Talking about Mrs. Pantu.
I saw her today, right where she was meant to be.


How odd.

Posted: January 11th, 2006, 18:59
by Dog Pants
Hooray! Did you talk to her?

I shall go have a look :)

Posted: January 11th, 2006, 19:08
by FatherJack
Ok

Code: Select all

prontera.gat,261,219,4<TAB>script<TAB>Wobble<TAB>717,{
   mes "[Wobble]";
   mes "Someone's nicked my hula hoop";
   close;
}

Posted: January 11th, 2006, 20:14
by Dog Pants
Pffft.

Posted: January 11th, 2006, 22:24
by Dog Pants
Written a short (still took 3 hours), low-level NPC quest for an old bloke soon to appear in Pr0ntera near inner south gate. Compiled with no errors so hopefully once I've poked Grimmie into putting it in we'll have a nice little adventure to go on.

Posted: January 17th, 2006, 18:19
by Dog Pants
Dog Pants wrote:once I've poked Grimmie into putting it in
I can't believe nobody spotted that! Shows how much attention you pay to my posts.

Anyhoo; Old giffer quest should work now. I'm hoping it'll just take Grimmie to do the NPC update-a-majig.

Posted: January 17th, 2006, 18:37
by Grimmie
I'm a bit miffed :(
I did the script reload yesterday, and it doesnt seem to be there.

Posted: January 17th, 2006, 18:56
by Dog Pants
Gaaah. I'll check the script again again.

Posted: January 21st, 2006, 14:16
by Grimmie
Still not working. Deary me.
In other news, the scriptreload command does work, I tried it out when moving FatherJack's
NPC around. She's standing next to Mrs Pants, looking like she's miming a hula-hoop.

Image

Posted: January 21st, 2006, 20:59
by Dog Pants
Roight, the eAthena support forum saves the day. Grimmie, there should be a working copy in your inbox now :)

Posted: January 21st, 2006, 22:26
by Grimmie
ALAS! Looked like it should've worked. But it killed the server.

Code: Select all

[Status]: Loading NPCs... Working: [/]Missing '"' at file npc/custom/pantsnpc2.txt line 22

Posted: February 5th, 2006, 11:39
by Dog Pants
Three new NPCs added:

1: Squinting Man - By the south gate to Pr0ntera square
2: Chancellor - NW Pr0ntera square
3: Sanitation Inspector - Pr0ntera inner north gate

Image

Posted: February 5th, 2006, 12:43
by shot2bits
saw the squinting man yesterday, he seems to work, but i couldnt be bothered to do the mission