• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Heavy Script [REQUEST]

Evil Mark

President
Premium User
Joined
Nov 23, 2008
Messages
2,060
Reaction score
264
I Got 3 Quests on My Server

Focus Cape Quest (That gives 40 Mag-lvl) To mages

~~~This Chest should only be obtainable by mages, and by that i mean only Mages should be able to open the Quest Chest~~

Viper Star Quest

~~This Chest should only be obtainable by Paladins, and by that i mean only Paladins should be able to open the Quest Chest~~

Thaian Sword Quest

This Chest should only be obtainable by Knights, and by that i mean only Knights should be able to open the Quest Chest~~


Then i also wanna make a script like this, I Got leveldoors, with bosses in.. but people don't kill the bosses.. they just run trough and take the quest, could someone give me a script like.. How to do so that they can only pass this leveldoor if they kill the monster?.

I Bett nobody in the world can make this script xD

Not:
Lef
Gesior
or
Talaturen

Well maybe they can idk, they are Pro xD
 
Boss quests are easy to fix... First add this to action.xml
Code:
<action uniqueid="5000" script="quests/boss.lua" />
And add switch action id to 5000, then add this to actions/quests/boss.lua or rename it
Code:
function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12615  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527 <!-- dead boss corpse id -->
	local itempos = {x=497, y=398, z=7, stackpos=1} 
	local wallpos = {x=495, y=399, z=7, 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 == 1034 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer2, 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 boss to remove wall to get prize!")
end
	return 1
end


function onTimer2()

wallnewpos = {x=495, y=399, z=7} 
		doCreateItem(1034,1,wallnewpos)
end

Pic:


So they need move boss corpse to that tile and move switch to remove wall :) Rep+++? ^^
 
Last edited:
Boss quests are easy to fix... First add this to action.xml
Code:
<action uniqueid="5000" script="quests/boss.lua" />
And add switch action id to 5000, then add this to actions/quests/boss.lua or rename it
Code:
function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12615  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527 <!-- dead boss corpse id -->
	local itempos = {x=497, y=398, z=7, stackpos=1} 
	local wallpos = {x=495, y=399, z=7, 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 == 1034 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer2, 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 boss to remove wall to get prize!")
end
	return 1
end


function onTimer2()

wallnewpos = {x=495, y=399, z=7} 
		doCreateItem(1034,1,wallnewpos)
end

Pic:


So they need move boss corpse to that tile and move switch to remove wall :) Rep+++? ^^
Feel like updating it to 0.34PL2?
 
Back
Top