Hey, I have a problem, i'm not scripter or programmer, tried many ways copying on what people published but i cannot: create quest -> open chest and get key with action ID 4600
I have tfs 1.3, probably with something missing in libraries. Everything else is working for me but i cannot force script to add action id for reward you got from chest. Hence key number is 0 and I wish it to be 4600
I tried different solutions but i have no idea where to look for examples of quests for tfs 1.3 because hardly none posted script works for me. Scripts from 1.2 should work on 1.3?, because for me they doesn't.
Script:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 50005 then --key test--
if getPlayerStorageValue(cid,50005) == -1 then
doPlayerSendTextMessage(cid,22,"You have found a silver key in the drawer. They say it can open not only one or two doors on this isle...")
doPlayerAddItem(cid,2088)
doitem:setActionId(4600)
setPlayerStorageValue(cid,50005)
else
doPlayerSendTextMessage(cid,22,"This one is empty.")
end
end
return TRUE
end
I have tfs 1.3, probably with something missing in libraries. Everything else is working for me but i cannot force script to add action id for reward you got from chest. Hence key number is 0 and I wish it to be 4600
I tried different solutions but i have no idea where to look for examples of quests for tfs 1.3 because hardly none posted script works for me. Scripts from 1.2 should work on 1.3?, because for me they doesn't.
Script:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 50005 then --key test--
if getPlayerStorageValue(cid,50005) == -1 then
doPlayerSendTextMessage(cid,22,"You have found a silver key in the drawer. They say it can open not only one or two doors on this isle...")
doPlayerAddItem(cid,2088)
doitem:setActionId(4600)
setPlayerStorageValue(cid,50005)
else
doPlayerSendTextMessage(cid,22,"This one is empty.")
end
end
return TRUE
end