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

creaturescript

  1. miguelshta

    Lua help online guild bonus exp

    hello i need help i want to add 20% extra experience to all guilds with more than > 5 players online and no double ip allowed using tfs 1.3
  2. diarmaint

    someone help Critical system error

    This system should use the skill club as a basis for critical, but I have this error tfs 0.4 8.60 local SKILL_ID = 3 -- id skill... local multiplier = 1.5 local percentual = 0.3 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid))...
  3. Lurk

    TFS 0.X how can I check if the player causing damage with a weapon

    I'm trying to mess around with onStatsChange and I need to check if the damage that the player is causing is being caused by a weapon (since the player can deal damage with runes, spells, fire field and what not) I know I can getPlayerSlotItem but that will only tell me that he has a weapon equiped
  4. Ns Sparkz

    Lua attempt to index local 'target' <a nil value>

    am trying to fix firestorm event this : Firestorm Event | Tfs 1.2 (https://otland.net/threads/firestorm-event-tfs-1-2.237061/) am getting these errors Lua Script Error: [Main Interface] in a timer event called from: <Unkown scriptfile> data/firestorm_event.lua:66:in function 'dostartfirestorm'...
  5. M

    Spamming Error Creature not found

    [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not found [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not...
  6. H

    !pvp on/off

    Good evening, can anyone help me? I'm in need of a script for the player to choose whether it wants to be PVP or NOPVP. I tried to use this one ---> TalkAction - !pvp - own world type! : ) (https://otland.net/threads/pvp-own-world-type.31889/) , but it is giving this error: INVALID EVENT...
  7. H

    Lua Help with Script Skill Points.

    Hello, how are you? So I am using this script for every lvl that upa earns "Skills Points" I am with 2 doubt. 1st I wanted that when the upa character appeared a message on the screen something like "+1 Skill Points!" I saw that in Script there is a message area, but it is not working...
  8. Kodak

    Lua Equipment from Level Advance

    So I wrote this script using some info I found here on the forums. In theory, it should work as, If Level 20 & No storage value then If Knight/Elite Knight then If Axe > then Sword & Club, give axe weapon Else if Sword > Axe & Club then give sword weapon Else if Club > Sword & Axe then give...
  9. LightTenshimaru

    TFS 1.X+ [Lua]AutoGold Exchange

    Hello, i've got this code to change Gold Coin into Platinum Coin automatically, but there's no console error and the gold it's not changing. function onThink(creature, interval) local player = creature:getPlayer() if not player then return false end if...
  10. LightTenshimaru

    Lua Gain X% Attributes When Equiped.[Creaturescript]

    I'm making a script that when equipping [Wand + Shield], [Sword, Axe, Mace + Shield], [Crossbow] have an attribute bonus in [ML], [SWORD, AXE, MACE], [DISTANCE] respectively. But I have a lot of problems, the first is that activation message creature: say ("Damage Bonus", TALKTYPE_MONSTER_SAY...
  11. Lucas Primo

    [Jobs System] NPC + Look + Function

    Hello people !!! I wonder if you can help me create a simple WORK system. How would that work? There will be 1 NPC for each JOB. The crafting systems I already have. I need the NPC to WORK, enlist the player to work based on their level, giving a simple mission to get him from the JOB. A basic...
  12. K

    Unmovable monster?

    Hello! I´m working on a little project, a 7.6 server (XML - it´s old, I know, but usually simple, just for a few friends and I.), and monsters can move diagonally, is it possible to make 1 specific monster/creature unmovable so it just stands still wherever it is placed in its spawn? Thanks, in...
  13. L

    CreatureEvent Critical/Dodge System based on weaponSkill/speed TFS 1.2

    Updated 05/08/2017 So this is my first "contribuition" it's a critical system based on the weapon that you use and a dodge system based on the player speed and free cap. It has effects and texts for melee and ranged attacks. Wands/spells have only texts. Monsters can crit/dodge and everything...
  14. GhostWD

    Lua CreatureScripts error spam

    @@EDIT Have done little research and now i know that it's fault of script idle.lua which kicks after specified amount of time is any possible solution on this? maybe before kick removing of onThink statement in my script? idk ;/ Hello OTLanders i need your help ! I've scripts(3) which send...
  15. Crixpx

    Lua add tibia coins every hour by charge

    Hello :D I have edited this script so that every one of the characters connect you to a load every 1 hour with a limit of 5 loads "5 hours" to complete the 5 hours of as a reward 25 coins and the time will be saved even when disconnected so that Continue running the time when you connect and...
  16. Aled

    [TFS 1.x] Monster pick up item and throw

    Just a little fun: Monster picks up item from ground and throws it at the player. Put <script> <event name="rockthrow"/> </script> in the monster xml and in creaturescripts.xml <event type="think" name="rockthrow" script="rockthrow.lua" /> and in rockthrow.lua local rockid = 1285 function...
  17. 115820

    !Stats COMMAND 1.2

    Hii, I need a script, when i use command "!stats" show : Payer LEVEL and RESET (STORAGE 500); Player MAGICLEVEL; PlayerMANA/MAXMANA ; PlayerHealth/MAXHEALTH . TFS 1.2 Ot : 10.99
  18. P

    Lua Awalys show green shield WS 0.4

    How to show the green shield of war system always... Even if not fighting a war, just to show more clear who is guild... Like a party for the guild? Using 0.4
  19. P

    Wanted Gamemaster tfs 0.4

    Can anyone make a mod, or scripts that possible that god, cm, gm ... be killed by players? Example ... God uses a talkaction! Wantedgm [name of god] and it can be attacked and attack player. When he dies open a tp to a room for reward etc To make a "smart" boss type. I think it would be pretty...
  20. P

    Lua guild emblem

    Good people wanted to make a script request, I do not know the degree of difficulty to create this but it was basically a creaturescript for when a character enters the server, and he has guild, activate the warbler, even without being in war with another guild ... Players could see who and...
Back
Top