Xikini's best answers

  • Xikini

    A strange inscription during the game

    notepad++ ctrl+f -> find in files choose your server directory, copy-paste that line into the search field, hit 'find all'. Notepad++ will search all files for that sentence / couple of words, and show you what file it's in.
  • Xikini

    TFS 0.X Quest random item in percent

    Use storages for the quest portion of the script. Use the code snippet below to give the player the items in your table, using the chances you've provided. local rewards = { --{itemid, chance} -- 100 = guaranteed, 0.001 = minimum chance {2525, 50}, {4874, 30}, {2435, 18}...
  • Xikini

    Lua How to make a NPC remove all items from the player?

    Try this? idk if you have the function 'getPlayerSlotItem' If you do, this should work no problem. local function doPlayerRemoveAllEquipment(cid) if isPlayer(cid) then for i = 1, 10 do local thing = getPlayerSlotItem(cid, i) if thing.uid > 0 then...
  • Xikini

    TFS 0.X Place that blocks MC

    An accompanying login script should suffice. Just check if they are within the area past that square when they login, and teleport them in front of the antymc square. local restricted_areas = { --{ {top left corner}, {bot right corner}, {teleport_location} }, {{x =...
  • Xikini

    lottery tfs 1x

    a quick example local rewards = { -- {{item_id, amount}, {item_id, amount}} {{1111, 1}, {2222, 10}}, -- common {{1111, 1}, {2222, 10}}, -- uncommon {{1111, 1}, {2222, 10}} -- rare } function onUse(cid, item, fromPosition, itemEx, toPosition) local index = 1 local rand =...
  • Xikini

    NPC learn spell only for specific storage.

    A quick and basic skill to learn is tabbing code. It'll help you with problems like this in the future. Basically you had the if statement for 'spell' inside of the elseif statement from 'name'. Thanks for giving it the effort. Below should work for you. local keywordHandler =...
  • Xikini

    Lua Add script to creaturescripts TFS 0.3.6

    In case you haven't, make sure you register the event in data/creaturescripts/scripts/login.lua registerCreatureEvent(cid, "boss_reward") (I'd also suggest renaming the event to the same as your lua file) <event type="kill" name="boss_reward" event="script" value="boss reward.lua"/>
  • Xikini

    How is this possible? localhost and 127.0.0.1 poiting to two different websites!

    Might be a browser cache issue? I'd try clearing the cache and cookies in your browser.
  • Xikini

    Lua Being able to add mana to another play using manarune.

    function onUse(cid, item, fromPosition, itemEx, toPosition) You need to use 'itemEx.uid' instead of cid, when applying the mana. And if your rune doesn't have it, add a check to ensure it's a creature. if not isCreature(itemEx.uid) then -- send cancel message? return true end
  • Xikini

    Remove items from /i

    Look in talkactions and find the script that /i uses. Inside that script, look for the line that shows something similar or exactly the same as this.. local id = tonumber(t[1]) if(not id) then errors(false) id = getItemIdByName(t[1]) errors(true) if(not id) then...
  • Xikini

    Lua Spell, luaDoCombat(). Creature not found

    Confirm that the creature exists before continuing to cast the spell, when using addEvents local function castSpellDelay(p) if isCreature(p[1]) doCombat(unpack(p)) end end
  • Xikini

    Heal cooldown doesnt work

    Guess I need to stop helping with 1.x servers. These minor differences cause a lot of small issues I personally can't troubleshoot without a server log. Oh well. Try this. local exhaust = {} local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)...
  • Xikini

    Lua Global Variable does not exist

    If you wish for it to be a global variable put it into data/lib/000-constant.lua CHEST = 1740
  • Xikini

    TFS 0.X Balancing Vocations on HIGH EXP, Rebirth Server

    Attempting to create something for other people is an effort in futility. People change their minds about what they enjoy day by day. Make something that you enjoy. Other like-minded people will also enjoy it.
  • Xikini

    Storage Required for Tile

    make it actionid. and place it on all of the tiles just outside of the temple. Make sure there isn't any missed squares / diagonals that people can get through. :) Feel free to add me on discord if you're having trouble still. Xikini#0001
  • Xikini

    C++ (Action) Request SLOT MACHINE

    Add this directly under function onUse if getPlayerItemCount(cid, 1444) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You require 1 xxxxxxxxxx to use this slot machine.") return true end doPlayerRemoveItem(cid, 1444, 1)
  • Xikini

    Potion message

    The message is in your source, I believe. Either that, or it's built into the client. It won't cause lags on your server. If this kind of thing caused lag, nobody would have a server, because literally half of the playerbase hold's down healing potions / exura. lol You'll be fine.
  • Xikini

    adv

    It's right here.. [Germany] [8.60] [Real-Map] EAMBS-OT - 3 May 2019 6 PM (https://otland.net/threads/germany-8-60-real-map-eambs-ot-3-may-2019-6-pm.264335/)
  • Xikini

    Lua Chess Talkaction

    !play horse, E4 -> Check if valid horse move. -> Teleport creature to location. -> (or) Teleport with small delay 3 times, NNW | NNE | EEN | EES | SSE | SSW | WWS | WWN
  • Xikini

    Use Item on Object to receive items

    bleh, I don't know if you want it for every rock or a single rock.. mmmm, gonna make the pickaxe the focal point instead of the rock. I'm not certain whether or not your pickaxe is already being used in another script.. But there is always the dwarven pickaxe as a back-up tool. <action...
Top