Forum

> > CS2D > Scripts > Level npc + gfx(image) in tibia
Forums overviewCS2D overview Scripts overviewLog in to reply

English Level npc + gfx(image) in tibia

1 reply
To the start Previous 1 Next To the start

old Level npc + gfx(image) in tibia

Ryden
User Off Offline

Quote
Hello us users

Today i create this thread for told you a problem .
I can't continue my lua :S

Because i need to make a level Npc
Who let you pass just when you got the Level what he propost.
I mean:
1
[19] = {"PvP Guard", pos={6323, 5714}, rot=270, image="npc3"},

And

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
NPCs[19].func = function(npc, id, words, state)
	if words == "hi" then
		NPCspeak(npc, "Hey! Do you want to enter the PVP zone? You need to have at least $100 so you can drop them when you die!")
		PLAYERS[id].tmp.npcstate = {npc, 1}
	elseif contains(words, "bye") then
		NPCspeak(npc, "Goodbye!")
		PLAYERS[id].tmp.npcstate = nil
	elseif state == 1 then
		if contains(words, "yes") then
			if getlevel(id) >= 20 then
				parse("setpos " .. id .. " 6257 5843")
			else
				NPCspeak(npc, "Aww... You don't have level 20!")
			end
		elseif contains(words, "no") then
			NPCspeak(npc, "Okay! Come back when you want!")
		end
		PLAYERS[id].tmp.npcstate = nil
	end
end

Is these correct?
If there are some problems please talk me
Can you give me the right code for that?

And the Second problem is the Gfx

In some new tibias there are new items (with new images)

That what i want do
Can someone pro in tibia maker can told me how to create my own Gfx(image) for my tibia items.

No only for items, For monsters too

Thank you very much for readed all
And to help me with your good comments

-Thanks-
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview