Action Fully Working Inquisition Quest For 0.2.5

Erikas Kontenis

Well-Known Member
Joined
Jul 3, 2009
Messages
1,443
Best answers
0
Reaction score
76
Location
Lithuania
Hello Peapols... How us see i realy like to script for 0.2.5 i think this is a most stable server and i will try to wake Up this distro becouse almost everyone is using only 0.3.5... thoose scripts i made realy realy hard :D i sreached it anywere but nah nothing :D so open the function list for 0.2.5 and start writing :D and the resultats is pretty good :D after 2 Days~ Work i made inquisition like real tibia for 0.2.5 !

P.s. Im Newbie...


Lets Start !

Action Xml:

Code:
<!-- INQ -->
	<action uniqueid="1307" script="inq\inqchest.lua" />
	<action uniqueid="1301" script="inq\inqchest.lua" />
	<action uniqueid="1302" script="inq\inqchest.lua" />
	<action uniqueid="1303" script="inq\inqchest.lua" />
	<action uniqueid="1304" script="inq\inqchest.lua" />
	<action uniqueid="1305" script="inq\inqchest.lua" />
	<action uniqueid="1306" script="inq\inqchest.lua" />
	<action uniqueid="1308" script="inq\inqchest.lua" />
	<action uniqueid="1300" script="inq\inqchest.lua" />
	<action uniqueid="12613" script="inq\ushurielwall.lua" />
	<action uniqueid="12614" script="inq\zuguroshwall.lua" />
	<action uniqueid="12615" script="inq\Madarethwall.lua" />
	<action uniqueid="12616" script="inq\Latrivanwall.lua" />
	<action uniqueid="12617" script="inq\Annihilonwall.lua" />
	<action uniqueid="12618" script="inq\Hellgorakwall.lua" />
Ushurielwall.lua

Lua:
-- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12613  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1097, y=1216, z=12, stackpos=1} 
	local wallpos = {x=1097, y=1213, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1026 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1097, y=1213, z=12} 
		doCreateItem(1026,1,wallnewpos)
end
Zugoroshwall.lua

Lua:
-- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12614  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1149, y=1215, z=12, stackpos=1} 
	local wallpos = {x=1149, y=1212, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1026 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1149, y=1212, z=12} 
		doCreateItem(1026,1,wallnewpos)
end
Madarethwall.lua

Lua:
-- Scripted By Apsivaflines



function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12615  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1110, y=1240, z=12, stackpos=1} 
	local wallpos = {x=1113, y=1240, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1025 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1113, y=1240, z=12} 
		doCreateItem(1025,1,wallnewpos)
end

Latrivanwall.lua

Lua:
-- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12616  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1145, y=1244, z=12, stackpos=1} 
	local wallpos = {x=1148, y=1244, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1025 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1148, y=1244, z=12} 
		doCreateItem(1025,1,wallnewpos)
end

Annihilonwall.lua

Lua:
-- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12617  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1185, y=1198, z=12, stackpos=1} 
	local wallpos = {x=1188, y=1198, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1025 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1188, y=1198, z=12} 
		doCreateItem(1025,1,wallnewpos)
end

Hellgorakwall.lua

Lua:
-- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12618  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1190, y=1240, z=12, stackpos=1} 
	local wallpos = {x=1193, y=1240, z=12, stackpos=1}
 
	local playername = getPlayerName(cid)
	local getitem = getThingfromPos(itempos)
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1025 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer5, 2*60*1000)
	elseif item.uid == switchUniqueID and item.itemid == switch2ID then
			doTransformItem(item.uid,item.itemid-1)
	else
			doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=1193, y=1240, z=12} 
		doCreateItem(1025,1,wallnewpos)
end

INQchest.lua


Lua:
-- Inquisition chests

function onUse(cid, item, frompos, item2, topos)

       if item.uid == 1307 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Emerald Sword.")
               doPlayerAddItem(cid,8930,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1301 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Spellbook of dark Mysteries.")
               doPlayerAddItem(cid,8918,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1304 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Master Archer's Armor.")
               doPlayerAddItem(cid,8888,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1300 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Robe of the Underworld")
               doPlayerAddItem(cid,8890,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1302 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Fireborn Giant Armor.")
               doPlayerAddItem(cid,8881,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1306 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Obsidian Truncheon.")
               doPlayerAddItem(cid,8928,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1303 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Royal Crossbow.")
               doPlayerAddItem(cid,8851,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1308 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Warsinger Bow.")
               doPlayerAddItem(cid,8854,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 1305 then
           queststatus = getPlayerStorageValue(cid,8560)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Hellforged axe")
               doPlayerAddItem(cid,8924,1)
               setPlayerStorageValue(cid,8560,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end

    else
        return 0
       end

       return 1
end

I hope us like it :) and mayby rep++ my job :)
 

Piotrek1447

Member
Joined
Jun 1, 2007
Messages
658
Best answers
0
Reaction score
16
Location
Rzeszów, Poland
Hihihih, i optimized walls script.
Lua:
local uniques =
{
	[12613] = 
	{
		itemX =
		{
			5527, 
			{x = 864, y = 683, z = 7}
		}, 
		wallX =
		{
			1032, 
			{x = 864, y = 683, z = 7}, 
			{x = 450, y = 371, z = 7}
		}
	}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		doTransformItem(item.uid, 1945)
		return true
	end
	
	local unique = uniques[item.uid]
	if(not unique) then
		return true
	end
	
	local itemX, wallX = getTileItemById(unique.itemX[2], unique.itemX[1]).uid, getTileItemById(unique.wallX[2], unique.wallX[1]).uid
	if(not itemX and not wallX) then
		doPlayerSendCancel(cid, "You need to place the corpse of the slain demon lord.")
		return true
	end

	doSendMagicEffect(unique.itemX[2], CONST_ME_TELEPORT)
	doSendMagicEffect(unique.itemX[2], CONST_ME_TELEPORT)
	doRemoveItem(itemX, 1)
	doRemoveItem(wallX, 1)
	
	doTransformItem(item.uid, 1946)
	
	addEvent(doCreateItem, 2 * 60 * 1000, unique.wallX[1], 1, unique.wallX[3])
	return true
end
 

frankfarmer

who'r ninja now
Joined
Aug 5, 2008
Messages
1,472
Best answers
0
Reaction score
30
Location
swe?
Start using 0.3.5+

What if people decided to make the radio better when the TV was released?
 
OP
Erikas Kontenis

Erikas Kontenis

Well-Known Member
Joined
Jul 3, 2009
Messages
1,443
Best answers
0
Reaction score
76
Location
Lithuania
Why i need tv with much functions and live with 2 crashes per day? then i can have radio with 0 crashes and only little lesser functions then tv ? So ? mine choose is the chepper but better and stabler...
 

frankfarmer

who'r ninja now
Joined
Aug 5, 2008
Messages
1,472
Best answers
0
Reaction score
30
Location
swe?
Why i need tv with much functions and live with 2 crashes per day? then i can have radio with 0 crashes and only little lesser functions then tv ? So ? mine choose is the chepper but better and stabler...
So why are you sitting at your computer right now? And not your radio.
 

Henkos

New Member
Joined
Jun 29, 2008
Messages
2,989
Best answers
0
Reaction score
3
Could you get this script but for 0.3.5 :p?
 

Seq

Banned User
Joined
May 6, 2009
Messages
87
Best answers
0
Reaction score
0
Location
Poland
How to make teleports? ;)

anyone know? ;p
 
Top