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

Help with another NPC '-'

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
LUA:
for i = 1, #rank do
	if msgcontains(msg, 'rank') then
				if getPlayerStorageValue(cid, 10003) == -1 then
					npcHandler:say("You are a beginner in our society.", cid)
				elseif getPlayerStorageValue(cid, 10003) == 0  then
					npcHandler:say("You are a huntsman in our society!", cid)
				elseif getPlayerStorageValue(cid, 10003) == 1 then
					npcHandler:say("You are a ranger in our society!", cid)
				elseif getPlayerStorageValue(cid, 10003) == 2 then
					npcHandler:say("You are a hunter in our society!", cid)
				elseif getPlayerStorageValue(cid, 10003) == 3 then
					npcHandler:say("You have achieved the highest rank in our society, elite hunter!", cid)
				end
			talkState[talkUser] = rank[i].talkstate
	end
end

The NPC should tell your rank based on your storage ID, but with the code above, I receive the following:

26684320.jpg


fucking crap, I'm trying to learn scripting, but nothing never works for me, at least at first haha, 'll keep trying though
 
Back
Top