Lesson 1.-Open Npc
1) You see to merchant and your npc believe
example:_
Merchant:
01Meet_Bichon 0 446 405 (Meat)_Origins 0 11
It is a number that is assigned to the npc, everyone has his number.
Name that is given to the text in Market_Def. 01Meet_Bichon-0.txt
I number of the map, it is the name that you have given him to the map in mapinfo and your folder map
coordinated where the npc is placed, always taken care of not placing it in one that does not exist
Name that appears in the center of the Npc, you can assign to him a name.
Always to put it in 0
The image for that he is going to look to the file of npc, the images go of 100 in 100 and every number that augmentes is another image that you select.
2) You see to merchant and your npc believe
Now when we have it placed, it is necessary to create the .txt.
There are 2 ways of creating it, then I will explain them further down.
We are going to choose for the easiest and clear for the beginners.
We will only use the Market_Def.
And we will create the text.
example:_
01Meet_Bichon-0
3) Here we come to the second lesson.
Lesson 2.-To make a npc work
1)We will always put [@main] to begin a script.
With the exception of something that he will explain then.
2)Basic orders of a script
· #SAY : you make to speak to a npc
example:_
[@main]
#say
Hello, Lomcn\
2.1) In the basic actions also there is an order for if the order is not fulfilled do another thing
· #ELSESAY : It does the opposite, a say has always to go earlier, to be able to do this.
example:_
[@main]
#IF
checklevel 3
#say
Hello, Lomcn\
#elsesay
Bye, Lomcn\
3)Here another new action is added, #if.
It serves to say to the npc, which if something is fulfilled or is not fulfilled should do a thing or the opposite.
example:_
[@main]
#IF
checklevel 30
#say
Hello, Lomcn\
#elsesay
Bye, Lomcn\
4) Now the last principal order comes, #act. It does that the npc does some action.
example:_
[@main]
#IF
checklevel 30
#ACT
giveexp %USERNAME 5000
break
Lesson 3.-To realize links of tasks in a npc.
1)A simple response and a different response
example:_
[@main]
#SAY
How is it called this forum?\\ {This creates a double space}
<Lomcn/@Lomcn>\
<Wemade/@wemade>\\
[@lomcn]
#say
Your response is correct\
[@wemade]
#say
Your response is incorrect\
To create a link, you will must put the text with this:
<Text/@TEXT>\ [@TEXT]
Lesson 4.-Basic actions that a npc can do.
1)To give and take objects
Take: this command uses for cojer something of the bag about whom he speaks with the npc
example:_
#ACT
Take sword 1
break
TakeW: this command uses for cojer something equipped of the one who speaks with the npc
example:_
#ACT
TakeW sword 1
break
Give: this command is used to give something to someone in his bag
example:_
#ACT
Give sword 1
break
GiveW: this command is used to give something to someone in his eqquipement
example:_
#ACT
GiveW sword 1
break
2) To give money or to remove money.
#ACT
Take gold 100
or
#ACT
Give gold 100
3) Other functions.
[[ In construction ]]
Soon:
- IF and his possibilities
- Flags
- Delaygoto
- Screams
/ORIGINS
1) You see to merchant and your npc believe
example:_
Merchant:
01Meet_Bichon 0 446 405 (Meat)_Origins 0 11
It is a number that is assigned to the npc, everyone has his number.
Name that is given to the text in Market_Def. 01Meet_Bichon-0.txt
I number of the map, it is the name that you have given him to the map in mapinfo and your folder map
coordinated where the npc is placed, always taken care of not placing it in one that does not exist
Name that appears in the center of the Npc, you can assign to him a name.
Always to put it in 0
The image for that he is going to look to the file of npc, the images go of 100 in 100 and every number that augmentes is another image that you select.
2) You see to merchant and your npc believe
Now when we have it placed, it is necessary to create the .txt.
There are 2 ways of creating it, then I will explain them further down.
We are going to choose for the easiest and clear for the beginners.
We will only use the Market_Def.
And we will create the text.
example:_
01Meet_Bichon-0
3) Here we come to the second lesson.
Lesson 2.-To make a npc work
1)We will always put [@main] to begin a script.
With the exception of something that he will explain then.
2)Basic orders of a script
· #SAY : you make to speak to a npc
example:_
[@main]
#say
Hello, Lomcn\
2.1) In the basic actions also there is an order for if the order is not fulfilled do another thing
· #ELSESAY : It does the opposite, a say has always to go earlier, to be able to do this.
example:_
[@main]
#IF
checklevel 3
#say
Hello, Lomcn\
#elsesay
Bye, Lomcn\
3)Here another new action is added, #if.
It serves to say to the npc, which if something is fulfilled or is not fulfilled should do a thing or the opposite.
example:_
[@main]
#IF
checklevel 30
#say
Hello, Lomcn\
#elsesay
Bye, Lomcn\
4) Now the last principal order comes, #act. It does that the npc does some action.
example:_
[@main]
#IF
checklevel 30
#ACT
giveexp %USERNAME 5000
break
Lesson 3.-To realize links of tasks in a npc.
1)A simple response and a different response
example:_
[@main]
#SAY
How is it called this forum?\\ {This creates a double space}
<Lomcn/@Lomcn>\
<Wemade/@wemade>\\
[@lomcn]
#say
Your response is correct\
[@wemade]
#say
Your response is incorrect\
To create a link, you will must put the text with this:
<Text/@TEXT>\ [@TEXT]
Lesson 4.-Basic actions that a npc can do.
1)To give and take objects
Take: this command uses for cojer something of the bag about whom he speaks with the npc
example:_
#ACT
Take sword 1
break
TakeW: this command uses for cojer something equipped of the one who speaks with the npc
example:_
#ACT
TakeW sword 1
break
Give: this command is used to give something to someone in his bag
example:_
#ACT
Give sword 1
break
GiveW: this command is used to give something to someone in his eqquipement
example:_
#ACT
GiveW sword 1
break
2) To give money or to remove money.
#ACT
Take gold 100
or
#ACT
Give gold 100
3) Other functions.
[[ In construction ]]
Soon:
- IF and his possibilities
- Flags
- Delaygoto
- Screams
/ORIGINS