Lua Auction System + Upgrade System

Discussion in 'Support' started by samandriel, Sep 9, 2018.

  1. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    I do have 2 system i found here on forum...
    I love both and i want to use both together, but idk how, so i need help of someone who have experience in here

    system 1: upgrade your items, one by one, add more armor,attack,defense...
    /lib/upgradesystem.lua
    hastebin

    system 2: auction system, is like a market, trade offline to a 8.60 server
    /talkactions/scripts/auctionsystem.lua
    hastebin
    (from here: TalkAction - Offline player to player item trader (Auction System). , allmost all bigs ot 8.6 uses this, so if someone help me could help a lot others guys)

    What is my problem? If i put a upgraded item on auction system it lose the upgrade...

    What do i need to do?
    My idea was add a new row:
    Code (Text):
    1.  
    2. ALTER TABLE `auction_system` ADD `upgrade_level` INT NOT NULL DEFAULT '0' AFTER `date`;
    3.  
    And if item is upgraded change upgrade lvl to 1,2,3 and somehow uses it on add,buy,remove item from auction system
    And shows on website
    But i don't have experience enough to do alone, anybody can help?


    Full script?
    Perfect Upgrade System
     
    Last edited: Sep 18, 2018
  2. demonrage

    demonrage New Member

    Joined:
    Oct 28, 2014
    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    or friend, how do I change to what is + 1 + 2 + 3?
    instead of being legendary, godlike ... and also how do I get the number to be in front of the item name ex :( sword of broken + 1)
     
  3. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Here you are: hastebin

    /\ guys it's not about my topic, this guy just ask to another help,a edit in the script...
     
  4. demonrage

    demonrage New Member

    Joined:
    Oct 28, 2014
    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    here appears on the site all white, could you please review the code!
     
  5. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    tell me your problem in your moon language, send me PM i'll do whatever i do know to do to try to help you...
    but let this topic to someone who can help me pls
     
  6. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  7. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  8. supergt

    supergt Member

    Joined:
    May 11, 2017
    Messages:
    65
    Likes Received:
    22
    Best Answers:
    0
    Thats a good feature to have in a server, especially with a auction system...
    Could you share your full code of this upgrade system, because if you have the solution in here, we could use too
     
    samandriel likes this.
  9. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Sure! I've edit the main post with the full script link
     
  10. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  11. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  12. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  13. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  14. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  15. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  16. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  17. samandriel

    samandriel Member

    Joined:
    Oct 19, 2016
    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
  18. supergt

    supergt Member

    Joined:
    May 11, 2017
    Messages:
    65
    Likes Received:
    22
    Best Answers:
    0
    Is anyone can help with a getUpgradedLevel function or something? I wanna use it too...
     
  19. Sarah Wesker

    Sarah Wesker ค∂vαηcε รүηтαx ❤

    Joined:
    Mar 16, 2017
    Messages:
    313
    Likes Received:
    142
    Best Answers:
    22
    Code (Text):
    1.  
    2. [email protected] el level de upgrade del item
    3. --#Return number
    4. function Item.getUpgradeLevel(item)
    5.     local name = item:getName():split('+')
    6.     if (#name > 1) then
    7.         return math.abs(name[2])
    8.     end
    9.     return 0
    10. end
    example:
    Code (Text):
    1.  
    2. You see a sword +1 (Atk:14, Def:12 +1).
    3. It weighs 35.00 oz.
    4.  
    ^^^^
    Code (Text):
    1.  
    2. local level = item:getUpgradeLevel()
    3. print(level) ==> 1
    4.  
     
    supergt likes this.
  20. supergt

    supergt Member

    Joined:
    May 11, 2017
    Messages:
    65
    Likes Received:
    22
    Best Answers:
    0
    This get the number after the '+', but if i dont use numbers?
    If i want to use like on his script
    Code (Text):
    1.  
    2.    nameLv = {
    3.        [1] = "legendary",
    4.        [2] = "unstopable",
    5.        [3] = "godlike"
    6.    },
    7.  
    How to do?

    legendary sabre (atk:12...
     

Share This Page

Loading...