[2.3] Problems with NPC's

Join Discord

SynteX

I own myself
Supporter
Veteran
Jul 18, 2009
356
44
60
World Of Mir
Hi all

I have some problems with NPC's , ( book store ) and (store npc) in Inn , I can't see them , they like ghost :(

pics:

up13419302791.bmp
[/url]


up13419302802.bmp
[/url]



I also want a tutorial how to create NPC and added it to SQL 2005 , and I want a tutorial how to write scripts , and how to add maps , caves :P.


anyone knows how to solve those problems please ?

Thanks :P

---------- Post added 12-07-2012 at 04:03 PM ---------- Previous post was 10-07-2012 at 03:31 PM ----------

up up
 
Last edited:

Breezer

Mr Mañana
Legendary
Jul 16, 2004
3,370
539
315
Lonnnnely ....I'm so lonnely , i have no bodyyyy , to call my ownnnnnn.

YOUR NPC.WIL is brokerd?
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,868
63
155
Norwich
Go in your SQL to the NPC's, Change the images to "1".
Do a reboot and if they don't re-appear, your probbably better off downloading a new un-touched client. (Easier for starting off)

There is plenty of guides around to make NPC's:

1) http://www.lomcn.co.uk/forum/showthread.php?75696-NPC-s-IF-and-ACT-And-Variables-names <-- all commands.
2) http://www.lomcn.co.uk/forum/showthread.php?76164-NPC-Scripter <---- NPC Script Maker
3) Just generally browse around the forums for script releases, its pretty easy to get the hang of it once you try.

EXAMPLE:
At the beggining of ANY NPC you must always start with

[@Main]

Now from there you can go down different routes depending on what you want your NPC to do.
e.g

[@Main]
#SAY
Hello Sir, would you like to buy some Jam?

or

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now your level 20 woud you like some Vodka Jelly?

Then you have to basically do checks on what you've asked for.
e.g.

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now your level 20 would you like some Vodka Jelly?
#ELSESAY
Sorry but you don't seem to be the correct level.\
Come back when you are!

the [ \ ] is used to drop down to the next line for obvious reasons.
You can also use [ \ \ ] with the spaces to drop down 2 lines.

To have pressable buttons you would use <hello/@hello> which would take you to the next page required.
then you would start a new header e.g

[@hello]
#SAY / #IF / #ELSESAY / #ELSEACT etc..

and to exit you would type <exit/@exit>.


The main things you will use are; [@Main] #IF #SAY #ELSESAY #ELSEACT

Heres a full script example

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now you are level 20 would you like to buy some Vodka Jam?\ \

Oh yes please, <Give me the jelly immediatley!/@yes>\
No thank you, i'm <Not quite old enough!/@exit>

[@yes]
#SAY
If you want my Jelly Sir, you will have to pay me £25,000!\ \

Okay I will <Pay this now/@yes1>\
No sorry, I <Don't have the money right now/@exit>

[@yes1]
#IF
CHECKGOLD 25000
#ACT
TAKEGOLD 25000
GIVE VodkaJelly 1

Kind Regards
Aaron

---------- Post Merged at 04:25 PM ---------- Previous Post was at 04:11 PM ----------

All NPC scripts must be created in Notepad.

Once the scripts are complete, you must name it like this:
QuestNPC-0 <the -0 is the map which it is on, this must be on the end for the NPC to appear.

Once your script is complete, add the NPC to your SQL Database, (Enter the exact map & coordinate position you want it), and also don't fortget to choose a NPC img number which is suited to you.

Enjoy
 
Last edited:
Upvote 0

SynteX

I own myself
Supporter
Veteran
Jul 18, 2009
356
44
60
World Of Mir
Go in your SQL to the NPC's, Change the images to "1".
Do a reboot and if they don't re-appear, your probbably better off downloading a new un-touched client. (Easier for starting off)

There is plenty of guides around to make NPC's:

1) http://www.lomcn.co.uk/forum/showthread.php?75696-NPC-s-IF-and-ACT-And-Variables-names <-- all commands.
2) http://www.lomcn.co.uk/forum/showthread.php?76164-NPC-Scripter <---- NPC Script Maker
3) Just generally browse around the forums for script releases, its pretty easy to get the hang of it once you try.

EXAMPLE:
At the beggining of ANY NPC you must always start with

[@Main]

Now from there you can go down different routes depending on what you want your NPC to do.
e.g

[@Main]
#SAY
Hello Sir, would you like to buy some Jam?

or

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now your level 20 woud you like some Vodka Jelly?

Then you have to basically do checks on what you've asked for.
e.g.

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now your level 20 would you like some Vodka Jelly?
#ELSESAY
Sorry but you don't seem to be the correct level.\
Come back when you are!

the [ \ ]is used to drop down to the next line for obvious reasons.
You can also use [ \ \ ] with the spaces to drop down 2 lines.

To have pressable buttons you would use <hello/@hello> which would take you to the next page required.
then you would start a new header e.g

[@hello]
#SAY / #IF / #ELSESAY / #ELSEACT etc..

and to exit you would type <exit/@exit>.


The main things you will use are; [@Main] #IF #SAY #ELSESAY #ELSEACT

Heres a full script example

[@Main]
#IF
CHECKLEVEL 20
#SAY
Hello Sir, now you are level 20 would you like to buy some Vodka Jam?\ \

Oh yes please, <Give me the jelly immediatley!/@yes>\
No thank you, i'm <Not quite old enough!/@exit>

[@yes]
#SAY
If you want my Jelly Sir, you will have to pay me £25,000!\ \

Okay I will <Pay this now/@yes1>\
No sorry, I <Don't have the money right now/@exit>

[@yes1]
#IF
CHECKGOLD 25000
#ACT
TAKEGOLD 25000
GIVE VodkaJelly 1

Kind Regards
Aaron

---------- Post Merged at 04:25 PM ---------- Previous Post was at 04:11 PM ----------

All NPC scripts must be created in Notepad.

Once the scripts are complete, you must name it like this:
QuestNPC-0 <the -0 is the map which it is on, this must be on the end for the NPC to appear.

Once your script is complete, add the NPC to your SQL Database, (Enter the exact map & coordinate position you want it), and also don't fortget to choose a NPC img number which is suited to you.

Enjoy

Thank you very much <333

but where can I find images in SQL for NPC's ? ;p

+ I want to know how to create a NPC and I want to make the npc like a teleport stone :P , thx neway Tom :)
 
Last edited:
Upvote 0