Zerity
New Member
- Joined
- Jul 7, 2009
- Messages
- 89
- Reaction score
- 0
My quest chest wont work but some does
its like my anni it wont work it says you need 4 players even if we are 4 ..
the php code:
and i have read the other anni wont work thread but it dont help me ..
and when i teleport my self with GM to the chest's and trying to take them
the demon armor is opening like a backpack so do SOV but SCA and Thunder hammer works any ide?
and i got another quest that is like the same but you dont have a lever to the quest you just run to it and some chest works and some not..
and i have used the search thing and i have tryd the action id 2000 but it dont work
its like my anni it wont work it says you need 4 players even if we are 4 ..
the php code:
local playerPosition =
{
{x = 691, y = 98, z = 10, stackpos = STACKPOS_TOP_CREATURE},
{x = 690, y = 98, z = 10, stackpos = STACKPOS_TOP_CREATURE},
{x = 689, y = 98, z = 10, stackpos = STACKPOS_TOP_CREATURE},
{x = 688, y = 98, z = 10, stackpos = STACKPOS_TOP_CREATURE}
}
local newPosition =
{
{x = 710, y = 95, z = 10},
{x = 709, y = 95, z = 10},
{x = 708, y = 95, z = 10},
{x = 707, y = 95, z = 10}
}
-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = TRUE
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
for i = 1, 4 do
player = getThingfromPos(playerPosition)
if player.itemid > 0 then
if isPlayer(player.uid) == TRUE then
if getPlayerStorageValue(player.uid, 30015) == -1 then
if getPlayerLevel(player.uid) >= 100 then
failed = FALSE
end
end
end
end
if failed == TRUE then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
end
failed = TRUE
end
for i = 1, 4 do
doSendMagicEffect(playerPosition, CONST_ME_POFF)
doTeleportThing(player.uid, newPosition, FALSE)
doSendMagicEffect(newPosition, CONST_ME_ENERGYAREA)
end
doTransformItem(item.uid, item.itemid + 1)
elseif item.itemid == 1946 then
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return TRUE
end
and i have read the other anni wont work thread but it dont help me ..
and when i teleport my self with GM to the chest's and trying to take them
the demon armor is opening like a backpack so do SOV but SCA and Thunder hammer works any ide?
and i got another quest that is like the same but you dont have a lever to the quest you just run to it and some chest works and some not..
and i have used the search thing and i have tryd the action id 2000 but it dont work