Streks
New Member
- Joined
- Feb 27, 2016
- Messages
- 62
- Reaction score
- 2
hi Otlanders,
creature script and quest.xml both are ok.
someone can tell me if this is possible ???
I should like to ask you to comment on this issue
thank you.
Code:
function onLook(cid, thing, position, lookDistance)
local quests = {9693, 12606}
local completed = {}
if isPlayer(thing.uid) then
for i = 1, #quests do
if getPlayerStorageValue(thing.uid, quests[I]) > 0 then
table.insert(completed, 1)
end
end
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")
doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")
end
return true
end
creature script and quest.xml both are ok.
someone can tell me if this is possible ???
I should like to ask you to comment on this issue
thank you.