Jump to content

Search the Community

Showing results for tags 'chest'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Russian Section
    • Новости и объявления
    • Пиратия: Документация
    • Пиратия: Релизы
    • Пиратия: Разработка
    • Пиратия: Web
    • Пиратия: Помощь
    • Совместные проекты / набор команды
    • Доска объявлений
    • Программирование
    • Оффтопик
    • Корзина
  • English Section
    • News & Announcements
    • Guides
    • Releases
    • Development
    • Web
    • Questions & Help
    • Shared Projects / Team search
    • Paid services & Requests
    • Programming
    • Offtopic
    • Recycle bin
  • Portuguese Section
    • Dúvidas & Ajuda
  • Spanish Section
    • Preguntas y Ayuda
  • Servers
    • Russian servers
    • English servers

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Hello guys, I've written a script that creates a chest that gives you Reputation when you use it. The script is also explained. function ItemUse_rep_ticket ( role , item ) local curr_rep = GetChaAttr ( role , ATTR_FAME ) -- Gets the character's current reputation. [ role , ATTR_FAME ] = variable for reputation. local rep_ticket_add = 100000 -- Input here the amount of reputation you want the reputation ticket to give local after_add_rep = curr_rep + rep_ticket_add -- Calculate [after_add_rep] as curr_rep (Current Reputation) + rep_ticket_add. if curr_rep > 9999999 then -- If current reputation is over 9.99 mil, then.. SystemNotice( role , "You have over 9 Million reputation! Your account is saturated!") -- Inititate a System Message UseItemFailed ( role ) -- Fail to use the item. else -- If the current reputation is NOT over 9.99mil, then... SetCharaAttr( after_add_rep , role , ATTR_FAME ) -- Set the character's Reputation to the Calculated value (after_add_rep). end -- end the if end -- end the function This script gives you 100k reputation (you can change it by changing value of "rep_ticket_add" and will fail if the user's current reputation is over 9.99 mil, initiating a system message that says: "You have over 9 Million reputation! Your account is saturated!" Credits to Jones of BPO
×
×
  • Create New...