• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Quest log.

maciekxx

Banned User
Joined
Mar 6, 2011
Messages
267
Reaction score
3
Cze, mam taki sobie skrypcik inq:
Code:
local config = {
	bosses={---aid of portal, position where it sends, value it sets, text it shows
		[1001] = {pos={x=1541, y=2505, z=13, stackpos=1}, value=1, text="Wszedles do The Crystal Caves"},
		[1002] = {pos={x=1490, y=2568, z=13, stackpos=1}, value=2, text="Wszedles do The Blood Halls"},
		[1003] = {pos={x=1503, y=2582, z=10, stackpos=1}, value=3, text="Wszedles do The Vats"},
		[1004] = {pos={x=1510, y=2552, z=13, stackpos=1}, value=4, text="Wszedles do The Arcanum"},
		[1005] = {pos={x=1636, y=2652, z=13, stackpos=1}, value=5, text="Wszedles do The Hive"},
		[1006] = {pos={x=1587, y=2600, z=10, stackpos=1}, value=6, text="Wszedles do The Shadow Nexus"}
		},
	mainroom={---aid, position, lowest value that can use this portal, text
		[2001] = {pos={x=1541, y=2505, z=13, stackpos=1}, value=1, text="Wszedles do The Crystal Caves"},
		[2002] = {pos={x=1490, y=2568, z=13, stackpos=1}, value=2, text="Wszedles do The Blood Halls"},
		[2003] = {pos={x=1503, y=2582, z=10, stackpos=1}, value=3, text="Wszedles do The Vats"},
		[2004] = {pos={x=1510, y=2552, z=13, stackpos=1}, value=4, text="Wszedles do The Arcanum"},
		[2005] = {pos={x=1636, y=2652, z=13, stackpos=1}, value=5, text="Wszedles do The Hive"}	},
	portals={---aid, position, text
		[3000] = {pos={x=1556, y=2584, z=12}, text="Wyszedles z komnaty"},
		[3001] = {pos={x=1614, y=2491, z=10}, text="Wszedles do The Ward of Ushuriel"},
		[3002] = {pos={x=1444, y=2595, z=11}, text="Wszedles do The Undersea Kingdom"},
		[3003] = {pos={x=1577, y=2491, z=10}, text="Wszedles do The Ward of Zugurosh"},
		[3004] = {pos={x=1474, y=2544, z=10}, text="Wszedles do The Foundry"},
		[3005] = {pos={x=1589, y=2529, z=10}, text="Wszedles do The Ward of Madareth"},
		[3006] = {pos={x=1462, y=2620, z=10}, text="Wszedles do The Battlefield"},
		[3008] = {pos={x=1603, y=2466, z=11}, text="Wszedles do The Soul Wells"},
		[3007] = {pos={x=1561, y=2530, z=10}, text="Wszedles do The Ward of The Demon Twins"},
		[3009] = {pos={x=1541, y=2484, z=10}, text="Wszedles do The Ward of Annihilon"},
		[3010] = {pos={x=1517, y=2529, z=10}, text="Wszedles do The Ward of Hellgorak"}	},
	storage=56123,---storage used in boss and mainroom portals
	e={}	}----dunno whats this but have to be like this to make doCreatureSayWithDelay working, DON'T TOUCH}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if(config.bosses[item.actionid]) then
			local t= config.bosses[item.actionid]
			if getPlayerStorageValue(cid, config.storage)< t.value then
				setPlayerStorageValue(cid, config.storage, t.value)
			end
			doTeleportThing(cid, t.pos)
			doSendMagicEffect(getCreaturePosition(cid),10)
			doCreatureSay(cid,t.text,19,1, config.e)
		elseif(config.mainroom[item.actionid]) then
			local t= config.mainroom[item.actionid]
			if getPlayerStorageValue(cid, config.storage)>=t.value then
				doTeleportThing(cid, t.pos)
				doSendMagicEffect(getCreaturePosition(cid),10)
				doCreatureSay(cid,t.text,19,1,config.e)
			else
				doTeleportThing(cid, fromPosition)
				doSendMagicEffect(getCreaturePosition(cid),10)
				doCreatureSay(cid, 'Musisz pokonac odpowiedniego bossa aby przejsc przez ten portal.', TALKTYPE_ORANGE_1)
			end
		elseif(config.portals[item.actionid]) then
			local t= config.portals[item.actionid]
			doTeleportThing(cid, t.pos)
			doSendMagicEffect(getCreaturePosition(cid),10)
			doCreatureSay(cid,t.text,19,1,config.e)
		end
	end
