Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
i can't find the regular gate of expertise script
i want to make it for level 50's
i want to make it for level 50's
UniqueID: 2160 -- will give 1cc
so what can I change it to, to make 250cc? since 2160 would only make 1cc?
Thanks Epic I added rep but how do I do for a chest like anihi (choose one of the four cheat quest) Help Please![]()
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 2000 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a demon armor.")
doPlayerAddItem(cid,2494,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2001 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a magic sword.")
doPlayerAddItem(cid,2400,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2002 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a stonecutter axe.")
doPlayerAddItem(cid,2431,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 2003 then
queststatus = getPlayerStorageValue(cid,6076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a present.")
doPlayerAddItem(cid,1990,1)
setPlayerStorageValue(cid,6076,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
return 1
end
local playerPosition =
{
{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE}
}
local newPosition =
{
{x = xxxx, y = yyyy, z = z},
{x = xxxx, y = yyyy, z = z},
{x = xxxx, y = yyyy, z = z},
{x = xxxx, y = yyyy, z = z}
}
-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = FALSE
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
for i = 1, 4 do
failed = TRUE
player[i] = getThingfromPos(playerPosition[i])
if player[i].itemid > 0 then
if isPlayer(player[i].uid) == TRUE then
if getPlayerStorageValue(player[i].uid, 30015) == -1 then
if getPlayerLevel(player[i].uid) >= 100 then
failed = FALSE
end
end
end
end
if failed == TRUE then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
end
end
for i = 1, 4 do
doSendMagicEffect(playerPosition[i], CONST_ME_POFF)
doTeleportThing(player[i].uid, newPosition[i], FALSE)
doSendMagicEffect(newPosition[i], CONST_ME_ENERGYAREA)
end
doTransformItem(item.uid, item.itemid + 1)
elseif item.itemid == 1946 then
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return TRUE
end
1740, it's the quest chest id,
and then click properties in the chest, and put the UniqueID of the item you wish to put
example:
Code:UniqueID: 2160 -- will give 1cc
First Of All Thanks For the multi chest(anihi thing)
Second of all This Thing wont work
OOOH AND Do i put the 2 things to gather? The first lua code then the second lua code?
And where do i save it?
why im asking too much of questions I'm a new (so im a newbie XD)
What's the ip of your ot?