Probleme [Quest]

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
dLRuss
Nou Venit

Nou Venit
Mesaje: 25
Membru din: 04 Feb 2018, 00:15
Regat: Shinsoo
Aprecieri: 1  
Mulţumiri: 0
Medalii

*Problemă:Quest inel teleportare si Quest depozit (portabil si administrator)
Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:Cel de la Spyke
*Syserr:
Poză:
*Detalii suplimentare:
http://just4metin.ro/ghiduri-tutoriale/ ... t1200.html
http://just4metin.ro/quest-uri/depozit- ... it=depozit
Administrator
quest admin_depozitului begin
state start begin
when 9005.chat."Vrei sã folosesti depozitul?" begin
say_title("Administratorul depozitului:")
say ( "" )
say ( "Vrei sã folosesti depozitul?[ENTER]Va trebui sã plãtesti o sumã de bani ...[ENTER]Sunt într-o stare bunã astãzi asa cã ...[ENTER]ce zici de 500 yang?[ENTER]Deci - haide, este ieftin, huh?[ENTER]")
wait()

if pc.gold < 500 then
say_title("Administratorul depozitului:")
say ( "" )
say ( "Poftim? Nu ai destul Yang?[ENTER]Atunci revin-o când ai destul.[ENTER]" )
else
local s = select( "Plãteste" , "Nu plãtesc" )
if s == 1 then
pc.changegold(-500)
game.set_safebox_level(1)
set_state(use)

say_title("Administratorul depozitului:")
say("")
say ( "Depozitul este deschis acum. Dacã vrei sã-l[ENTER]folosesti, vino la mine. Parola este:[ENTER]")
say_reward ( "000000[ENTER]" )
say ( "Ar trebui sã o schimbi din motive de securitate![ENTER]" )
else
say_title("Administratorul depozitului:")
say( "" )
say( "Ok, dacã te rãzgândesti, revin-o.[ENTER]" )
end
end
end
end

state use begin
when 9005.chat."Deschide depozitul" begin
setskin(NOWINDOW)
game.open_safebox()
end

when 9005.chat."Deschide Magazinul de obiecte" begin
setskin(NOWINDOW)
game.open_mall()
end

when 9005.chat."Cumpãrã lingouri de aur sau argint" begin
setskin(NOWINDOW)
npc.open_shop()
end

end
end

Inel Teleportare
quest warpring begin
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local s = select("Map1", "Map2", "Valea Orcilor", "Deºert", "Sohan", "Tara de foc", "Urmãtoarele", "Închide")
if s==7 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local p = select("Turnul Demonilor", "V1", "Pãdurea Fantomelor", "Pãdurea Roºie", "Tara Gigantilor", "Grota Exilului", "Închide")
if p==1 then
x="590400"
y="110500"
elseif p==2 then
x="91900"
y="525400"
elseif p==3 then
x="289000"
y="5800"
elseif p==4 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Sfârºit", "Închide")
if t==1 then
x="1119900"
y="70800"
elseif t==2 then
x="1119200"
y="7000"
end
elseif p==5 then
x="828100"
y="763400"
elseif p==6 then
x="284200"
y="809600"
end
elseif s==1 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru","Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
elseif s==3 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Centru", "Arahani", "Închide")
if t==1 then
if e==1 then
x="402100"
y="673900"
elseif e==2 then
x="270400"
y="739900"
elseif e==3 then
x="321300"
y="808000"
end
elseif t==2 then
x="332700"
y="745600"
elseif t==3 then
x="282800"
y="792800"
end
elseif s==4 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Inceput", "Sfârºit", "Închide")
if t==1 then
if e==1 then
x="217800"
y="627200"
elseif e==2 then
x="221900"
y="502700"
elseif e==3 then
x="344000"
y="502500"
end
elseif t==2 then
x="296300"
y="547500"
end
elseif s==5 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Mijloc", "Închide")
if t==1 then
if e==1 then
x="434200"
y="290600"
elseif e==2 then
x="375200"
y="174900"
elseif e==3 then
x="491800"
y="173600"
end
elseif t==2 then
x="436200"
y="215300"
end
elseif s==6 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Închide")
if t==1 then
if e==1 then
x="599400"
y="756300"
elseif e==2 then
x="597800"
y="622200"
elseif e==3 then
x="730700"
y="689800"
end
elseif t==2 then
return
end
end
if s!=8 or p!= 7 then
pc.warp(x, y)
end
end
end
end
ImagineImagine
ImagineImagine
Afișează semnătura
Avatar utilizator
Rimex
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 182
Membru din: 31 Ian 2018, 12:23
Server: BraveS
Regat: Chunjo
Aprecieri: 3  
Mulţumiri: 354  
Discord: Copiază ID
Medalii