end

Jeśli dobrze wyczytałem z tego skryptu to storage = 56123 a value to w przypadku 1 roomu 1001, jak to zapisać w quests.xml?
 
łap mój quest log i sobie ustaw jak chcesz

Code:
<quest name="The Inquistion" startstorageid="98076" startstoragevalue="0">
	    <mission name="Inquistion Rank" storageid="8223" startvalue="1" endvalue="7">
			<missionstate id="1" description="You are Interrogater."/>
			<missionstate id="2" description="You are Witch Hunter."/>
			<missionstate id="3" description="You are Slayer"/>
			<missionstate id="4" description="You are senior"/>
			<missionstate id="5" description="You are loyal"/>
			<missionstate id="6" description="You are hero"/>
			<missionstate id="7" description="You are Hight Inquisitor."/>
		</mission>
	    <mission name="Mission 1: Interrogation" storageid="98077" startvalue="0" endvalue="7">
			<missionstate id="1" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 0/5 NPCs"/>
			<missionstate id="2" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 1/5 NPCs"/>
			<missionstate id="3" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 2/5 NPCs"/>
			<missionstate id="4" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 3/5 NPCs"/>
			<missionstate id="5" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 4/5 NPCs"/>
			<missionstate id="6" description="Already have included 5/5 NPCs  Report to Hencirus 'mission'."/>
			<missionstate id="7" description="You have interrogated all Thaian city guards and reported back to Henricus."/>
		</mission>
		<mission name="Mission 2: Eclipse" storageid="98077" startvalue="8" endvalue="10">
			<missionstate id="0" description="You have to tell the carpet pilot in the Femor Hills the word 'eclipse' to travel to a hidden witches coven. There use the vial of holy water on the cauldron and steal the witches grimoire."/>
			<missionstate id="1" description="You poured holy water into the witches'cauldron. Don't forget to steal their Grimoire and then escape!"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
        <mission name="Mission 3: Vampire Hunt" storageid="98077" startvalue="11" endvalue="15">
			<missionstate id="0" description="Go find the old dwarf and vampire hunter Storkus in his cave outside of Kazordoon and ask him about your next mission."/>
			<missionstate id="1" description="Go and kill The Count"/>
			<missionstate id="2" description="You resp The Count, kill them, take ring and go to Storkus"/>
			<missionstate id="3" description="Go to Henricus and report the mission"/>
			<missionstate id="4" description="You reported Henricus about your mission."/>
		</mission>
		<mission name="Mission 4: The Haunted Ruin" storageid="98077" startvalue="16" endvalue="18">
			<missionstate id="0" description="Went to Liberty Bay and bless the haunted ruins"/>
			<missionstate id="1" description="You have blessed the house, go to Henricus and report the mission"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
	    <mission name="Mission 5: Essential Gathering" storageid="98077" startvalue="19" endvalue="20">
			<missionstate id="0" description="Collect 20 demonic essence and take it to Henry, and he in return will give you a demon hunter outfit."/>
			<missionstate id="1" description="You have brought enough demonic essences to Henricus."/>
		</mission>
		<mission name="Mission 6: The Demon Ungreez" storageid="98077" startvalue="21" endvalue="23">
			<missionstate id="0" description="Go to Edron Hero Cave, find Ungreey and kill him.."/>
			<missionstate id="1" description="You successfully killed Ungreez, now you can go to Henricus and the reward you in addition to demon hunter outfit."/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
		<mission name="Mission 7: The Shadow Nexus" storageid="98077" startvalue="24" endvalue="32">
			<missionstate id="0" description="Go to Hero Cave on the Edron, go down, and search gates to Demon Forge."/>
			<missionstate id="1" description="The Dark Path"/>
			<missionstate id="2" description="The Crystal Caves"/>
			<missionstate id="3" description="The Blood Halls"/>
			<missionstate id="4" description="The Vats"/>
			<missionstate id="5" description="The Arcanum"/>
			<missionstate id="6" description="The Hive"/>
			<missionstate id="7" description="You have destroyed The Shadow Nexus, report now it to Henricus"/>
			<missionstate id="8" description="You fulfilled all missions of the Inquistion."/>	
		</mission>
		
		
	</quest>
 
