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

Annih?

Zhefus

New Member
Joined
May 4, 2012
Messages
35
Reaction score
0
Anyone have an annih script, i searched for a little bit, but i made this post before i had to go

if you do have the annih script can you post everything you need for it? im a huuuge noob when it comes to scripts

Haha, thanks ahead, rep++ for you if you have 1
 
actions.xml
XML:
<action uniqueid="4050" event="script" value="quests/annihilator.lua"/>

annihilator.lua
LUA:
-- annihilator level 100 lever

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

    -- Level to do the quest --
    questlevel = 100

   	if item.uid == 4050 and item.itemid == 9825 then
		player1pos = {x=1254, y=1266, z=9, stackpos=253}
		player1 = getThingfromPos(player1pos)

		player2pos = {x=1256, y=1266, z=9, stackpos=253}
		player2 = getThingfromPos(player2pos)

		player3pos = {x=1258, y=1266, z=9, stackpos=253}
		player3 = getThingfromPos(player3pos)
		
		player4pos = {x=1260, y=1266, z=9, stackpos=253}
		player4 = getThingfromPos(player4pos)




		if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
			queststatus1 = getPlayerStorageValue(player1.uid,7200)
			queststatus2 = getPlayerStorageValue(player2.uid,7200)
			queststatus3 = getPlayerStorageValue(player3.uid,7200)
			queststatus4 = getPlayerStorageValue(player4.uid,7200)			


			if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
				nplayer1pos = {x=1231, y=1270, z=10}
				nplayer2pos = {x=1232, y=1270, z=10}
				nplayer3pos = {x=1233, y=1270, z=10}
				nplayer4pos = {x=1234, y=1270, z=10}				
			

    player1level = getPlayerLevel(player1.uid) -- Checking the level of player1
    player2level = getPlayerLevel(player2.uid) -- Checking the level of player2
    player3level = getPlayerLevel(player3.uid) -- Checking the level of player3
	player4level = getPlayerLevel(player4.uid) -- Checking the level of player4


				doSendMagicEffect(player1pos,2)
				doSendMagicEffect(player2pos,2)
				doSendMagicEffect(player3pos,2)
				doSendMagicEffect(player4pos,2)
		

				doTeleportThing(player1.uid,nplayer1pos)
				doTeleportThing(player2.uid,nplayer2pos)
				doTeleportThing(player3.uid,nplayer3pos)
				doTeleportThing(player4.uid,nplayer4pos)				
		

				doSendMagicEffect(nplayer1pos,10)
				doSendMagicEffect(nplayer2pos,10)
				doSendMagicEffect(nplayer3pos,10)
				doSendMagicEffect(nplayer4pos,10)				
		

				doTransformItem(item.uid,item.itemid+1)
			else
				doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")
			end
		else
			doPlayerSendCancel(cid,"You need 4 players for this quest.")
		end

	elseif item.uid ==4050 and item.itemid == 9826 then
		if getPlayerAccess(cid) < 1 then
			doTransformItem(item.uid,item.itemid-1)
		else
			doPlayerSendCancel(cid,"Sorry, not possible.")
		end
	else
		return 0
	end

	return 1
end
The item.itemid is the id of the lever, if you use an other one, you have to change that.
 
awesome, ill test it out, limos you're golden haha

What part is it that i edit where the players start, and goto after they pull the lever

Edit: thanks for the script limos, but i'm using andypslyons annih. :)
 
Last edited:
Back
Top