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

Quest: Make NPC that follow you to X,Y,Z

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
I have to request you to make for me or for all of otland members an npc.

Something like this:
If i say to NPC : "rescue"
Than he summons to me an NPC and i must bring him to X,Y,Z place.
If i bring him to X,Y,Z summon NPC dissapear and i got reward.
All monsters what see the summon NPC (the NPC what follow me to X,Y,Z), forces the target at this NPC, you must defend NPC before entering in X,Y,Z from monsters.
If NPC being killed you lost storage and you can start quest again.

@ It was nicely if anyone do something bonuses like this:
- the summon NPC (lost one) can moving stairs (up/down);
- Another player cannot attack this npc;
 
There is function in npc.lua maybe it will works but you have to create it "onthink":

-- move to a creature
Code:
function moveToCreature(id)
	if(isCreature(id) == FALSE) then
		debugPrint('moveToCreature(): creature not found.')
		return LUA_ERROR
	end

	local pos = getCreaturePosition(id)
	selfMoveTo(pos.x, pos.y, pos.z)
	return LUA_NO_ERROR
end
 
Back
Top