dLRuss scrie:*Problemă:Quest inel teleportare si Quest depozit (portabil si administrator)
Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:Cel de la Spyke
*Syserr:
Poză:
*Detalii suplimentare:
http://just4metin.ro/ghiduri-tutoriale/ ... t1200.html
http://just4metin.ro/quest-uri/depozit- ... it=depozit
Administrator
quest admin_depozitului begin
state start begin
when 9005.chat."Vrei sã folosesti depozitul?" begin
say_title("Administratorul depozitului:")
say ( "" )
say ( "Vrei sã folosesti depozitul?[ENTER]Va trebui sã plãtesti o sumã de bani ...[ENTER]Sunt într-o stare bunã astãzi asa cã ...[ENTER]ce zici de 500 yang?[ENTER]Deci - haide, este ieftin, huh?[ENTER]")
wait()

if pc.gold < 500 then
say_title("Administratorul depozitului:")
say ( "" )
say ( "Poftim? Nu ai destul Yang?[ENTER]Atunci revin-o când ai destul.[ENTER]" )
else
local s = select( "Plãteste" , "Nu plãtesc" )
if s == 1 then
pc.changegold(-500)
game.set_safebox_level(1)
set_state(use)

say_title("Administratorul depozitului:")
say("")
say ( "Depozitul este deschis acum. Dacã vrei sã-l[ENTER]folosesti, vino la mine. Parola este:[ENTER]")
say_reward ( "000000[ENTER]" )
say ( "Ar trebui sã o schimbi din motive de securitate![ENTER]" )
else
say_title("Administratorul depozitului:")
say( "" )
say( "Ok, dacã te rãzgândesti, revin-o.[ENTER]" )
end
end
end
end

state use begin
when 9005.chat."Deschide depozitul" begin
setskin(NOWINDOW)
game.open_safebox()
end

when 9005.chat."Deschide Magazinul de obiecte" begin
setskin(NOWINDOW)
game.open_mall()
end

when 9005.chat."Cumpãrã lingouri de aur sau argint" begin
setskin(NOWINDOW)
npc.open_shop()
end

end
end

