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

Lua Quest with uniq id but he still get item how?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey is it possibel that the chest have a uniq id when you open it you get them item?
and how can you make it?
 
Why the hell does it matter what actionid you use? None of your posts make sense, you barely speak English well enough that I get a vague idea of what you're asking, and upon inquiry of what the hell you're trying to say, you babble on and repeat yourself.

So try, as hard as your little peapod possibly can, tell me in a clearly constructed sentence what you want done here.
Just deal with it, this is what OpenTibia consists of these days.
 
LOl i cant write in english yea so what? what do you want by flamming my thread? you just write shit in my thread over and over again if you cant help THEN DONT!
I have other dudes helping my out so stfu and leav the thread ffs!
 
well im gona write again! my items.otb is custom!
i try adding a uniq ID below 1000 i cant couse the map editor dosent support items below 1000 and when im trying to add item in the chest it dosent work the item that is 135 dosent exist in items.otb in the map editor!
When i added my items.otb i got a error about some wrong version or somting!
 
Well, you must add the new items.otb in the map editor. Thats the only way, or script the quest yourself?

EDIT: Ot you can just replace your new sprite with a useless one. There are many ways to solve this
 
Last edited:
well i did when i add in the new items.otb i get a error that is a old version or somting and it dosent work...
How can i script it?:S
 
I'll post a script soon

EDIT: Script;

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

	if getPlayerStorageValue(cid,80000) == -1 then
		doPlayerAddItem (cid, XXX)
		doPlayerSendTextMessage(cid, 12, "You found a <Item Name>")
		doPlayerAddStorageValue(cid, 80000)
else
		doPlayerSendCancel(cid, "You already got <Item Name>")
end
 
yea i hop so i got a 2 scripts 1 that works this script dosent work with the custom items..
and 1 that you can open the chest how many times you like:

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

        if getPlayerStorageValue(cid,90000) == -1 then
                doPlayerAddItem (cid, 132)
                doPlayerSendTextMessage(cid, 12, "You found a fag123")
                doPlayerSetStorageValue(cid, 90000)
        else
                doPlayerSendCancel(cid, "You already got the fag")
        end
end




script on the strange that dosent give custom items:

Code:
function onUse(cid, item, frompos, item2, topos)
  	-- Desert q 1
  	if item.uid == 2157 then
  		queststatus = getPlayerStorageValue(cid,1000)
  		if queststatus == -1 then
  			if getPlayerLevel(cid) >= 50 then
  				doPlayerSendTextMessage(cid,22,"You have found a Gold Nugget.")
  				doPlayerAddItem(cid,2157,1)
  				setPlayerStorageValue(cid,1000,1)
  			else
  				doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
  			end
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	end
end
 
Last edited:
Back
Top