Jump to content

Recommended Posts

Posted
quest bonus begin
state start begin
when ItemVnum.use begin
say_title("Bonus")
say("")
say("Hola "..pc.get_name().." aqui puedes activar un bonus")
say("Puedo darte 10.000 de HP")
say("")
say_reward("Realmente quieres usar este item")
 
local uso = select ("Claro" , "No")
 
if uso == 1 then
if get_time() < pc.getqf("time") then
say("Lo siento no puedes duplicar su uso")
return
end
affect.add_collect(apply.MAX_HP, 10000, 3600)
pc.setqf("time", get_time() + 3600)
pc.remove_item(ItemVnum, 1)
end
end
end
end
 
 
 
esta sin probar xD pero tiene que servir
  • 1 month later...
Posted

 

quest bonus begin
state start begin
when ItemVnum.use begin
say_title("Bonus")
say("")
say("Hola "..pc.get_name().." aqui puedes activar un bonus")
say("Puedo darte 10.000 de HP")
say("")
say_reward("Realmente quieres usar este item")
 
local uso = select ("Claro" , "No")
 
if uso == 1 then
if get_time() < pc.getqf("time") then
say("Lo siento no puedes duplicar su uso")
return
end
affect.add_collect(apply.MAX_HP, 10000, 3600)
pc.setqf("time", get_time() + 3600)
pc.remove_item(ItemVnum, 1)
end
end
end
end
 
 
 
esta sin probar xD pero tiene que servir

 

para que sea ej Fuerza o otra cosa Ponemos nomas STR ? 

o ejemplo exp EXP_DOUBLE_BONUS?

Posted

para que sea ej Fuerza o otra cosa Ponemos nomas STR ? 

o ejemplo exp EXP_DOUBLE_BONUS?

SI te dejo la tabla básica:

 

 

   ["MAX_HP"] = 1,    ["MAX_SP"] = 2,    ["CON"] = 3,    ["INT"] = 4,    ["STR"] = 5,    ["DEX"] = 6,    ["ATT_SPEED"] = 7,    ["MOV_SPEED"] = 8,    ["CAST_SPEED"] = 9,    ["HP_REGEN"] = 10,    ["SP_REGEN"] = 11,    ["POISON_PCT"] = 12,    ["STUN_PCT"] = 13,    ["SLOW_PCT"] = 14,    ["CRITICAL_PCT"] = 15,    ["PENETRATE_PCT"] = 16,    ["ATTBONUS_HUMAN"] = 17,    ["ATTBONUS_ANIMAL"] = 18,    ["ATTBONUS_ORC"] = 19,    ["ATTBONUS_MILGYO"] = 20,    ["ATTBONUS_UNDEAD"] = 21,    ["ATTBONUS_DEVIL"] = 22,    ["STEAL_HP"] = 23,    ["STEAL_SP"] = 24,    ["MANA_BURN_PCT"] = 25,    ["DAMAGE_SP_RECOVER"] = 26,    ["BLOCK"] = 27,    ["DODGE"] = 28,    ["RESIST_SWORD"] = 29,    ["RESIST_TWOHAND"] = 30,    ["RESIST_DAGGER"] = 31,    ["RESIST_BELL"] = 32,    ["RESIST_FAN"] = 33,    ["RESIST_BOW"] = 34,    ["RESIST_FIRE"] = 35,    ["RESIST_ELEC"] = 36,    ["RESIST_MAGIC"] = 37,    ["RESIST_WIND"] = 38,    ["REFLECT_MELEE"] = 39,    ["REFLECT_CURSE"] = 40,    ["POISON_REDUCE"] = 41,    ["KILL_SP_RECOVER"] = 42,    ["EXP_DOUBLE_BONUS"] = 43,    ["GOLD_DOUBLE_BONUS"] = 44,    ["ITEM_DROP_BONUS"] = 45,    ["POTION_BONUS"] = 46,    ["KILL_HP_RECOVER"] = 47,    ["IMMUNE_STUN"] = 48,    ["IMMUNE_SLOW"] = 49,    ["IMMUNE_FALL"] = 50,    ["SKILL"] = 51,    ["BOW_DISTANCE"] = 52,    ["ATT_GRADE_BONUS"] = 53,    ["DEF_GRADE_BONUS"] = 54,    ["MAGIC_ATT_GRADE"] = 55,    ["MAGIC_DEF_GRADE"] = 56,    ["CURSE_PCT"] = 57,    ["MAX_STAMINA"] = 58,    ["ATTBONUS_WARRIOR"] = 59,    ["ATTBONUS_ASSASSIN"] = 60,    ["ATTBONUS_SURA"] = 61,    ["ATTBONUS_SHAMAN"] = 62,    ["ATTBONUS_MONSTER"] = 63,    ["MALL_EXPBONUS"]   = 66,    ["MAX_HP_PCT"]  = 69,    ["MAX_SP_PCT"]  = 70,     ["MALL_DEFBONUS"] = 65,     ["NORMAL_HIT_DEFEND_BONUS"] = 74,
Posted (edited)

xD perdón por el doble post he hecho está es mas corta que la de ares, está solamente le das click izquierdo y te da el bonus ya no te salta el texto BLA BLA BLA

 

Tuve un error me falto un "end"

quest piruleta_yagami beginstate start beginwhen VNUMITEM.use begin affect.add_collect(apply.MAX_HP, 500, 60*12)affect.add_collect(apply.CRITICAL_PCT, 10, 60*12)pc.remove_item("VNUMITEM", 1)chat("Has usado el poder de tu piruleta!")endendend
Edited by -YC-
  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.