What's new

B??d Questt?w Help=GM !

Status
Not open for further replies.

analucija

Active User
Joined
May 31, 2009
Messages
93
Reaction score
4
Witam mam problem , ka?e skrzynki s? puste a unique id jest wpisane , do tego probowalem wpisa? action id tez nie pomaga?o a wywala taki b??d :

Lua Script Error: [Action Interface]
data/actions/scripts/quests/quests.luanUse

luaGetItemWeight(). Item not found

Proszeo pomoc !
 

Xayan

Senior User
Joined
Jul 4, 2009
Messages
2,608
Reaction score
390
Age
28
Odp: B??d Questt?w Help=GM !

Funkcja getItemWeight() jest niepoprawnie wykorzystana. Wklej tutaj ten skrypt.
 

xX Ninja Xx

Advanced User
Joined
Jul 28, 2009
Messages
398
Reaction score
28
Odp: B??d Questt?w Help=GM !

Wklej mu tutaj Quest.lua, ja nie wiem jak Ci pom?c sorka ;p
 

analucija

Active User
Joined
May 31, 2009
Messages
93
Reaction score
4
Odp: B??d Questt?w Help=GM !

local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid > 1000 and item.uid < 10000 then
local itemWeight = getItemWeight(item.uid, 1, FALSE)
local 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
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
setPlayerStorageValue(cid, 30015, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
elseif getPlayerStorageValue(cid, item.uid) == false then
if playerCap >= itemWeight then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
doPlayerAddItem(cid, item.uid, 1)
setPlayerStorageValue(cid, item.uid, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
else
return FALSE
end
return TRUE
end

Prosze o pomoc !
 

analucija

Active User
Joined
May 31, 2009
Messages
93
Reaction score
4
Odp: B??d Questt?w Help=GM !

Lua Script Error: [Action Interface]
data/actions/scripts/quests/quests.lua:eek:nUse
luaGetItemWeight(). Item not found
Dalej to samo ... Puste s?

Dalej to samo ... Puste s?


local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid > 1000 and item.uid < 10000 then
local itemWeight = getItemWeight(item.uid, 1)
local 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
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
setPlayerStorageValue(cid, 30015, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
elseif getPlayerStorageValue(cid, item.uid) == false then
if playerCap >= itemWeight then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. '.')
doPlayerAddItem(cid, item.uid, 1)
setPlayerStorageValue(cid, item.uid, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(item.uid) .. ' weighing ' .. itemWeight .. ' oz it\'s too heavy.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
else
return FALSE
end
return TRUE
end
Teraz skrzynki dzia?aj? tylko ,?e w ka?dej pisze
It is empty.
i w putty wywala Error !
Lua Script Error: [Action Interface]
data/actions/scripts/quests/quests.lua:eek:nUse
luaGetItemWeight(). Item not found
Prosz? o Pomoc , B?agam !
Pomoc = GM na OTS (DEDYK) , Reput !
 
Last edited:
Status
Not open for further replies.
Top