• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

looking to talk to / ask for help on a few custom scripts!

fig niggy

New Member
Joined
Nov 9, 2009
Messages
21
Reaction score
1
would like custom fishing, a lottery system, a wheel of mediocrity or something along those lines, how to make/fix quest chest errors with chest similar to anni! msg me or reply here please and thank you !
 
Wrong section and you should post your chest/anni errors you are talking about or else how can we know them?
You also have to write which TFS version are you using. I will just assume you're using TFS 1.x and post scripts for it.
Custom fishing system:
Lottery system:
And I don't know what is the other thing you wrote.
 
Ty for putting me in the right section ! It’s tfs 1.3! I havnt posted for help here before , pretty new to all of this! Do you have links that would work for tfs 1.3?
And as far as the anni chest error I guess the first error is that I can’t locate the anni chest scripts or luas ! I’m working on a quest or quest area and working on making 5 chest that you can only pick one and once you open it all of them are empty or not accessible, just like anni
 
Just look at this and see how its scripted and do similar one with 5 chests
 
Ty for putting me in the right section ! It’s tfs 1.3! I havnt posted for help here before , pretty new to all of this! Do you have links that would work for tfs 1.3?
And as far as the anni chest error I guess the first error is that I can’t locate the anni chest scripts or luas ! I’m working on a quest or quest area and working on making 5 chest that you can only pick one and once you open it all of them are empty or not accessible, just like anni
Lua:
function onUse(cid, item, frompos, item2, topos)

       if item.uid == 6605 then
           queststatus = getPlayerStorageValue(cid,6607)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found the Mexcalibur.")
               doPlayerAddItem(cid,8980,1)
               setPlayerStorageValue(cid,6607,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 6606 then
           queststatus = getPlayerStorageValue(cid,6607)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found the Arch Axe.")
               doPlayerAddItem(cid,8926,1)
               setPlayerStorageValue(cid,6607,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
       elseif item.uid == 6607 then
           queststatus = getPlayerStorageValue(cid,6607)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found the Obsidian Truncheon.")
               doPlayerAddItem(cid,8928,1)
               setPlayerStorageValue(cid,6607,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
               elseif item.uid == 6608 then
           queststatus = getPlayerStorageValue(cid,6607)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found the Blaze Staff.")
               doPlayerAddItem(cid,7451,1)
               setPlayerStorageValue(cid,6607,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end
               elseif item.uid == 6609 then
           queststatus = getPlayerStorageValue(cid,6607)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,22,"You have found a Flash Arrow.")
               doPlayerAddItem(cid,7838,1)
               setPlayerStorageValue(cid,6607,1)
           else
               doPlayerSendTextMessage(cid,22,"It is empty.")
           end

    else
        return 0
       end

       return 1
end

This script is only the chests part. Just edit the items and don't forget to set those unique ids to each chest in the map. U should also check storages :p
 
data/actions/scripts/yourscriptname and then add it to data/actions/actions.xml
 
Back
Top