myalitth
New Member
- Joined
- Jan 13, 2013
- Messages
- 69
- Reaction score
- 3
Questsytem action id 2000 with UID.
When player do the quest do not shows the name of the prize.
Only a "."
When player do the quest do not shows the name of the prize.
Only a "."
Lua:
local ret = getItemDescriptions(reward.uid)
result = "You have found " .. ret.article .. " " .. ret.name
if(doPlayerAddItemEx(cid, reward.uid, false) == RETURNVALUE_NOERROR)then
result = result .. "."
doCreatureSetStorage(cid, storage, 1)
else
result = (getPlayerFreeCap(cid) < getItemWeight(reward.uid)) and result .. ". Weighing " .. getItemWeight(reward.uid) .. " oz it is too heavy." or result .. ", but you have no room to take it."
end
if(questsExperience[storage] ~= nil) then
doPlayerAddExpEx(cid, questsExperience[storage])
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, result)
return true
end