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

NPC-mount for x item

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
40
Location
localhost
I need help. I need NPC who give me mount for x item like for 100 demon dusts. Anyone can help?
 
LUA:
if msgcontains(msg, 'super extra mount') then
	npcHandler:say('Give me mammoth {strings}.', cid)
	Topic[cid] = 1
elseif msgcontains(msg, 'string') and Topic[cid] == 1 then
	if getPlayerItemCount(cid,7464) >= 1 then
		if doPlayerRemoveItem(cid,5879,1) then
			npcHandler:say('Now you can use boar mount.', cid)
			doPlayerAddMount(cid, 10)
		end
	else
		npcHandler:say('You dont have mammoth strings.', cid)
	end
Was it hard to write?
 
Last edited:
LUA:
if msgcontains(msg, 'super extra mount') then
	npcHandler:say('Give me mammoth {strings}.', cid)
	Topic[cid] = 1
elseif msgcontains(msg, 'string') and Topic[cid] == 1 then
	if getPlayerItemCount(cid,7464) >= 1 then
		if doPlayerRemoveItem(cid,5879,1) then
			npcHandler:say('Now you can use boar mount.', cid)
			doPlayerAddMount(cid, 10)
		end
	else
		npcHandler:say('You dont have mammoth strings.', cid)
	end
Was it hard to write?
nice... doesnt work -.-

Using Otserv 8.70 (0.3.6) r.6052
 
Last edited:
Back
Top