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

[10.77][TFS 1.2] ORTS, a real map project

Hey, just a quick question, Grizzly Adams isn't working on my server. I've updated KillingIntheNameOf script and also the lua script for grizzly adams with the latest one online. It it just my server or has it still not been fixed? I just want to know wether I should fix it or not, because i dont want to spend an hour or two fixing it and then find out it was already fixed xD
 
You can helpmet in script for premium scroll ?
How I change for Gesior Website points ?

Here get an error:
[Error - mysql_real_query_] Query: UPDATE zonte_accounts SET points=points+30 WHERE account_id=number
Message: Table 'tfs.zonte_accounts' doesn't exist.
 
You can helpmet in script for premium scroll ?
How I change for Gesior Website points ?

Here get an error:
[Error - mysql_real_query_] Query: UPDATE zonte_accounts SET points=points+30 WHERE account_id=number
Message: Table 'tfs.zonte_accounts' doesn't exist.

I can probably help you make the script for premmium scroll..

As for the error, it looks like you didn't add the tables from your AAC to your database, in your website folder there should be a file called (something).SQL , look for that ending and then upload it to your database.
 
Apologize for double post.. *SERIOUSLY where is the Edit function here? Help!*

You can helpmet in script for premium scroll ?
How I change for Gesior Website points ?

Here get an error:
[Error - mysql_real_query_] Query: UPDATE zonte_accounts SET points=points+30 WHERE account_id=number
Message: Table 'tfs.zonte_accounts' doesn't exist.


Script for premmium scroll
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doPlayerAddPremiumDays(cid, 30)
    doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received 30 premium days to your account.")
    doSendMagicEffect(getCreaturePosition(cid), 28)
    doRemoveItem(item.uid,1)
    return true
end
 
Hey, just a quick question, Grizzly Adams isn't working on my server. I've updated KillingIntheNameOf script and also the lua script for grizzly adams with the latest one online. It it just my server or has it still not been fixed? I just want to know wether I should fix it or not, because i dont want to spend an hour or two fixing it and then find out it was already fixed xD

tell us exactly which part is not working so we can take a look at it =P

PS: there is no edit function in download section xD
 
Hello. Could anyone provide me with some good engine for it? 64bit with this sql file. I downloaded tfs 1.0 from other thread but it doesnt have sql file that i have to import in xampp and i have no idea where to get it either.

Thanks for attention and sorry if what i ask for is stupid because im newbie in sql ots making.
 
Hello. Could anyone provide me with some good engine for it? 64bit with this sql file. I downloaded tfs 1.0 from other thread but it doesnt have sql file that i have to import in xampp and i have no idea where to get it either.

Thanks for attention and sorry if what i ask for is stupid because im newbie in sql ots making.
http://nightlies.otland.net/
 
Is this server being used somewhere :p? Would be cool to see a live preview of it :D
 
Allright. So what do I have to click there to download what I need because what I see there tells me nothing. Could you maybe take some time and guide me through making outs please? Or at least tell me if I am close to getting to play it.

Geez man explore, investigate, be curious. you where asking for TFS 1.0 x64 so look for "x64-Release.exe"

http://nightlies.otland.net/dl/forg...63ad5192b9a8fdf920f0a93a-b515-x64-Release.exe

You are "close". Never be afraid to explore and investigate or to question and be curious.
 
* World.xml still contains blocked Demon helmet quest - lever is fixed though
* Yalahar Quest items provide experience with no items

* "Ishebad" (NPC) does not provide promotion
* "Chuckles" (Yalahar NPC) does not buy empty flasks
 
Last edited by a moderator:
@Romantix

* World.xml still contains blocked Demon helmet quest - lever is fixed though
Where is it still blocked? can you give me coordinates?

* Yalahar Quest items provide experience with no items
I'll check it, do you mean that it gives exp but not items? or it gives only exp?

* "Ishebad" (NPC) does not provide promotion
Are you using latest version? which part exactly the NPC stops working? does it even take the money or say anything?

* "Chuckles" (Yalahar NPC) does not buy empty flasks
I'll fix it tomorrow
 
@Evil Puncker

* World.xml still contains blocked Demon helmet quest - lever is fixed though
Where is it still blocked? can you give me coordinates?
Romantix: 16:37 You see a stone wall. ItemID: [1050]. Position: [X: 33211] [Y: 31630] [Z: 13].

* Yalahar Quest items provide experience with no items
I'll check it, do you mean that it gives exp but not items? or it gives only exp?
Romantix: Correct, it does not give items, only experience.

* "Ishebad" (NPC) does not provide promotion
Are you using latest version? which part exactly the NPC stops working? does it even take the money or say anything?
Romantix: He takes the money but does not provide promotion, the code for adding promotion is incorrect.

