• 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!

I need a script: ( plax help me

luki02006

New Member
Joined
Sep 22, 2008
Messages
12
Reaction score
0
Hi I have need of a script and it does not know how to do it.:huh:
Will show you a picture that he had read the script.:p
testoz.png

[you can see in the image numbers to translate an item or activity.]

Now try to explain to you how it is working.
Visible in the image of the item ID [xxxx] selected number [1], put in place marked with the number [2], when you click on the levers marked number [3], we disappear selected item number [1], and the wall selected number [4] disappears. So we can get to the teleport.

Sorry for my english, thanks in advance!
 
Here you are.

in actions/script make inqboss1.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12613  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527 -- dead demon corpse id
	local itempos = {x=888, y=736, z=7, stackpos=1} -- pos of the dead corpse
	local wallpos = {x=886, y=738, z=7, stackpos=1} -- pos of the wall which dissapear
 
	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 == 1032 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.")
end
	return 1
end


function onTimer5()

wallnewpos = {x=886, y=738, z=7} -- pos of the wall which dissapear
		doCreateItem(1032,1,wallnewpos)
end

then in actions.xml
Lua:
<action uniqueid="12613" script="inqboss1.lua"/>
 
Back
Top