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:
fucking crap, I'm trying to learn scripting, but nothing never works for me, at least at first haha, 'll keep trying though