Forum

> > CS2D > Scripts > TIBIA how to create a simple npc?
Forums overviewCS2D overview Scripts overviewLog in to reply

English TIBIA how to create a simple npc?

10 replies
To the start Previous 1 Next To the start

old Re: TIBIA how to create a simple npc?

Shawni
User Off Offline

Quote
@user -FQ:

Exemple :
1
2
[<NPC Number>] = {"<NPC Name>", pos={NPC Pos}, rot=180, 
trade={{<What you want him to sell}, }, image="<NPC Image>"},

You should also creat the npc action and function

Am suggesting to dont edit Tibia.

old s

-FQ
User Off Offline

Quote
i writed and dont showing npc. maybe need something with wrapper.lua do?

old Re: TIBIA how to create a simple npc?

Yates
Reviewer Off Offline

Quote
@user Shawni: You're wrong. Every NPC without a function will have the standard reply of "I'm busy now. Talk to me later." - Weiwen made sure you could do nearly anything in his script.

@user -FQ: In the NPC file where you create your NPC you must set their number as it's one giant table.

The numbers must not have whole ones between them, say you have 3 NPCs and you number them like so; 1, 2, 4. It would not work as the NPC with the number 4 will not be created.

A little example: >

old Re: TIBIA how to create a simple npc?

Jynxxx
User Off Offline

Quote
Here is a more detailed explanation of how to make an npc with tibia.
Example with more info >

old s

-FQ
User Off Offline

Quote
i coped this [20] = {"Random Guy", pos={320, 250}, rot=90, trade={{1, 1}, {2, 10}}, greet="What do you need?", bye="See you again!", image="npc2"},

and added in cs2d tibia and dont showes npc

old s

-FQ
User Off Offline

Quote
i created npc i join with "new game" in console "setposs 1 (poss) (poss) and no npc

old Re: TIBIA how to create a simple npc?

Yates
Reviewer Off Offline

Quote
@user -FQ: Copy your NPCs here, not the functions just the NPC settings. I know your problem but you don't seem to understand my post at all, and I explained it relatively easy, all the other people here are just telling you to do things that won't solve your problem.

@user omg: No. Not with Tibia NPCs.

@user EndDead: If you don't get how Tibia works please don't try to help him. It's just spam.

@user Jynxxx: He did not even ask for that. Although I can understand you only reading the title.
edited 1×, last 20.10.12 05:05:44 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview