Forum

> > CS2D > Scripts > [Tibia]Quest
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [Tibia]Quest

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt [Tibia]Quest

NeverLast
User Off Offline

Zitieren
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.

alt Re: [Tibia]Quest

Yates
Reviewer Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht