Varianek
New Member
- Joined
- Nov 4, 2020
- Messages
- 16
- Reaction score
- 2
Hi,
I would like to give you a configured quest log in client from my evo OTS (work TFS 0.4)
Script use storage 2253,1 and you can see this quest1
Done quest chest (use script questsystem search in otland or system.lua in yourtfs/data/action/quest/system.lua) have 50080,1 storage but you can use this to tasks from npc etc.
<<My quest1 need a scythe for cutting wheat >>
Quests.xml
Done Quest1 will show the inscription in Quest Log: Quest1(completed)
Next Step:
This item add player storage to view all quests in Quest Log
Quest log storage item:
data/action/unlockquestlog.lua
data/action.xml
Test GoD command: /storage yourname,2253, +1
Thank for rep.
I would like to give you a configured quest log in client from my evo OTS (work TFS 0.4)
Script use storage 2253,1 and you can see this quest1
Done quest chest (use script questsystem search in otland or system.lua in yourtfs/data/action/quest/system.lua) have 50080,1 storage but you can use this to tasks from npc etc.
<<My quest1 need a scythe for cutting wheat >>
Quests.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<quests>
<quest name="Quest1" startstorageid="2253" startstoragevalue="1">
<mission name="Info Quest:" storageid="50080" startvalue="0" endvalue="1">
<missionstate id="1" description="You need: scythe."/>
</mission>
</quest>
<quest name="Quest2" startstorageid="2253" startstoragevalue="1">
<mission name="Text2:" storageid="your quest/task storage" startvalue="0" endvalue="2"><!-- you can add more hints, just remember that the final storage should be changed to 2,3 etc. and in quest or task scripts it must also be 2,3 etc. -->
<missionstate id="1" description="text3."/>
<missionstate id="2" description="text4."/> <!-- you can add more hints, just remember that the final storage should be changed to 2,3 etc. and in quest or task scripts it must also be 2,3 etc. -->
</mission>
</quest>
</quests>
Done Quest1 will show the inscription in Quest Log: Quest1(completed)
Next Step:
This item add player storage to view all quests in Quest Log
Quest log storage item:
data/action/unlockquestlog.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 1 then
doCreatureSay(cid, "CONGRATULATIONS! Quest Log have been activated!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 2253, 1)
doSendMagicEffect(fromPosition, 53)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be level 1 or above to use this ticket.", TALKTYPE_ORANGE_1)
end
end
data/action.xml
XML:
<action itemid="10104" event="script" value="unlockquestlog.lua"/>
Test GoD command: /storage yourname,2253, +1
Thank for rep.