• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. imkingran

    TFS 1.X Bounty Hunter System

    @Nixdo You should be getting messages in your local chat updating you like this: 22:39 [BOUNTY HUNTER SYSTEM] You have placed bounty on Paladin Sample for a reward of 1000000 gold! 22:38 Naji: You have made ten millions and it still grows! Your account balance is 76029008 gold. 22:39 Godric...
  2. imkingran

    TFS 1.X Bounty Hunter System

    Not it should not matter, actually I just tested in that same situation x'D. How are you typing the command? For normal coins it is, for example: !hunt Druid Sample, gold, 1000000 (oops gold not coins :P)
  3. imkingran

    TFS 1.X Bounty Hunter System

    Looking at the code it should take/remove/add from your bank balance. So did you check to see if it altered your bank balance?
  4. imkingran

    TFS 1.X+ Problem with script createcriature

    @Nuelman @Itutorial Bring's up a good point. Since there is no local keyword in front of your function it could interfere with another function inside the same scope that has the same name. You can either add local in front and move it on top of the other function or if you need to access it...
  5. imkingran

    TFS 1.X Bounty Hunter System

    @Nixdo Hey mate, I edited the first page, now it will update your database automatically if the table does not currently exist. Just recopy the library file from the first page (or just copy the first 2 lines involving the database) and then reload the libs on your server.
  6. imkingran

    TFS 1.X+ Problem with script createcriature

    Hmm, well I didn't make any changes to the part of your code that spawns the monster, only how we remove the monster after 5 hours. I think you can adjust your Game.createMonster and add some params to force the spawn: Game.createMonster(monsterName, position[, extended = false[, force =...
  7. imkingran

    TFS 1.X+ worldType = "pvp" pvp-enforced (party)

    @Nuelman Yes there can only be one Creature:onTargetCombat(target) function inside of your creature.lua file. You just add the portion of the party code inside the function just like you did for other systems within that function: __picif = {} function Creature:onChangeOutfit(outfit) if...
  8. imkingran

    TFS 1.X+ worldType = "pvp" pvp-enforced (party)

    @Nuelman https://otland.net/threads/request-party-protection.236019/#post-2278844
  9. imkingran

    TFS 1.X+ Problem with script createcriature

    @Nuelman I'm not sure why it didn't work in 5 hours vs 1 minute but try this small change, instead of an addEvent that comes 5 hours later, we instead check every 1 second if 5 hours have passed: local mwallPos = Position(32991, 32299, 7) local mwallId = 1498 local timeToRemove = 300 * 60 --...
  10. imkingran

    [How-to] Modal Windows

    https://github.com/edubart/otclient/blob/master/modules/game_modaldialog/modaldialog.otui
  11. imkingran

    [How-to] Modal Windows

    Are you using OTClient?
  12. imkingran

    Lua Better way to prevent a monster from dying

    I never used revscripts yet but you can adapt this to your revscripts style: function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) -- if it's healing then allow it if primaryType == COMBAT_HEALING then return...
  13. imkingran

    HELP BUG - ONE PLAYER CASE LAG IN MY OT

    What server version are you using? What do the database tables look like? You can use this query for example to get all players with more than 100 items in their inbox: SELECT player_id, count( player_id ) FROM player_inboxitems GROUP BY player_id HAVING count( player_id ) > 100 ORDER BY count(...
  14. imkingran

    AutoLoot System for tfs 1.x

    !autoloot add, itemId or name split[1] = add split[2] = itemId/name Most likely you did not enter the second param and the code doesn't check to see if it's there before using it: local item = split[2]:gsub("%s+", "", 1) In there it attempts to index split[2] but if the user did not enter a...
  15. imkingran

    AAC Znote AAC: Linux Ubuntu changelog.cache

    What does your changelog.php look like? And what is the structure of the database table that stores these changelogs?
  16. imkingran

    [TFS 1.2] Bonus XP for using Client 12, instead of 10

    Change: local clientVersion = player:getClient().version To: local clientVersion = self:getClient().version Edit: the full code snippet that was asked about in this thread: -- Client 12 Bonus Experience local clientVersion = self:getClient().version if clientVersion >= 1200 then...
  17. imkingran

    [TFS 1.2] Bonus XP for using Client 12, instead of 10

    Oops function Player:onGainExperience(source, exp, rawExp) if not source or source:isPlayer() then return exp end -- Client 12 Bonus Experience local clientVersion = player:getClient().version if clientVersion >= 1200 then exp = exp * 2 end...
  18. imkingran

    [TFS 1.2] Bonus XP for using Client 12, instead of 10

    @d0gw4r Try this, All I did was move it outside of that if statement, function Player:onGainExperience(source, exp, rawExp) if not source or source:isPlayer() then return exp end -- Client 12 Bonus Experience local clientVersion = player:getClient().version...
  19. imkingran

    [TFS 1.2] Bonus XP for using Client 12, instead of 10

    Post your full function Player:eek:nGainExperience(source, exp, rawExp) code here Edit: It should not be inside this "if statement" if not source or source:isPlayer() then
  20. imkingran

    RevScripts Script Anti-MC

    @Pifafa Try this: local tp_mineracao = {x = 123, y = 123, z = 8} local areasMineracao = { [1] = {{x = 123, y = 123, z = 8}, {x = 123, y = 123, z = 8}}, [2] = {{x = 123, y = 123, z = 9}, {x = 123, y = 123, z = 9}}, [3] = {{x = 132, y = 123, z = 10}, {x = 123, y = 123, z = 10}} } local...
Back
Top