npcsay
add new npc in datebase ( K_NPC ). When creating npc,you must dont remember ByType. ByType only number 50 to 255.
首先在表K_NPC填加一个新的NPC,而这个NPC必须是50到255这几个数字
creating npcsay folder in ebenezer folder.create new new.txt document in npcsay folder and then add this code:
而NPC的对话的内容就是在在ebenezer目录下再新建一个下新建npcsay目录
最后就是在 npcsay目录下建 文本文件(TXT)写对话内容了 下面是一个列子!
Code:(举列)
[@main]
#IF
checkpkpoint 2
#SAY
welcome\ \
<Go up/@move1>\\
<Exit/@exit>\
[@move1]
#IF
checkgold 100
#ACT
take gold 100
mapmove 330 444 108
break
#ELSESAY
cannot teleported\
dont have coin\ \
<EXIT/@exit>\(new.txt) chance name is npcsay_( your add ByType code ) .spt
//这里就是和你建的那个文本文件联系的
sample : npcsay_100.spt
[mapmove] [330] [333] [100]
[330] = Zone code
[333] = coordinate X
[100] = coordinate Y
sample map code
Code:
21 : Moradon
1 : Karus
2 : Human
300 : Delos Dezert
310 : bifrost
320 : Normal Abyss
330 : Hell Abyss
202 : Coloni Zone
201 : Andream
when add npc ActType warning.
ActType if you make "1" atack your self.
if you add "117" to make business
sample "117" sunders, warp gate |