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

Help with this script!

Ates.tr

Im back
Joined
Nov 11, 2007
Messages
1,046
Reaction score
2
Location
Sweden
I'll want like this


You have to use one stone coffin (gold, ank type) to get one item, you cant get item before you have open the stone coffin :p

also you can only use the stone coffin one time.

Here scripts!

PHP:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = "demon"
local pos1 = {x=32104, y=33267, z=12}
local pos2 = {x=32107, y=33272, z=12}
local pos3 = {x=32102, y=33275, z=12}
local pos4 = {x=32108, y=33276, z=12}
local pos5 = {x=32104, y=33286, z=12}
local pos6 = {x=32106, y=33286, z=12}
local id = 1419

if item.itemid == id and item.uid == 50000 then
if isPlayer(cid) == TRUE then
if queststatus == (getPlayerStorageValue(cid, 55000)
	 doSummonCreature(monster, pos1)
	 	 doSummonCreature(monster, pos2)
		 	 doSummonCreature(monster, pos3)
			 	 doSummonCreature(monster, pos4)
				 	 doSummonCreature(monster, pos5)
					 	 doSummonCreature(monster, pos6)
						     setPlayerStorageValue(cid, 55000) -1
else
if getPlayerStorageValue(cid, 55000) == -1 then
     doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
	 end
	 return 1
end
end

and the reward here:

PHP:
--- Made by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)

   	if item.uid == 30300 then
   		queststatus = getPlayerStorageValue(cid,55000)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Divine Armor.")
   			doPlayerAddItem(cid,8885,1)
			doPlayerAddExp(cid, 5000000)
   			setPlayerStorageValue(cid,55000,1)
   		else
   			doPlayerSendTextMessage(cid, 22,"It is empty.")
   		end
   	elseif item.uid == 30301 then
   		queststatus = getPlayerStorageValue(cid,55000)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Golden Helmet.")
   			doPlayerAddItem(cid,2471,1)
		    doPlayerAddExp(cid, 5000000)
   			setPlayerStorageValue(cid,55000,1)
   		else
   			doPlayerSendTextMessage(cid, 22,"It is empty.")
   		end

	end
   	return 1
end
 
:)
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local configs =
{
local monster = "demon"
demonpos1 = {x=32104, y=33267, z=12}
demonpos2 = {x=32107, y=33272, z=12}
demonpos3 = {x=32102, y=33275, z=12}
demonpos4 = {x=32108, y=33276, z=12}
demonpos5 = {x=32104, y=33286, z=12}
demonpos6 = {x=32106, y=33286, z=12}
id = 1419
uid = 55000
msgyes = "blabla."
storage = 55000
}

if item.itemid == configs.id and item.uid == configs.uid then
queststatus = getPlayerStorageValue(cid, configs.storage)
	if queststatus == 1 then
	doPlayerSendTextMessage(cid,22,"You have done this quest.")
	else
	doPlayerSendTextMessage(cid,22, msgyes)
	doSendMagicEffect(topos,12)
    doSummonCreature("Demon", configs.demonpos1)
    doSummonCreature("Demon", configs.demonpos2)
    doSummonCreature("Demon", configs.demonpos3)
    doSummonCreature("Demon", configs.demonpos4)
	setPlayerStorageValue(cid, storage, 1)
	end
	return FALSE
	end
return TRUE
end
 
:)
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local configs =
{
local monster = "demon"
demonpos1 = {x=32104, y=33267, z=12}
demonpos2 = {x=32107, y=33272, z=12}
demonpos3 = {x=32102, y=33275, z=12}
demonpos4 = {x=32108, y=33276, z=12}
demonpos5 = {x=32104, y=33286, z=12}
demonpos6 = {x=32106, y=33286, z=12}
id = 1419
uid = 55000
msgyes = "blabla."
storage = 55000
}

if item.itemid == configs.id and item.uid == configs.uid then
queststatus = getPlayerStorageValue(cid, configs.storage)
	if queststatus == 1 then
	doPlayerSendTextMessage(cid,22,"You have done this quest.")
	else
	doPlayerSendTextMessage(cid,22, msgyes)
	doSendMagicEffect(topos,12)
    doSummonCreature("Demon", configs.demonpos1)
    doSummonCreature("Demon", configs.demonpos2)
    doSummonCreature("Demon", configs.demonpos3)
    doSummonCreature("Demon", configs.demonpos4)
	setPlayerStorageValue(cid, storage, 1)
	end
	return FALSE
	end
return TRUE
end

thx
 
If Ates wants better script he should buy it :)

true...


edit: still peoples cryin want my project wtf is this ?? go ask talaturen for softcores server or what they are named ask narozia owner Doonrak/Ryan... ffs


And it's 1-5 mins job this... lol i made my in 3-4 month or loger maybe :S
 
PHP:
-- Script by Ates
local monster = "demon"

local positions = {
	{x=32104, y=33267, z=12},
	{x=32107, y=33272, z=12},
	{x=32102, y=33275, z=12},
	{x=32108, y=33276, z=12},
	{x=32104, y=33286, z=12},
	{x=32106, y=33286, z=12}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 55000) == FALSE then
		for pos in ipairs(positions) do
			doSummonCreature(pos, monster)
		end
		setPlayerStorageValue(cid, 55000, TRUE)
	else
		doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
	end
	
	return TRUE
end
 
PHP:
-- Script by Ates
local monster = "demon"

local positions = {
	{x=32104, y=33267, z=12},
	{x=32107, y=33272, z=12},
	{x=32102, y=33275, z=12},
	{x=32108, y=33276, z=12},
	{x=32104, y=33286, z=12},
	{x=32106, y=33286, z=12}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 55000) == FALSE then
		for pos in ipairs(positions) do
			doSummonCreature(pos, monster)
		end
		setPlayerStorageValue(cid, 55000, TRUE)
	else
		doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
	end
	
	return TRUE
end

ty .
 
Back
Top