Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Where can I find key values for the function doItemSetAttribute(uid, key, value). I'm using tfs 0.4.3, did some tests with maxhealthpercent, manaShield, suppresshaste but no success. Can someone tell me where to find it on libs, send me a list or link me to a guide. I couldn't find anything on...
here is the code I made based on what Xikini said
function onUseWeapon(cid, var)
local avg = 0.000
local attime = os.time()
local oltime = getCreatureStorage(cid, 50033)
local hits = getCreatureStorage(cid, 50032)
local blind = getCreatureStorage(cid, 50005)
local chance =...
I had to add the red parts cause count doesnt exist on code, but it still returning some kind of error on this line:
counting.attackCount = counting.attackCount + 1 -- increase attack count since it's not time to show the average yet
attempt to perform arithmetic on field 'attackCount' (a nil...
I'm trying to create a weapon to count how many attacks per second the player can deal using it, but since os.time() only return seconds, I dont know exactly what to do, can someone help me?
Idk the tfs version, but tibia version is 8.6, but im not new in proggraming, just a rude idea would help...
why dont you just make a script for this npc and thread like that
if msg == "creature_name" then
here is a example of a bless npc I made a couple weeks ago
http://kl1p.com/newbless
did you tested with /z or tried to set a spell to use the new effect number?
is possible that /z "talkaction" is limited to a certain number to not crash your client
you would need to test it on a spell/weapon or edit talkactions/sources to grant you the access to effects beyond the default limit
to take a note, default values for knight sword is 1.1 and for knight ml is 3.0
basically you need this value is how much exp you need from one level to another, meaning that 3.0 you need 3 times more exp than the previous level
i have the exact same error on tfs 0.4
it happens when players talk to npc, open trade window and then run away without closing/saying bye
here is my thread: https://otland.net/threads/npc-error.241118/
and here is npchandler.lua
http://pastebin.ca/3387126
hello, recently im working on this old spell of my server
local acombat = createCombatObject()
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat...
i would have to change storage values on exana pox spell and antidote rune to make it viable, also i think i'll have some problem if player dies
cause the storage will not be back to normal