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

[Request] Real DHQ script and Teddy bear Present in anhi.

Galgula

New Member
Joined
Nov 15, 2007
Messages
28
Reaction score
0
Hello,
if someone can make the real DHQ script it would be cool xP
if you dont know what i mean then the script sould be like that:
when u switch the DHQ lever then the stone disappear and the teleport out of DHQ is disappearing too. and when switch it back they both back.

And about the teddy bear present in anhi i would like that the player gets a present and in it there is a teddy bear (just like real tibia).
Just tell me what i need to do and i will add it to the anhilator script


Sorry for bad english and Thanks xP
 
The annihilator with teddy is already implemented in TFS
local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid > 1000 and item.uid < 10000 then
itemWeight = getItemWeight(item.uid, 1)
playerCap = getPlayerFreeCap(cid)
if isInArray(annihilatorReward, item.uid) == TRUE then
if getPlayerStorageValue(cid, 30015) == -1 then
if playerCap >= itemWeight then
if item.uid == 1990 then
local container = doPlayerAddItem(cid, 1990, 1)
doAddContainerItem(container, 2326, 1)
else
doPlayerAddItem(cid, item.uid, 1)
end

It's at the top of quests.lua in Actions/Scripts/Quests/

You need to give chests uniqueID of those items.
 
Thx..
but i dont really understood this script so i made a simple anhichest..
can u just tell me what funcutions i need to use to make it?
 
Code:
local container = doPlayerAddItem(cid, 1990, 1)
doAddContainerItem(container, 2326, 1)

This function.

1990 - present box
2326 - annihilation bear
container - just a name, if u will change it then chnage in doAddContainerItem(container <- this too.

It can be simply implemented in script onUse.
 
Back
Top