Posts: 245
Threads: 47
Joined: Mar 2009
Reputation:
0
I want to add a npc that sells pizza in pizza near Tattoos and across street of PNS ! How to do that ?
Posts: 95
Threads: 6
Joined: Jan 2010
Reputation:
0
I don't think you can add NPC's selling pizza or hamburgers etc.
Of course you can add it standing at a place, and make a command to buy a pizza, with animations and blablabla
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
I'm not sure if ne NPC can Sell anything.
Posts: 245
Threads: 47
Joined: Mar 2009
Reputation:
0
No but i want to add that fat lady that sells pizza menu or that guy with the cicken hat !
Posts: 95
Threads: 6
Joined: Jan 2010
Reputation:
0
Use the Wiki to find out how to add the NPC's standing there.
After that, you need to create your own menu for the food, the easiest way is to use the wiki again, check the dialog tutorial.
To make it available to use in one place only, use PlayerToPoint or IsPlayerInRangeOfPoint.
Posts: 209
Threads: 19
Joined: Dec 2008
Easy.
Just create a simple NPC with kc's tutorial.
After that create a simple timer that checks the player's position in every 1 sec or whenever you want to.
Then use IsPlayerInRangeOfPoint function, if the player's close enough just simply show him a dialog or something.