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

Tibia 8.4 Chests

koz

Gm Death
Joined
Feb 2, 2009
Messages
77
Reaction score
0
I need some one to help me i when i made a quest on tibia ot client 8.4 when i went to open the chest i could only see the item inside the chest if anyone knows how to make it so it gives it to the player like a normal tibia chest would do then please tell me how
 
Quest.lua
Open the mapeditor, change the unique ID on the chest to 5000.

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

   	if item.uid == 5000 then
   		queststatus = getPlayerStorageValue(cid,5000)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Demon Armor.")
   			doPlayerAddItem(cid,2494,1)
   			setPlayerStorageValue(cid,5000,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end

PHP:
<action uniqueid="5000" script="quest.lua" />
 
No it did not work the only thing i just did was change the unique id to 5000 and for action put 2182 snkaebite rod right?

Dude wheres the quest.lua?
 
dont work... im having the same problem tho, i put in the unique id/action id and then i save and restart, and when i open the chest it's empy
 
To make a quest using the new quest system (what you're using I'm guessing):

  • Put the item(s) you want to be the rewards inside any container (quest box, corpse, etc.)
  • Set the action id of the container to 2000
  • Set the unique id of the container to any storage value not used (the unique id will be the storage value given)
  • Don't worry if you can't do the quest on a GM, you won't be able to, only players can do it.
  • That's it! You have a working quest.
 
Lol? How is that complicated, that's by far the easiest quest system ever made.

All you have to do is add all the items you want into the container (more than one item is fine!) and change the action id to 2000 and the unique to any random storage value (not used yet)..

Tell me how that seems complicated?
 
Lol? How is that complicated, that's by far the easiest quest system ever made.

All you have to do is add all the items you want into the container (more than one item is fine!) and change the action id to 2000 and the unique to any random storage value (not used yet)..

Tell me how that seems complicated?

Easiest quests that ever was name was on 8.0!!!

I didnt say that It was complicated I told him its THAT WAY it is! :P
 
Back
Top