Old Code:
elseif configManager.getBoolean(configKeys.FREE_PREMIUM) or isPremium(cid) then
npcHandler:say("Congratulations! You are now promoted.", cid)

New/Working Code:
elseif getConfigInfo("freePremium") == "yes" or isPremium(cid) == TRUE then
npcHandler:say("Congratulations! You are now promoted.", cid)

* "Chuckles" (Yalahar NPC) does not buy empty flasks
I'll fix it tomorrow
 
Anyone having issues with pot exhaust?

Yepp, I don't understand why they haven't solved this issue yet :p.

Code:
local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634
local emptyPot = 7636

local antidote = Combat()
antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON)

local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.

function onUse(cid, item, fromPosition, itemEx, toPosition)
   if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then
     return true
   end

   local player = Player(cid)
   if player:getCondition(CONDITION_EXHAUST_HEAL) then
     player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED))
     return true
   end

   if item.itemid == antidotePot then
     if not doCombat(cid, antidote, numberToVariant(cid)) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == smallHealthPot then
     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 60, 85, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == healthPot then
     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 125, 175, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == manaPot then
     if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == strongHealthPot then
     if(not isInArray({3,4,7,8}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == strongManaPot then
     if(not isInArray({1,2,3,5,6,7}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatMana(0, cid, 115, 185, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatSpiritPot then
     if(not isInArray({3, 7}, player:getVocation():getId()) or (player:getLevel() < 80)) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) or not doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatHealthPot then
     if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatManaPot then
     if(not isInArray({1,2,5,6}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatMana(0, cid, 150, 250, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == ultimateHealthPot then
     if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 130) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   end

   return true
end

Keep in mind that I've removed so there will be no empty vials in this script :p.
 
@Evil Puncker

* World.xml still contains blocked Demon helmet quest - lever is fixed though
Where is it still blocked? can you give me coordinates?
Romantix: 16:37 You see a stone wall. ItemID: [1050]. Position: [X: 33211] [Y: 31630] [Z: 13].

The demon helmet quest works, I've done it with one of the latest updates, no issues at all.
To remove the wall, you need to be 2 people standing on the switch tiles.
Unlike real tibia however, there's a timer of 5 minutes before the walls reappear, so it's possible to do it with 2 people.
 
Yepp, I don't understand why they haven't solved this issue yet :p.

Code:
local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634
local emptyPot = 7636

local antidote = Combat()
antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON)

local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.

function onUse(cid, item, fromPosition, itemEx, toPosition)
   if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then
     return true
   end

   local player = Player(cid)
   if player:getCondition(CONDITION_EXHAUST_HEAL) then
     player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED))
     return true
   end

   if item.itemid == antidotePot then
     if not doCombat(cid, antidote, numberToVariant(cid)) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == smallHealthPot then
     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 60, 85, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == healthPot then
     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 125, 175, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == manaPot then
     if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == strongHealthPot then
     if(not isInArray({3,4,7,8}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == strongManaPot then
     if(not isInArray({1,2,3,5,6,7}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatMana(0, cid, 115, 185, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatSpiritPot then
     if(not isInArray({3, 7}, player:getVocation():getId()) or (player:getLevel() < 80)) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) or not doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatHealthPot then
     if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == greatManaPot then
     if(not isInArray({1,2,5,6}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatMana(0, cid, 150, 250, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   elseif item.itemid == ultimateHealthPot then
     if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 130) and not(player:getGroup():getId() >= 2) then
       player:say("This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_MONSTER_SAY)
       return true
     end

     if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) then
       return false
     end
     player:addCondition(exhaust)
     player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
     Item(item.uid):remove(1)
   end

   return true
end

Keep in mind that I've removed so there will be no empty vials in this script :p.

I am guessing that the reason it's not fixed in this git project is because it's configurable with configKeys.EX_ACTIONS_DELAY_INTERVAL.
Meaning it's quite directly related to TFS and config.lua.

Solution should be to setup your config.lua properly, i.e :
timeBetweenExActions = 1000
 
Geez man explore, investigate, be curious. you where asking for TFS 1.0 x64 so look for "x64-Release.exe"

http://nightlies.otland.net/dl/forg...63ad5192b9a8fdf920f0a93a-b515-x64-Release.exe

You are "close". Never be afraid to explore and investigate or to question and be curious.


Cool. But i wrote that i have this engine but i dont have the sql file that should come with it. The one that you need to import to create database for your ots. Got my point? Where do i get it? Or is it there in this topic http://nightlies.otland.net/ ??
 
Back
Top