• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Request Mission,npc,script!

Zorenia

Hoster of Zorenia
Joined
Jan 21, 2009
Messages
598
Reaction score
64
Location
The Netherlands
Hello,

I already looking for 3 days!!
I scripting real Questes into my ankrahmun, but I can´t finda perfect script thats like..

You speak to a npc...you get a mission...you get the Quest item..and trade it for a reward at npc.. I saw a lot of threads and scripts but didn´t find the good one..

I hope anyone can help me! so I can finish my scripting work!!!

THANKS IN ADVANCE!!!,

Rick!

I use client: 8.4

TFS: 0.3b3-gui
 
okay tnx I go testing it XD

Well it´s working there is only one problem:

I say: HI
NPC:'Your mission is to bring me {Spike Sword}. Are you able to do that?
I say: Yes
Npc:I will be waiting for the {Spike Sword}!

I got a spike sword..

I say Spike sword again.. nothing happens

I say bye, hi, spike sword nothing happens.

than I said hi mission then the everything start over and he won't speak after I'll waiting for my spike sword :S

I hope you can look at it.. very tnx I'm so close to the working script haha :D
 
Last edited by a moderator:
Code:
	if msgcontains(msg, 'mission') then
		if storage == -1 then
			selfSay('Your mission is to bring me {ABCD}. Are you able to do that?', cid)
			talkState[talkUser] = 1
		elseif storage == 1 then
			selfSay('I'm still waiting your {ABCD}. Did you bring it to me?', cid)
			talkState[talkUser] = 2
		else
			selfSay('You already made this mission!', cid)
			talkState[talkUser] = 0
		end

This means that if the storage doesn't exists, the NPC will start the "quest". But, if it exists with the value 1, he will tell you he is waiting for it. But if the value is 2, he will tell you that you already did the quest.

So, in the script of the Spike Sword Quest, you must add "setPlayerStorageValue(cid,XXXX,1)", and this "XXXX" must be the same of the NPC script.

Do you understand?

PS.: Where are you from? Brazil, Poland...? I can help you in other languages if you want.
 
Back
Top