antiblock
Cyphriun
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
DarkWolf

[Duvida] Bonus Em Item'S Por Quest

Question

Boas pessoal quero meter um bonus num item por quest mas estou a ter dificuldades, alguem que perceba de quests que ajude ai pf:

ta ai a quest:

quest item_bonus begin

state start begin

when 40008.use begin

affect.add_collect(apply.INT, 50*60*24*365*60)

end

end

end

ou então digam ai uma forma de como por 4 bonus num item.

http://cyber-gamers.org/public/style_emoticons/default/451960.gif para quem conseguir por isto a funcionar.

Edited by Kenny (see edit history)

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

quest bonus begin

state start begin

when npc.chat."Bonus em arma" begin

say_title("By TheSubKiller")

say("Tenho o poder de adicionar um bonus a tua arma.")

say("Apenas irá custar 50kk não é nada.")

say_reward("Que dano queres?")

local a = select ( "Bonus 1" , "bonus 2" , "Cancelar" )

if a == 3 then

return

end

else a == 1 then

if pc . gold >= 50000000 then

pc . changegold ( -50000000 )

pc . add sk 1 ( id bonus , quantidade)

if pc . gold < 10000000 then

else

say("Não tens dinheiros suficiente.")

end

else a == 2 then

if pc . gold >= 50000000 then

pc . changegold ( -50000000 )

pc . add sk 1 (id bonus , quantidade)

if pc . gold < 10000000 then

else

say("Não tens dinheiros suficiente.")

end

else a == 3 then

end

end

opa nao testei isto por isso faz backup antes de testares

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 0

quest bonus begin

state start begin

when npc.chat."Bonus em arma" begin

say_title("By TheSubKiller")

say("Tenho o poder de adicionar um bonus a tua arma.")

say("Apenas irá custar 50kk não é nada.")

say_reward("Que dano queres?")

local a = select ( "Bonus 1" , "bonus 2" , "Cancelar" )

if a == 3 then

return

end

else a == 1 then

if pc . gold >= 50000000 then

pc . changegold ( -50000000 )

pc . add sk 1 ( id bonus , quantidade)

if pc . gold < 10000000 then

else

say("Não tens dinheiros suficiente.")

end

else a == 2 then

if pc . gold >= 50000000 then

pc . changegold ( -50000000 )

pc . add sk 1 (id bonus , quantidade)

if pc . gold < 10000000 then

else

say("Não tens dinheiros suficiente.")

end

else a == 3 then

end

end

opa nao testei isto por isso faz backup antes de testares

não finciona da erro no "sk"

Share this post


Link to post
Share on other sites

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