Gubailovo
Well-Known Member
- Joined
- Dec 19, 2013
- Messages
- 407
- Solutions
- 2
- Reaction score
- 62
Tell me please. how to choose only one mission?
thanks in advance
for example mission 48
and charge a fee for getting the quest? such as item ID 8504
Lua:
if (string.find(msg, '(%a*)квес(%a*)') or string.find(msg, '(%a*)задан(%a*)') or string.find(msg, '(%a*)мисси(%a*)')) and (cid == focus) then
if getCurrentMission(cid)==0 then
missionid = getMission(Level)
if missionid > 0 then
selfSay(getMissionText(missionid))
setCurrentMission(cid, missionid)
setPlayerComment(cid, getSelfName())
missiontype = getMissionType(missionid)
if (missiontype == MISSION_COURIER) and (getMissionWay(missionid) == MISSION_WAY_FROM) then
doPlayerAddItem(cid, getMissionItem(missionid), getMissionItemCount(missionid))
end
if (missiontype == MISSION_COMBAT) then
addMissionBlock(cid, missionid)
sendToMissionStartPos(cid, missionid)
end
else
selfSay('Извини, я не могу дать тебе задание.') --ошибка выбора миссии
end
else
selfSay('Извини, но у тебя уже есть задание. Выполни его и приходи.')
end
talk_start = os.clock()
end
thanks in advance
Post automatically merged:
for example mission 48
and charge a fee for getting the quest? such as item ID 8504
Last edited: