Tipologie server(PvM / PvP): -
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr: -
Poză: -
*Detalii suplimentare: Imi puteti face un quest pentru strigare cal (Imagine cal + cartea cailor armati + cartea cailor militari)? De 3 zile ma chinui cu acest quest si nu reusesc nici cum sa il fac sa functioneze. Am modificat si cel de la Twix, dar nimic, mi-am facut proptiul quest, dar nimic. Va rog sa imi faceti voi un quest doar pentru chemarea tuturor tipurilor de cal.
Quest modificat:
Cod: Selectaţi tot
quest cheama_calul begin
state start begin
function get_horse_summon_prob_pct()
local skill_level=pc.get_skill_level(131)
if skill_level==1 then
return 15
elseif skill_level==2 then
return 20
elseif skill_level==3 then
return 30
elseif skill_level==4 then
return 40
elseif skill_level==5 then
return 50
elseif skill_level==6 then
return 60
elseif skill_level==7 then
return 70
elseif skill_level==8 then
return 80
elseif skill_level==9 then
return 90
elseif skill_level>=10 then
return 100
end
return 10
end
when 50051.use with horse.get_grade()==0 begin
say_title("Imagine de cal")
----"12345678901234567890123456789012345678901234567890"|
say("")
say_galben("(Ro)")
say_rosu("In acest moment nu deti un cal.")
say_alb("Incearca dupa ce ai unul.")
say_galben("(En)")
say_rosu("At this moment you do not have a horse.")
say_alb("Try again after you obtain a horse!")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Daca doresti sa chemi un cal, asigura-te ca ai unul!")
say_chat("(En) If you want to call a horse, make sure you have one!")
end
when 50051.use with horse.get_grade()==1 begin
if pc.get_map_index() == 113 or pc.get_map_index() == 26 or pc.get_map_index() == 211 then
say_title("Imagine de cal")
say("")
say_galben("(Ro)")
say_rosu("Nu poti folosi acest obiect, in aceasta mapa!")
say_galben("(En)")
say_rosu("You can not use this object in this map!")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acest obiect, in aceasta mapa!")
say_chat("(En) You can not use this object in this map!")
else
if pc.getsp()>=100 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
say_title("Imagine de cal")
say("")
say_galben("(Ro)")
say_verde2("Calul tau a fost chemat cu succes!")
say_galben("(En)")
say_verde2("Your horse has been successfully called!")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Cal chemat cu succes!")
say_chat("(En) Your horse has been successfully called!")
horse.summon()
else
say_chat("_________________________________________________")
say_chat("NoName system:")
-----------"12345678901234567890123456789012345678901234567890"|
say_chat("(Ro) Calul nu a fost chemat! (Mai incearca!)")
say_chat("(En) The horse was not called! (Try again!)")
end
pc.change_sp(-100)
else
say_title("Imagine de cal")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu ai suficienta mana pentru a chema calul!")
say_galben("(En)")
say_rosu("You don't have enought mana to call the horse!")
say("")
say("")
say("")
say("")
say("")
say_reward("100 PM")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu ai suficienta mana pentru a chema calul! (Ai nevoie de 100 PM)")
say_chat("(En) You don't have enought mana to call the horse! (You need 100 PM)")
end
end
end
when 50051.use with horse.get_grade()==2 begin
say_title("Imagine de cal")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi acest obiect!")
say_alb("Va rugam sa folositi Pergamentul cailor armati.")
say_galben("(En)")
say_rosu("You can not use this object!")
say_alb("Please use Pergamentul cailor armati.")
say("")
say("")
say("")
say_reward("Pergamentul c.armati = (En)Combat horse parchment")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acest obiect!")
say_chat("(En) You can not use this object!")
end
when 50051.use with horse.get_grade()==3 begin
say_title("Imagine de cal")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi acest obiect!")
say_alb("Va rugam sa folositi Cartea cailor militari.")
say_galben("(En)")
say_rosu("You can not use this object!")
say_alb("Please use Cartea cailor militari.")
say("")
say("")
say("")
say_reward("Cartea cailor militari = (En)Military Horse Book")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acest obiect!")
say_chat("(En) You can not use this object!")
end
when 50052.use with horse.get_grade()==0 begin
say_title("Pergamentul cailor armati")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("In acest moment nu deti un cal.")
say_alb("Incearca dupa ce ai unul.")
say_galben("(En)")
say_rosu("At this moment you do not have a horse.")
say_alb("Try again after you obtain a horse!")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Daca doresti sa chemi un cal, asigura-te ca ai unul!")
say_chat("(En) If you want to call a horse, make sure you have one!")
end
when 50052.use with horse.get_grade()==1 begin
say_title("Pergamentul cailor armati")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi aceast pergament!")
say_alb("Va rugam sa folositi obiectul Imagine de cal.")
say_galben("(En)")
say_rosu("You can not use this parchment!")
say_alb("Please use Imagine de cal.")
say("")
say("")
say("")
say_reward("Imagine de cal = (En)Horse image")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi aceast pergament!")
say_chat("(En) You can not use this parchment!")
end
when 50052.use with horse.get_grade()==2 begin
if pc.get_map_index() == 113 or pc.get_map_index() == 26 or pc.get_map_index() == 211 then
say_title("Pergamentul cailor armati")
say("")
say_galben("(Ro)")
say_rosu("Nu poti folosi aceast pergament, in aceasta mapa!")
say_galben("(En)")
say_rosu("You can not use this parchment in this map!")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi aceast pergament, in aceasta mapa!")
say_chat("(En) You can not use this parchment in this map!")
else
if pc.getsp()>=200 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
say_title("Pergamentul cailor armati")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_verde2("Calul tau armat a fost chemat cu succes!")
say_galben("(En)")
say_verde2("Your armored horse has been successfully called!")
say("")
say("")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Calul tau armat a fost chemat cu succes!")
say_chat("(En) Your armored horse has been successfully called!")
horse.summon()
else
-----------"12345678901234567890123456789012345678901234567890"|
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Calul nu a fost chemat! (Mai incearca!)")
say_chat("(En) The horse was not called! (Try again!)")
end
pc.change_sp(-200)
else
say_title("Pergamentul cailor armati")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu ai suficienta mana pentru a chema calul!")
say_galben("(En)")
say_rosu("You don't have enought mana to call the horse!")
say("")
say("")
say("")
say("")
say("")
say_reward("200 PM")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu ai suficienta mana pentru a chema calul! (Ai nevoie de 200 PM)")
say_chat("(En) You don't have enought mana to call the horse! (You need 200 PM)")
end
end
end
when 50052.use with horse.get_grade()==3 begin
say_title("Pergamentul cailor armati")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi acest obiect!")
say_alb("Va rugam sa folositi Cartea cailor militari.")
say_galben("(En)")
say_rosu("You can not use this object!")
say_alb("Please use Cartea cailor militari.")
say("")
say("")
say("")
say_reward("Cartea c. militari = (En)Military horse book")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acest pergament!")
say_chat("(En) You can not use this parchment!")
end
when 50053.use with horse.get_grade()==0 begin
say_title("Cartea cailor militari")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("In acest moment nu deti un cal.")
say_alb("Incearca dupa ce ai unul.")
say_galben("(En)")
say_rosu("At this moment you do not have a horse.")
say_alb("Try again after you obtain a horse!")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Daca doresti sa chemi un cal, asigura-te ca ai unul!")
say_chat("(En) If you want to call a horse, make sure you have one!")
end
when 50053.use with horse.get_grade()==1 begin
say_title("Cartea cailor militari")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi acesta carte!")
say_alb("Va rugam sa folositi obiectul Imagine de cal.")
say_galben("(En)")
say_rosu("You can not use this book!")
say_alb("Please use Imagine de cal.")
say("")
say("")
say("")
say_reward("Imagine de cal = (En)Horse image")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acesta carte!")
say_chat("(En) You can not use this book!")
end
when 50053.use with horse.get_grade()==2 begin
say_title("Cartea cailor militari")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu poti folosi acesta carte!")
say_alb("Va rugam sa folositi Pergamentul cailor armati.")
say_galben("(En)")
say_rosu("You can not use this book!")
say_alb("Please use Pergamentul cailor armati.")
say("")
say("")
say("")
say_reward("Pergamentul c.armati = (En)Combat horse parchment")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acesta carte!")
say_chat("(En) You can not use this book!")
end
when 50053.use with horse.get_grade()==3 begin
if pc.get_map_index() == 113 or pc.get_map_index() == 26 or pc.get_map_index() == 211 then
say_title("Cartea cailor militari")
say("")
say_galben("(Ro)")
say_rosu("Nu poti folosi acesta carte, in aceasta mapa!")
say_galben("(En)")
say_rosu("You can not use this book in this map!")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti folosi acesta carte, in aceasta mapa!")
say_chat("(En) You can not use this book in this map!")
else
if pc.get_map_index() >= 1100000 and pc.get_map_index() < 1200000 then
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu poti chema un animal intr-o mapa de razboi!")
say_chat("(En) You can not call an animal in a war map!")
return
end
if pc.getsp()>=300 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
say_title("Cartea cailor militari")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_verde2("Calul tau militar a fost chemat cu succes!")
say_galben("(En)")
say_verde2("Your military horse has been successfully called!")
say("")
say("")
say("")
say("")
say("")
say("")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Cal militar chemat cu succes!")
say_chat("(En) Your military horse has been successfully called!")
horse.summon()
else
say_chat("_________________________________________________")
say_chat("NoName system:")
-----------"12345678901234567890123456789012345678901234567890"|
say_chat("(Ro) Calul nu a fost chemat! (Mai incearca!)")
say_chat("(En) The horse was not called! (Try again!)")
end
pc.change_sp(-300)
else
say_title("Informatie:")
say("")
-----------"12345678901234567890123456789012345678901234567890"|
say_galben("(Ro)")
say_rosu("Nu ai suficienta mana pentru a chema calul!")
say_galben("(En)")
say_rosu("You don't have enought mana to call the horse!")
say("")
say("")
say("")
say("")
say("")
say_reward("300 PM")
say_verde2("NoName")
say_chat("_________________________________________________")
say_chat("NoName system:")
say_chat("(Ro) Nu ai suficienta mana pentru a chema calul! (Ai nevoie de 300 PM)")
say_chat("(En) You don't have enought mana to call the horse! (You need 300 PM)")
end
end
end
end
state __COMPLETE__ begin
when enter begin
q.done()
end
end
end



