Ramirow's best answers

  • Ramirow

    Cosmetic effect scroll request

    I guess the effect part when you gain a level works out. A tip I can give you is that when you assign the permanent effect from the scroll, it gives you an storage. Then edit your 'reach level, add effect' function to check if it has that storage. If it does, do not assign any effect and that's it.
  • Ramirow

    Lua System Storage - Door 7.6

    For the scroll: function onUse(cid, item) if getPlayerStorageValue(cid, 5007) < 1 then setPlayerStorageValue(cid, 5007, 1) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid,22,'You added 30 VIP days to your character.') else...
  • Ramirow

    Lua Door max level 20 enter!

    Oh dude, you are missing a lot of things if that's the full script.. Try this one: function onUse(cid, item, frompos, item2, topos) local reqLevel = 20 if getPlayerLevel(cid) <= reqLevel then pos = getPlayerPosition(cid) if pos.x == topos.x then if...
  • Ramirow

    Solved NPC Repair equipment

    Hmmm..Try this one out? XD local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local charge_price = 50 -- preço por carga em gps. function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid)...
  • Ramirow

    Script Arena Help

    This one should work, 99% sure local storage = 30001 -- used to display remaining time local area = { fromPos = {x = 360, y = 7, z = 9}, toPos = {x = 371, y = 10, z = 9} } local playerPos = {x = 366, y = 8, z = 9} local areaTimer = 10 * 60 local function getPlayerFromArea() for x =...
  • Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    So it dies..I wonder why, another try (? local config = { storage = 9999, --Use empty storage outfit = {lookType = 0}, --still working on the to turn into dead body time = 5, --How long will it take until he revives from the death text = "You will be revived in 5 seconds"...
  • Ramirow

    Weapon Upgrade lua script error

    Okay, it's not actually a fix, as it works, you just failed to register the functions. Will go step by step on how I did it, do it like this. 1) Create a file called "jewel_upgrading" on data folder and paste this inside: function getItemAttribute(uid, key) local i =...
  • Ramirow

    TFS 1.X+ Teleport all player in are to area

    You can test this mate. local square = { frompos = {x = 1252, y = 1007, z = 5}, topos = {x = 1261, y = 1013, z = 5}, exitpos = {x = 1253, y = 1010, z = 6} } for a = square.frompos.x, square.topos.x do for b = square.frompos.y, square.topos.y do pos = {x = a, y = b, z =...
  • Ramirow

    Need Weapon Upgarde Sytem +1 +2 +3 etc

    This one? CreatureEvent - [TFS 1.1] Ultimate item stat system (elements, skills, exp, loot and more)
  • Ramirow

    Playerongainexperience error

    Hmm..I see you also have 2 functions with identical names, that's the only thing I can think of right now. local function getRateFromTable(t, level, default) for _, rate in ipairs(t) do if level >= rate.minlevel and (not rate.maxlevel or level <= rate.maxlevel) then...
Top