Inel Teleportare
quest warpring begin
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local s = select("Map1", "Map2", "Valea Orcilor", "Deºert", "Sohan", "Tara de foc", "Urmãtoarele", "Închide")
if s==7 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local p = select("Turnul Demonilor", "V1", "Pãdurea Fantomelor", "Pãdurea Roºie", "Tara Gigantilor", "Grota Exilului", "Închide")
if p==1 then
x="590400"
y="110500"
elseif p==2 then
x="91900"
y="525400"
elseif p==3 then
x="289000"
y="5800"
elseif p==4 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Sfârºit", "Închide")
if t==1 then
x="1119900"
y="70800"
elseif t==2 then
x="1119200"
y="7000"
end
elseif p==5 then
x="828100"
y="763400"
elseif p==6 then
x="284200"
y="809600"
end
elseif s==1 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru","Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
elseif s==3 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Centru", "Arahani", "Închide")
if t==1 then
if e==1 then
x="402100"
y="673900"
elseif e==2 then
x="270400"
y="739900"
elseif e==3 then
x="321300"
y="808000"
end
elseif t==2 then
x="332700"
y="745600"
elseif t==3 then
x="282800"
y="792800"
end
elseif s==4 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Inceput", "Sfârºit", "Închide")
if t==1 then
if e==1 then
x="217800"
y="627200"
elseif e==2 then
x="221900"
y="502700"
elseif e==3 then
x="344000"
y="502500"
end
elseif t==2 then
x="296300"
y="547500"
end
elseif s==5 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Mijloc", "Închide")
if t==1 then
if e==1 then
x="434200"
y="290600"
elseif e==2 then
x="375200"
y="174900"
elseif e==3 then
x="491800"
y="173600"
end
elseif t==2 then
x="436200"
y="215300"
end
elseif s==6 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Început", "Închide")
if t==1 then
if e==1 then
x="599400"
y="756300"
elseif e==2 then
x="597800"
y="622200"
elseif e==3 then
x="730700"
y="689800"
end
elseif t==2 then
return
end
end
if s!=8 or p!= 7 then
pc.warp(x, y)
end
end
end
end
Salut uite aici în caz că vrei să faci butonul în inventar fără quest:
DaRealPain scrie:Salutare! (:

Vrei ca jucatorii de pe serverul tau sa poata accesa depozitul de oriunde ar fi dar nu vrei sa folosesti vechea metoda prin quest ci vrei sa le oferi ceva nou?
Perfect! Astazi iti voi arata cum poti face asta (:

Sa incepem:


Decripteaza locale_de si intra in source\locale\de\ui
Acolo deschide inventorywindow.py si apoi cauta

Cod: Selectaţi tot

"name" : "MallButton",
Dedesupt adauga

Cod: Selectaţi tot

{
                            "name" : "LagerButton",
                            "type" : "button",

                            "x" : 80,
                            "y" : 150,

                            "tooltip_text" : uiScriptLocale.LAGER_TITLE,

                            "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
                            "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
                            "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
                        },  
Salveaza si inchide.

In source\locale\de deschide locale_interface
Acolo cauta

Cod: Selectaţi tot

MALL_TITLE	Depozit Item-Shop
Si pune dedesupt

Cod: Selectaţi tot

LAGER_TITLE    Depozit Normal
Salveaza si inchide.

Acum decriptati root
Acolo deschideti uiinventory.py si cautati

Cod: Selectaţi tot

self.mallButton = self.GetChild2("MallButton")
Dedesubt adaugati

Cod: Selectaţi tot

self.LagerButton = self.GetChild2("LagerButton")
Apoi cautati

Cod: Selectaţi tot

if self.mallButton:
            self.mallButton.SetEvent(ui.__mem_func__(self.ClickMallButton))
Dedesubt puneti

Cod: Selectaţi tot

if self.LagerButton:
            self.LagerButton.SetEvent(ui.__mem_func__(self.ClickLagerButton))
Cautati

Cod: Selectaţi tot

def ClickMallButton(self):
        print "click_mall_button"
        net.SendChatPacket("/click_mall")
Si puneti dedesubt

Cod: Selectaţi tot

def ClickLagerButton(self):
        import event
        event.QuestButtonClick(69)
!!! Atentie !!! 69 arata indexul questului
Mai multe despre mai jos:

Adaugati un nou quest pe server

Cod: Selectaţi tot

Continutul sa arate asa quest lagerbutton begin
    state start begin
        when button or info begin
            game.open_safebox()
        end
    end
end
Dupa adaugati numele questului in quest_list
!!! La mine questul se afla pe randul 69 in quest_list, de accea am pus 69 mai sus. Daca la voi se afla pe alt rand trebuie sa schimbati acolo !!!


Refresh la questuri, reboot!
Daca ati facut totul corect o sa arate asa in joc!

[img]http://puu.sh/4QYWl.jpg[/img]
(La voi o sa apara textul in romana!Eu nu am un server romanesc sa testez de accea am facut pe unul german)

Daca va-m fost de ajutor lasati un comentariu sau un "multumesc" ^.^[/color]

2.Depozit protabil cu , quest:
-------------------------------------------------------------------
--- Quest realizat de Donici Cãtãlin @ Just4Metin.ro ----
-------------------------------------------------------------------
quest depozit begin
state start begin
when login begin
send_letter("Depozit Portabil")
end
when info or button begin
say_title("Depozit Portabil:")
say_verde("Vrei sã deschizi depozitul?")
say("")
local a= select("Da","Nu")
if 1==a then
game.open_safebox()
send_letter("Depozit Portabil")
elseif 2==a then
send_letter("Depozit Portabil")
end
end
end
end
Imagine
Afișează semnătura
Avatar utilizator
Kid0
Veteran

Veteran
Mesaje: 1420
Membru din: 12 Aug 2015, 13:33
Server: restoria2(ex)
Regat: Shinsoo
Aprecieri: 39  
Mulţumiri: 13  
Discord: Copiază ID
 Contact:
Medalii

Inactiv, arhivat.
Imagine
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
199
Răspunsuri
9
Vizualizări
464
Răspunsuri
3
Vizualizări
375
Răspunsuri
3
Vizualizări
356

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider], Google [Bot] și 126 vizitatori