DryUz Posted November 6, 2012 Report Share Posted November 6, 2012 Este es un sistema gremial cuenta funciona sin el Mysql. Todo va con la bandera evento `s, etc. ¿Funciona de esta manera: Como lÃder del clan puede ser una "cuenta gremio" abrirlo tiene que introducir un PIN de 5 dÃgitos con esto usted puede entonces posteriormente administrar el dinero en la cuenta. Ahora, para las funciones: el hombre puede como miembro de un gremio (si tienen una cuenta) instruir Yang. Como director / propietario del PIN `s puede enviar el dinero a la gente * SOLO SI EN EL MISMO PLANO / solo tiene que traducirlo yo no tengo tiempo!... [/color] function pc.change_money_for_other_pc(name,betrag) local name2 = pc.get_name() local m local d = pc.select(find_pc_by_name(name)) m = pc.get_gold() pc.select(d) if m+betrag >= 2*10^9 then say("Er hat zu viel Geld") return end local d = pc.select(find_pc_by_name(name)) pc.change_money(betrag) chat('Du hast von '..name2..' '..betrag..' Yang erhalten!') pc.select(d) end [color=#ffd700] Las funciones aquà en la misión. pc.change_money_for_other_pc() Y aquà está la búsqueda quest konto begin state start begin when 20020.chat."Gilden Konto" begin if pc.getqf("konto") == 0 and pc.is_guild_master() then say("Du hast noch kein Konto fuer deine Gilde gemacht") say("Willst du das jetzt tun?") local a = select ("Ja","Nein") if a == 2 then return elseif a == 1 then say("Bitte gib einen Pin ein der fuer deine Gilde gillt") say("Die Leute die diesen Pin besitzen koennen das Geld") say("auf dem Konto verwalten.") say("Er muss 5 Stellig sein!!!") local pin_eing = tonumber(input("12345")) if pin_eing > 9999 and pin_eing < 100000 then say("") say("Dieser Pin ist ok!") say("") say_reward("Pin " ..pin_eing.. " Speichern?") local sel=select("Ja", "Nein") if sel==1 then game.set_event_flag(pc.get_guild().."_pin",pin_eing) game.set_event_flag(pc.get_guild(),1) say("") say("Pin wurde gespeichert.") say("Bis bald mal.") pc.setqf("konto",1) elseif sel==2 then say("") say("Bis bald mal.") else -- Fehler abfangen! say("Unbekannter Fehler!") say("Bitte umgehend mit ihren") say("Fehler Code beim Serverleiter") say("melden!") say("Fehler Code: 1") end elseif pin_eing > 99999 or pin_eing == 0 or pin_eing < 10000 then say("") say("Tut mir leid doch irgendwas stimmt nicht mit") say("deiner Pin.") say("") say_reward("Info: Pin darf nur Zahlen enthalten!") say_reward("Info: Pin darf nicht größer als 99999") say_reward("oder kleiner als 10000 sein!") end end end if game.get_event_flag(pc.get_guild()) == 1 then say("Willkommen im Gildenkontosystem") say("Du kannst hier Geld einweisen und als Leader mit dem PIN verwalten") say("Was willst du tun ?") local a = select ("Einweisen","Verwalten mit PIN","Abbrechen") if a == 3 then return elseif a == 1 then say("Du willst also geld einweinsen.") say("Wie viel Yang willst du auf dein Konto einzahlen?") say("Maximal 1.999.999.999!") say("") say_reward("Dabei: " ..pc.get_money()) say("") local geld_auf_konto = tonumber(input("")) local auf_konto_new = tonumber(geld_auf_konto) + game.get_event_flag(pc.get_guild().."_konto_yang") if geld_auf_konto < 0 then say("") say("Das geht leider nicht.") else if pc.get_money() < geld_auf_konto then say("") say("Soviel hast du garnicht dabei.") return else if auf_konto_new < 2000000000 then pc.change_money(-geld_auf_konto) game.set_event_flag(pc.get_guild().."_konto_yang", auf_konto_new) say("") say("Ich habe " ..geld_auf_konto.. " Yang auf dein Konto getan.") else say("") say("Soviel kannst du nicht aufs Konto") say("machen. Das würde die Maximal menge") say("von 1.999.999.999 überschreiten.") end end end elseif a == 2 then say("") say("Bitte Pin eingeben.") local pin_abf = tonumber(input("")) if pin_abf == game.get_event_flag(pc.get_guild().."_pin") then say("") say("Pin ist Korrekt.") say("Wie viel Yang willst du vom Konto abheben?") say("") say_reward("Auf Konto: " ..game.get_event_flag(pc.get_guild().."_konto_yang")) say("") local geld_von_konto = tonumber(input("")) if geld_von_konto < 0 then say("") say("Das geht leider nicht.") else if geld_von_konto > game.get_event_flag(pc.get_guild().."_konto_yang") then say("") say("Soviel hast du nicht auf deinem Konto.") elseif geld_von_konto <= game.get_event_flag(pc.get_guild().."_konto_yang") then say("Wemm willst du das geben ?") say("Gib bitte etwas ein") local name2 = input() if find_pc_by_name(name2) == 0 or find_pc_by_name(name2) == nil then say("Die Person ist nicht online") return end local auf_konto_new = tonumber(game.get_event_flag(pc.get_guild().."_konto_yang") - geld_von_konto) say("Das Geld wurde ihm gegeben.") pc.change_money_for_other_pc(name2,geld_von_konto) game.set_event_flag(pc.get_guild().."_konto_yang", auf_konto_new) end end else say("") say("Falscher Pin.") end end end end end end La búsqueda está trabajando otra vez. Diga nuevas caracterÃsticas tales como PIN Cambiar todos los miembros de todo el dinero que se atribuya. Mas cosas mias Debes iniciar sesión para ver el contenido del enlace en esta publicación. Debes iniciar sesión para ver el contenido del enlace en esta publicación. Debes iniciar sesión para ver el contenido del enlace en esta publicación. Quote Link to comment Share on other sites More sharing options...
JamesBond007 Posted November 7, 2012 Report Share Posted November 7, 2012 Podrias traducirla porfavor vendria bn para todos Quote Link to comment Share on other sites More sharing options...
JamesBond007 Posted November 7, 2012 Report Share Posted November 7, 2012 No publiques quest basura que no sirven aporta cosas mejores cambia y ar tus propias cosas y que funcionen Quote Link to comment Share on other sites More sharing options...
ElRaulxX Posted November 7, 2012 Report Share Posted November 7, 2012 Copy-Copy Paste-Paste Quote Link to comment Share on other sites More sharing options...
diper Posted February 20, 2013 Report Share Posted February 20, 2013 esta buena la quest le veo sentido Quote Link to comment Share on other sites More sharing options...
Croqueta Posted February 21, 2013 Report Share Posted February 21, 2013 la quest ya esta bieja Quote Link to comment Share on other sites More sharing options...
DryUz Posted February 21, 2013 Author Report Share Posted February 21, 2013 pues postea la nueva!! no crees? Quote Link to comment Share on other sites More sharing options...
Croqueta Posted February 21, 2013 Report Share Posted February 21, 2013 no la tengo mas Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.