antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Slender_Man

Maxmi 4.1 Reset Status Em Pt

1 post in this topic

Translate:

 

gameforge.reset_status = {}gameforge.reset_status._100_say = "Continuar "gameforge.reset_status._10_say = "Vitalidade "gameforge.reset_status._110_say = "Cancelar "gameforge.reset_status._120_say = "Resetou os status com susseso! "gameforge.reset_status._130_say = "O reset dos status fallou! "gameforge.reset_status._20_say = "Inteligencia "gameforge.reset_status._30_say = "Força "gameforge.reset_status._40_say = "Destreza "gameforge.reset_status._50_say = "Atualmente tem o valor 1. "gameforge.reset_status._60_say = "Você não pode redefinir. "gameforge.reset_status._70_say = "Serão restituídos a 1. "gameforge.reset_status._80_say = "Os pontos restantes não será afetados "gameforge.reset_status._90_say = "Queres continuar? " 

 

Quest:

 

quest reset_status begin    state start begin        when 71103.use or 71104.use or 71105.use or 71106.use begin            local name = { gameforge.reset_status._10_say, gameforge.reset_status._20_say, gameforge.reset_status._30_say, gameforge.reset_status._40_say}            local idx = item.get_vnum() - 71103            local func = { pc.get_ht, pc.get_iq, pc.get_st, pc.get_dx }            if func[idx+1]() == 1 then				say_title(gameforge.reset_scroll._10_sayTitle)                say(name[idx+1]..gameforge.reset_status._50_say)                say(name[idx+1]..gameforge.reset_status._60_say)                say("")                return            end					say_title(gameforge.reset_scroll._10_sayTitle)            say(name[idx+1]..gameforge.reset_status._70_say)            say(gameforge.reset_status._80_say)            say("")            say(gameforge.reset_status._90_say)		            say("")            local s = select(gameforge.reset_status._100_say, gameforge.reset_status._110_say)            if s == 1 then                if pc.reset_status( idx ) == true then					say_title(gameforge.reset_scroll._10_sayTitle)                    say(gameforge.reset_status._120_say)                    pc.remove_item(item.get_vnum())                else					say_title(gameforge.reset_scroll._10_sayTitle)                    say(gameforge.reset_status._130_say)                end            end        end    endend 

Share this post


Link to post
Share on other sites
antiblock
diamwall

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this