RO Custom NPCs

Talk on any game/console that doesn't have its own forum, including browser-based games

Moderator: Forum Moderators

Post Reply
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

RO Custom NPCs

Post 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.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post 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.
Grimmie
Master of Soviet Propaganda
Master of Soviet Propaganda
Posts: 7672
Joined: February 5th, 2005, 19:00
Location: Birming-humm, England
Contact:

Post by Grimmie »

Talking about Mrs. Pantu.
I saw her today, right where she was meant to be.


How odd.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post by Dog Pants »

Hooray! Did you talk to her?

I shall go have a look :)
FatherJack
Site Owner
Site Owner
Posts: 9597
Joined: May 16th, 2005, 15:31
Location: Coventry, UK
Contact:

Post 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;
}
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post by Dog Pants »

Pffft.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post 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.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post 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.
Grimmie
Master of Soviet Propaganda
Master of Soviet Propaganda
Posts: 7672
Joined: February 5th, 2005, 19:00
Location: Birming-humm, England
Contact:

Post by Grimmie »

I'm a bit miffed :(
I did the script reload yesterday, and it doesnt seem to be there.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post by Dog Pants »

Gaaah. I'll check the script again again.
Grimmie
Master of Soviet Propaganda
Master of Soviet Propaganda
Posts: 7672
Joined: February 5th, 2005, 19:00
Location: Birming-humm, England
Contact:

Post 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
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post by Dog Pants »

Roight, the eAthena support forum saves the day. Grimmie, there should be a working copy in your inbox now :)
Grimmie
Master of Soviet Propaganda
Master of Soviet Propaganda
Posts: 7672
Joined: February 5th, 2005, 19:00
Location: Birming-humm, England
Contact:

Post 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
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post 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
shot2bits
Zombie
Zombie
Posts: 2082
Joined: February 7th, 2005, 17:40
Location: england

Post by shot2bits »

saw the squinting man yesterday, he seems to work, but i couldnt be bothered to do the mission
Post Reply