• 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!

Search results

  1. Tyson12302

    Casino issue

    I've learned alot of files such as XML,PHP,Java,Python but most of them are not like LUA. So i may be a little rusty with LUA but for the scripts im mostly ok, its just these small problems that i dont know what to do.
  2. Tyson12302

    Casino issue

    Hmm would you show me how that would work in the whole script im a bit confused on where to put that. Thanks!
  3. Tyson12302

    Casino issue

    What do you mean. Lowest Numbers makes it harder?
  4. Tyson12302

    Casino issue

    I've made a Casino script where you pull a lever and its random to if you win or lose. But when i try it i win almost 70% of the time. How can i make this 50% or make it more harder to win? Heres the script function onUse(cid, item, frompos, item2, topos) if item.uid == 5885 then kasapos =...
  5. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    I found a console error. Here it is [13/06/2015 17:44:53] [Error - Npc interface] [13/06/2015 17:44:53] data/npc/scripts/donations.lua:onCreatureSay [13/06/2015 17:44:53] Description: [13/06/2015 17:44:53] data/npc/scripts/donations.lua:59: attempt to index local 'x' (a nil value)...
  6. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    The thing is that nothing comes up in the Console when i do that. I checked some other thread which had a fixed version but whenever i load my server i get a error saying function argument expected near ':'. Heres my new script. local keywordHandler = KeywordHandler:new() local npcHandler =...
  7. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    That fixed the problem, now he says Do you want to buy "item" for x points" when i say see. he says 216:01 Alfonzo: You don't have enough points." But i have alot of points on the website. Please help
  8. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    The NPC still says the same thing. not sure whats wrong with it.
  9. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    Is this fine? if(getPlayerMoney(cid) >= amount * items[item].Bpoints) then if(getPlayerFreeCap(cid) >= getItemWeightById(item,amount)) then local new_item = doCreateItemEx(item, amount) local received_item = doPlayerAddItemEx(cid, new_item) if received_item == RETURNVALUE_NOERROR then...
  10. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    Bump! I changed around the script and it now looks like this. Whenever i accept the item it says to buy more points when i already have enough on the website. Please help local focuses = {} local function isFocused(cid) for i, v in pairs(focuses) do if(v == cid) then return true end end return...
  11. Tyson12302

    [Talkaction] !buy donation

    The NPC doesn't let me sell the items. I say "Buy" and i pick a weapon/item that is on the list and he just says that i can buy that items look at the list again" whats wrong with it?
  12. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    It wasn't the , problem. He still doesn't sell me the items.
  13. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    Aight. Not sure if the last , makes this error but when i ask the NPC to buy a item he says "22:29 Alfonzo: You can't buy this item from me, look in the list which items you can buy." The item is 100% on the list
  14. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    I got the original code from otland yes. I changed everything basically to fit my database and everything.
  15. Tyson12302

    Solved Problem with a Custom NPC Need Help ASAP

    I've made a donator NPC that lets you buy from the shop ingame rather than on the website. Heres the code [12/06/2015 21:54:35] [Error - LuaScriptInterface::loadFile] data/npc/scripts/donations.lua:24: '}' expected (to close '{' at line 21) near '[' [12/06/2015 21:54:35] [Warning -...
  16. Tyson12302

    Znote AAC 1.4 - [TFS 0.2.13+] & [TFS 0.3.6+/0.4]

    Have you copied what was in the box and inserted it in to you PHPMYADMIN SQL?
  17. Tyson12302

    Error when opening chest

    Great :)
  18. Tyson12302

    Error when opening chest

    One more thing before you mark this as "Solved" I made a Daily quest with 3 difficulties meaning it as 3 chests. Can i use this code 3 times with different ItemID's chaning the name to "dailyquestv2.lua" and chaning the UID in actions.xml. Will the other chests be working if i do that. thanks
  19. Tyson12302

    Error when opening chest

    Awesome thanks for the help! :)
Back
Top