łap mój quest log i sobie ustaw jak chcesz

Code:
<quest name="The Inquistion" startstorageid="98076" startstoragevalue="0">
	    <mission name="Inquistion Rank" storageid="8223" startvalue="1" endvalue="7">
			<missionstate id="1" description="You are Interrogater."/>
			<missionstate id="2" description="You are Witch Hunter."/>
			<missionstate id="3" description="You are Slayer"/>
			<missionstate id="4" description="You are senior"/>
			<missionstate id="5" description="You are loyal"/>
			<missionstate id="6" description="You are hero"/>
			<missionstate id="7" description="You are Hight Inquisitor."/>
		</mission>
	    <mission name="Mission 1: Interrogation" storageid="98077" startvalue="0" endvalue="7">
			<missionstate id="1" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 0/5 NPCs"/>
			<missionstate id="2" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 1/5 NPCs"/>
			<missionstate id="3" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 2/5 NPCs"/>
			<missionstate id="4" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 3/5 NPCs"/>
			<missionstate id="5" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 4/5 NPCs"/>
			<missionstate id="6" description="Already have included 5/5 NPCs  Report to Hencirus 'mission'."/>
			<missionstate id="7" description="You have interrogated all Thaian city guards and reported back to Henricus."/>
		</mission>
		<mission name="Mission 2: Eclipse" storageid="98077" startvalue="8" endvalue="10">
			<missionstate id="0" description="You have to tell the carpet pilot in the Femor Hills the word 'eclipse' to travel to a hidden witches coven. There use the vial of holy water on the cauldron and steal the witches grimoire."/>
			<missionstate id="1" description="You poured holy water into the witches'cauldron. Don't forget to steal their Grimoire and then escape!"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
        <mission name="Mission 3: Vampire Hunt" storageid="98077" startvalue="11" endvalue="15">
			<missionstate id="0" description="Go find the old dwarf and vampire hunter Storkus in his cave outside of Kazordoon and ask him about your next mission."/>
			<missionstate id="1" description="Go and kill The Count"/>
			<missionstate id="2" description="You resp The Count, kill them, take ring and go to Storkus"/>
			<missionstate id="3" description="Go to Henricus and report the mission"/>
			<missionstate id="4" description="You reported Henricus about your mission."/>
		</mission>
		<mission name="Mission 4: The Haunted Ruin" storageid="98077" startvalue="16" endvalue="18">
			<missionstate id="0" description="Went to Liberty Bay and bless the haunted ruins"/>
			<missionstate id="1" description="You have blessed the house, go to Henricus and report the mission"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
	    <mission name="Mission 5: Essential Gathering" storageid="98077" startvalue="19" endvalue="20">
			<missionstate id="0" description="Collect 20 demonic essence and take it to Henry, and he in return will give you a demon hunter outfit."/>
			<missionstate id="1" description="You have brought enough demonic essences to Henricus."/>
		</mission>
		<mission name="Mission 6: The Demon Ungreez" storageid="98077" startvalue="21" endvalue="23">
			<missionstate id="0" description="Go to Edron Hero Cave, find Ungreey and kill him.."/>
			<missionstate id="1" description="You successfully killed Ungreez, now you can go to Henricus and the reward you in addition to demon hunter outfit."/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
		<mission name="Mission 7: The Shadow Nexus" storageid="98077" startvalue="24" endvalue="32">
			<missionstate id="0" description="Go to Hero Cave on the Edron, go down, and search gates to Demon Forge."/>
			<missionstate id="1" description="The Dark Path"/>
			<missionstate id="2" description="The Crystal Caves"/>
			<missionstate id="3" description="The Blood Halls"/>
			<missionstate id="4" description="The Vats"/>
			<missionstate id="5" description="The Arcanum"/>
			<missionstate id="6" description="The Hive"/>
			<missionstate id="7" description="You have destroyed The Shadow Nexus, report now it to Henricus"/>
			<missionstate id="8" description="You fulfilled all missions of the Inquistion."/>	
		</mission>
		
		
	</quest>

Poprosze o reupload twojego quest logu.
 
