I have made a questlog, that looks like this :
You get storage 1035 when you complete it right? :O..
So I looked at questlog and there was showed (completed)behind the questlogmission
I have this in action - scripts
And if I want to open the door It still don't work >.< this is the error :
[20/06/2009 18:41:26] Lua Script Error: [Action Interface]
[20/06/2009 18:41:26] data/actions/scripts/quest door.luanUse
[20/06/2009 18:41:26] luaGetPlayerStorageValue(). Player not found
Can somebody help me, I rep++ you =D
Code:
<quest name="Arena's quest" startstorageid="1035" startstoragevalue="1">
<mission name="Where to find the arena's?" storageid="1035" startvalue="1" endvalue="1">
<missionstate id="1" description="Cholo told you that you can find the arena far to the east of Bakamo near a little village.. maybe take a look over there.."/>
</mission>
</quest>
You get storage 1035 when you complete it right? :O..
So I looked at questlog and there was showed (completed)behind the questlogmission
I have this in action - scripts
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1030 then --Unid of the switch
if getPlayerStorageValue(cid) == 1035 then --the storage valute the player must have to pass this door.
doPlayerSendTextMessage(cid, 22, "You may pass, you talked with Cholo about this.")
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Please stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'You do not have access here, you need to find a NPC who can tell you what this is!')
end
return 1
else
return 0
end
end
And if I want to open the door It still don't work >.< this is the error :
[20/06/2009 18:41:26] Lua Script Error: [Action Interface]
[20/06/2009 18:41:26] data/actions/scripts/quest door.luanUse
[20/06/2009 18:41:26] luaGetPlayerStorageValue(). Player not found
Can somebody help me, I rep++ you =D