
problema quest
- Yahiko
-

- Mesaje: 3865
- Membru din: 25 Mai 2015, 18:31
- Aprecieri: 0
- Mulţumiri: 4857
- Discord: Copiază ID
- Contact:
Pune questul aici.
Cod: Selectaţi tot
quest meleylair begin
state start begin
when 20419.chat."The Sung Mahi dragons?" with pc.get_map_index() == MeleyLair.GetSubMapIndex() begin
say_title(mob_name(20419))
say("")
say("Mã tem cã mulþi nu vor mai apuca zorii de zi.")
say("")
say("Sung-Mahi, zeul demonilor, s-a reîntors... ºi cu cei")
say("3 dragoni ai sãi. Se hrãnesc cu sufletele oamenilor. ")
say("De îndatã ce au devorat suficient, îi sporesc puterile")
say("lui Sung Mahi. Iar asta...înseamnã sfârºitul. Pentru")
say("noi toþi. Nu putem permite sã se întâmple una ca asta!")
say("Dar va fi nevoie de ceva mai mult decât un singur ")
say("rãzboinic curajos.")
say("")
say("Doar puterea unitã a unei bresle poate sã þinã piept ")
say("acestor bestii înfricoºãtoare. Ne poþi ajuta? Cunoºti")
say("ºi alþi aventurieri la fel de curajoºi ca tine?")
wait()
say_title(mob_name(20419))
say("")
say("Trebuie avertizaþi! Am auzit poveºti înfricoºãtoare ")
say("despre cei ce vor sã înfrunte dragonii.")
say("Nu s-au mai întors niciodatã...")
end
when 20419.chat."Fight the Sung Mahi dragons!" with pc.get_map_index() == MeleyLair.GetSubMapIndex() and pc.is_guild_master() begin
say_title(mob_name(20419))
say("")
local registered, channel = MeleyLair.IsRegistered()
if registered then
say(string.format("You're guild is already registered! You can access[ENTER]the shelter from CH %d.[ENTER]", channel))
return
end
local requirment1, requirment2 = MeleyLair.GetRequirments()
say("To fight against Sung Mahi dragons you have to register")
say("the guild.")
say("")
say("To register you need following requirments:")
say(string.format("- Guild must be at least level %d.", requirment1))
say(string.format("- Guild must have at least %d ladder points.", requirment2))
say("")
say("Do you want to register?")
local menu = select("Yes", "No")
if menu == 1 then
local result1, result2 = MeleyLair.Register()
if result1 == 0 then
setskin(NOWINDOW)
return
end
local resultMsg = {
[1] = "You're guild is already registered! You can access[ENTER]the shelter from CH %d.",
[2] = "You're guild is implicated yet in another dungeon[ENTER]try again later!",
[3] = "You're guild need to be at least level %d to can[ENTER]register it.",
[4] = "You're guild need to have at least %d ladder points to[ENTER]can register it.",
[5] = "The guild wasn't registered, dungeon map can't be created[ENTER]please contact our staff.",
[6] = "You're guild was registered, if you defeat the dragons,[ENTER]%d ladder points will be returned to the guild.",
[7] = "You can register you're guild in %s.",
}
say_title(mob_name(20419))
say("")
if result1 != 2 and result1 != 5 then
if result1 == 7 then
local hours = string.format("%02.f", math.floor(result2 / 3600));
local minutes = string.format("%02.f", math.floor(result2 / 60 - (hours * 60)));
local seconds = string.format("%02.f", math.floor(result2 - hours * 3600 - minutes * 60));
local timeConv = string.format(hours..":"..minutes..":"..seconds)
say(string.format(resultMsg[result1], timeConv))
else
say(string.format(resultMsg[result1], result2))
end
else
say(resultMsg[result1])
end
else
setskin(NOWINDOW)
return
end
end
when 20419.chat."Go inside shelter!" with pc.get_map_index() == MeleyLair.GetSubMapIndex() and pc.has_guild() begin
say_title(mob_name(20419))
say("")
say("Do you want to go inside shelter?")
say("")
local agree = select("Yes", "No")
if agree == 1 then
local registered, limit = MeleyLair.Enter()
if not registered and limit == 0 then
say_title(mob_name(20419))
say("")
if pc.is_guild_master() then
say("You must register the guild to can have access to[ENTER]the shelter.")
else
say("The guild leader must register the guild to can[ENTER]have access to the shelter.")
end
return
elseif not registered and limit > 0 then
say_title(mob_name(20419))
say("")
say(string.format("You can access the shelter from CH %d.", limit))
return
elseif limit == 1 then
say_title(mob_name(20419))
say("")
say(string.format("You can't access the shelter because there are[ENTER]yet %d guild members inside.[ENTER]", MeleyLair.GetPartecipantsLimit()))
return
elseif limit == 2 then
say_title(mob_name(20419))
say("")
say("There are a problem, please contact our staff.")
return
elseif limit == 3 then
say_title(mob_name(20419))
say("")
say("The dungeon is already finished.")
return
elseif limit == 4 then
say_title(mob_name(20419))
say("")
say("To can join the run you must have the combatent")
say("status checking in guild.")
return
end
return
else
setskin(NOWINDOW)
return
end
end
end
end- [RaffaeL]
-

- Mesaje: 3223
- Membru din: 19 Mar 2016, 12:58
- Server: ...
- Aprecieri: 15
- Mulţumiri: 2502
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Scoate say("") fara text din quest..ShadoW scrie:cum pot face ca latimea textului sa fie mai mare?
Elimina [ENTER].
pune wait() dupa maxim 10 linii, si poti crea cate pagini doresti.
Alternativ, poti adauga un background ca addimage care sa aiba dimensiunile potrivite pentru a incadra intregul text.
- [RaffaeL]
-

- Mesaje: 3223
- Membru din: 19 Mar 2016, 12:58
- Server: ...
- Aprecieri: 15
- Mulţumiri: 2502
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Nu am inteles de la inceput ce doreai....ShadoW scrie:inteleg , dar ma totusi as vrea sa stiu cum s-ar putea lungi textul , ca nu puneam problema daca nu voiam un raspuns
Pentru a mari thinboard-ul, adauga in quest inainte de primul say(""):
Cod: Selectaţi tot
say_size(x,y)Ca exemplu incearca:
Cod: Selectaţi tot
say_size(300,450)Stiu de asta ; asta schimba marimea board.ului , insa vreau ca liniile sa fie mai lungi sa mai incapa cateva caractere pe linii si nu stiu de unde sa modific numarul maxim de caractere de pe o linie[RaffaeL] scrie:Nu am inteles de la inceput ce doreai....ShadoW scrie:inteleg , dar ma totusi as vrea sa stiu cum s-ar putea lungi textul , ca nu puneam problema daca nu voiam un raspuns
Pentru a mari thinboard-ul, adauga in quest inainte de primul say(""):unde x=latime(numar); y=lungime(inaltime)(numar)Cod: Selectaţi tot
say_size(x,y)
Ca exemplu incearca:Cod: Selectaţi tot
say_size(300,450)
Edit. Am gasit asta pe un site la un quest tool. La asta ma refer eu
I don't remember how many character you can have foreach line, so I set 60 (Edit: changed to 52). If its not the default value, tell me, I'll change it.
[ Postat de pe Android ]

- Hades ✔
-

- Mesaje: 3363
- Membru din: 22 Aug 2016, 18:35
- Server: Hades World
- Aprecieri: 104
- Mulţumiri: 824
- Discord: Copiază ID
- Contact:
Subiect Inactiv. Mutat în "Arhivă".
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Google [Bot] și 62 vizitatori




