• 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!

(Request) Npc random travel!

Anteeoo

New Member
Joined
Aug 10, 2009
Messages
18
Reaction score
0
Hello!​
I need a npc that's take you on different postion, let me explain.

Like rl tibia you can say darashia when you go from venore and the npc says do you really wanna go there cuz its a ghost ship near!
and you say yes, and sometimes you come on the ghost ship.
Could anyone help me with this!

Player:hi
Npc:Greetings Young (playername)
Player: Darashia
Npc:Ohh you wanna go to darashia,,
Are you sure cuz its a ghost ship near there,
Player: Yes
And he came to the ghost ship instead of darashia. Can somebody help me with this script?? And its going to be random sometimes you come to darashia and sometimes you coming to ghost ship!
Help please!

Yours
Anteeoo
 
Code:
if msgcontains(msg, 'darashia') then
	npcHandler:Say('Ohh you wanna go to darashia. Are you sure cuz its a ghost ship near there.', cid)
	talkState[talkUser] = 1
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
	if (getPlayerMoney(cid) >= 150) then
		if math.random(1, 10) then
			doTeleportThing(cid, {x=,y=,z=})
		else
			doTeleportThing(cid, {x=,y=,z=})
		end
		npcHandler:Say('Here we go!', cid)
		doPlayerRemoveMoney(cid, 50)
		talkState[talkUser] = 0
	else
		npcHandler:Say('You do not have enough money.', cid)
		talkState[talkUser] = 0
	end
elseif (msgcontains(msg, 'no') and talkState[talkUser] == 1) then
	npcHandler:Say('Pff...', cid)
	talkState[talkUser] = 0
end
 
;d;d;d

Code:
if msgcontains(msg, 'darashia') then
	npcHandler:Say('Ohh you wanna go to darashia. Are you sure cuz its a ghost ship near there.', cid)
	talkState[talkUser] = 1
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
	if (getPlayerMoney(cid) >= 150) then
		if math.random(1, 10) then
			doTeleportThing(cid, {x=,y=,z=})
		else
			doTeleportThing(cid, {x=,y=,z=})
		end
		npcHandler:Say('Here we go!', cid)
		doPlayerRemoveMoney(cid, 50)
		talkState[talkUser] = 0
	else
		npcHandler:Say('You do not have enough money.', cid)
		talkState[talkUser] = 0
	end
elseif (msgcontains(msg, 'no') and talkState[talkUser] == 1) then
	npcHandler:Say('Pff...', cid)
	talkState[talkUser] = 0
end

Omg you are the best ;DD
 
Hey can you help me to make this npc to auto travel... it's like RASHID of RL TIBIA, his npc travel for all cities of RLTB, can you help me to make this???
 
Back
Top