Poprosze o reupload twojego quest logu.
Proszę:
Code:
<quest name="The Inquistion" startstorageid="98076" startstoragevalue="0">
	    <mission name="Inquistion Rank" storageid="8223" startvalue="1" endvalue="7">
			<missionstate id="1" description="You are Interrogater."/>
			<missionstate id="2" description="You are Witch Hunter."/>
			<missionstate id="3" description="You are Slayer"/>
			<missionstate id="4" description="You are senior"/>
			<missionstate id="5" description="You are loyal"/>
			<missionstate id="6" description="You are hero"/>
			<missionstate id="7" description="You are Hight Inquisitor."/>
		</mission>
	    <mission name="Mission 1: Interrogation" storageid="98077" startvalue="0" endvalue="7">
			<missionstate id="1" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 0/5 NPCs"/>
			<missionstate id="2" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 1/5 NPCs"/>
			<missionstate id="3" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 2/5 NPCs"/>
			<missionstate id="4" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 3/5 NPCs"/>
			<missionstate id="5" description="You have to interrogate the Thaian guards Grof, Walter, Miles, Kulag and Tim following the instructions of the Inquisitors Handbook. Already have included 4/5 NPCs"/>
			<missionstate id="6" description="Already have included 5/5 NPCs  Report to Hencirus 'mission'."/>
			<missionstate id="7" description="You have interrogated all Thaian city guards and reported back to Henricus."/>
		</mission>
		<mission name="Mission 2: Eclipse" storageid="98077" startvalue="8" endvalue="10">
			<missionstate id="0" description="You have to tell the carpet pilot in the Femor Hills the word 'eclipse' to travel to a hidden witches coven. There use the vial of holy water on the cauldron and steal the witches grimoire."/>
			<missionstate id="1" description="You poured holy water into the witches'cauldron. Don't forget to steal their Grimoire and then escape!"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
        <mission name="Mission 3: Vampire Hunt" storageid="98077" startvalue="11" endvalue="15">
			<missionstate id="0" description="Go find the old dwarf and vampire hunter Storkus in his cave outside of Kazordoon and ask him about your next mission."/>
			<missionstate id="1" description="Go and kill The Count"/>
			<missionstate id="2" description="You resp The Count, kill them, take ring and go to Storkus"/>
			<missionstate id="3" description="Go to Henricus and report the mission"/>
			<missionstate id="4" description="You reported Henricus about your mission."/>
		</mission>
		<mission name="Mission 4: The Haunted Ruin" storageid="98077" startvalue="16" endvalue="18">
			<missionstate id="0" description="Went to Liberty Bay and bless the haunted ruins"/>
			<missionstate id="1" description="You have blessed the house, go to Henricus and report the mission"/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
	    <mission name="Mission 5: Essential Gathering" storageid="98077" startvalue="19" endvalue="20">
			<missionstate id="0" description="Collect 20 demonic essence and take it to Henry, and he in return will give you a demon hunter outfit."/>
			<missionstate id="1" description="You have brought enough demonic essences to Henricus."/>
		</mission>
		<mission name="Mission 6: The Demon Ungreez" storageid="98077" startvalue="21" endvalue="23">
			<missionstate id="0" description="Go to Edron Hero Cave, find Ungreey and kill him.."/>
			<missionstate id="1" description="You successfully killed Ungreez, now you can go to Henricus and the reward you in addition to demon hunter outfit."/>
			<missionstate id="2" description="You reported your successful mission to Henricus."/>
		</mission>
		<mission name="Mission 7: The Shadow Nexus" storageid="98077" startvalue="24" endvalue="32">
			<missionstate id="0" description="Go to Hero Cave on the Edron, go down, and search gates to Demon Forge."/>
			<missionstate id="1" description="The Dark Path"/>
			<missionstate id="2" description="The Crystal Caves"/>
			<missionstate id="3" description="The Blood Halls"/>
			<missionstate id="4" description="The Vats"/>
			<missionstate id="5" description="The Arcanum"/>
			<missionstate id="6" description="The Hive"/>
			<missionstate id="7" description="You have destroyed The Shadow Nexus, report now it to Henricus"/>
			<missionstate id="8" description="You fulfilled all missions of the Inquistion."/>	
		</mission>
		
		
	</quest>
 
Back
Top