SphereCommunity
Vendors and Brains - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Vendors and Brains (/Thread-Vendors-and-Brains)



Vendors and Brains - artexd - 09-08-2014 05:32 AM

I'am new here and have some questions...
How do I change brain_vendor? Or how I make my own brain definition?
What is inside the brain_vendor?
And one more:
How do I make a NPC to walk in a specified region?


RE: Vendors and Brains - Crusader - 09-08-2014 08:40 AM

I guess this is the wrong section, prolly this post will be moved in general help section... anyway:

directly from the spherewiki tutorial:

Code:
BRAIN_NONE        0     // Players: No brain. Convenient eh?  :)
BRAIN_ANIMAL    1     // Animals: wander, attack only if attacked
BRAIN_HUMAN        2     // Human: wander and speak
BRAIN_HEALER     3     // Healer: heal ghosts players in proximity
BRAIN_GUARD     4     // Guard: attack bad guys I see
BRAIN_BANKER     5     // Banker: you can access your bank/stash through him
BRAIN_VENDOR     6     // Vendor: buys and sells things
BRAIN_BEGGAR     7     // Beggar: follows players around asking irritating questions
BRAIN_ANIMAL_TRAINER 8     // Trainer: can stable animals
BRAIN_THIEF         9    // Thief: no effect right now
BRAIN_MONSTER     10     // Evil: attack all players we see
BRAIN_BERSERK     11     // Crazy: attack anything we see
BRAIN_UNDEAD     12     // Undead: same as evil, just used for identification
BRAIN_DRAGON     13     // Dragon: breathes fire

basically a vendor type brain is able to accept the command buy and sell, and the related dialog window.
Depending on what u want to do u might change it or not.

about ur problem, a GOTO <coord> should do the trick, but u might need to check ur ini for settings about npc lost teleport and teleport distance....u might also want to set their home and homedist to the point u want they reach, to help them go in that spot.

,-)


RE: Vendors and Brains - artexd - 09-08-2014 06:34 PM

Thanks a lot! And tip with the home, homedist is really helpful.
Sorry for writing in the wrong section Tongue
I just want to add that sphere is amazing!