jpkulik
New Member
- Joined
- Mar 15, 2008
- Messages
- 208
- Reaction score
- 2
Hey guys!
I did a script here, but it does not work, i dont think there is an error, but im Newbie in .LUA, so i need your Help..
Script:
Error:
Can some one help me fast as possible please?
See you!
I did a script here, but it does not work, i dont think there is an error, but im Newbie in .LUA, so i need your Help..
Script:
PHP:
BP.LUA
if item.uid == 8890 then
queststatus = getPlayerStorageValue(cid,8890)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You found a Backpack of Holding.")
container = doPlayerAddItem(cid, 2365, 1)
doAddContainerItem(container, 2273, 10)
doAddContainerItem(container, 2268, 10)
doAddContainerItem(container, 2313, 30)
doAddContainerItem(container, 2311,50)
setPlayerStorageValue(cid,8890,1)
else
doPlayerSendTextMessage(cid,24,"It is empty.")
end
end
PHP:
In actions.XML
<action actionid="8890" script="quests/poi/bp.lua" />
Error:
PHP:
[17/09/2008 00:17:43] data/actions/scripts/quests/poi/bp.lua:1: attempt to index global 'item' (a nil value)
[17/09/2008 00:17:43] Warning: [Event::loadScript] Can not load script. data/actions/scripts/quests/poi/bp.lua
See you!