Forum

> > CS2D > Scripts > [Tibia]Quest
Forums overviewCS2D overview Scripts overviewLog in to reply

English [Tibia]Quest

1 reply
To the start Previous 1 Next To the start

old [Tibia]Quest

NeverLast
User Off Offline

Quote
Hello,
I need help to make a Quest-function in rpg/tibia
The quest function can:
Speak with a npc and accept a quest.
You must give him items to complete the quest.
If the quest finish you get items.

old Re: [Tibia]Quest

Yates
Reviewer Off Offline

Quote
I bet you already know how talking works. Just add something to check with which saves for each player, for example:

1
2
3
4
-- Find the join function, it's in hooks.lua, then add this after the PLAYERS table:
	if not PLAYERS[id].quest1 then
		PLAYERS[id].quest1 = 0 -- This will now save in the PLAYSERS[usgn] table.
	end

Then use that as a check system when talking with an NPC.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview