Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 22:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Input: no quest running for pc

Discussion on Input: no quest running for pc within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2014
Posts: 16
Received Thanks: 0
Input: no quest running for pc

Hi there EPVP.
I have a little problem with a sistem quest.
When i run the quest i get:

Input: no quest running for pc, cannot process input : 2828

without the quest all work's fine.

The quest is:
HTML Code:
quest manager_loterie begin
	state start begin
		function MaxLotteryPoints()
			local level = pc.get_level()
			return (level + 20) * (100 + level)
		end

		function MaxLotteryPrize()
			local level = pc.get_level()
			return (level * 15000) * level
		end
		
		function MinLotteryPrize()
			local level = pc.get_level()
			return (level * 7000) * level
		end

		function generate()
			local prize = number(tonumber(manager_loterie.MaxLotteryPoints()), tonumber(manager_loterie.MaxLotteryPrize()))
			pc.setqf("lottery_prize", prize)
			local num1 = number(1,15)
			local num2 = number(1,15)
			while num2 == num1 do
				num2 = number(1,15)
			end
			local num3 = number(1,15)
			while num3 == num2 or num3 == num1 do
				num3 = number(1,15)
			end
			local num4 = number(1,15)
			while num4 == num3 or num4 == num2 or num4 == num1 do
				num4 = number(1,15)
			end
			pc.setqf("lottery_n1", num1)
			pc.setqf("lottery_n2", num2)
			pc.setqf("lottery_n3", num3)
			pc.setqf("lottery_n4", num4)
		end

		when login begin
			local maxpoints = tonumber(manager_loterie.MaxLotteryPoints())
			pc.setqf("old_exp", pc.get_exp())
			if pc.getqf("last_time") < get_time() then
				pc.setqf("lottery_points", 0)
				manager_loterie.generate()
			end
			cmdchat("Lotterysys_init "..q.getcurrentquestindex().." "..pc.getqf("lottery_prize").." "..pc.getqf("lottery_n1").." "..pc.getqf("lottery_n2").." "..pc.getqf("lottery_n3").." "..pc.getqf("lottery_n4"))
			cmdchat("LotterySetPoints "..pc.getqf("lottery_points").." "..maxpoints)
		end

		when kill with npc.is_pc() == false begin
			local mob_lvl = npc.get_level()
			local delta = mob_lvl - pc.get_level()
			local points = 10 + delta
			local maxpoints = tonumber(manager_loterie.MaxLotteryPoints())

			if points < 0 then
				points = 0
			end

			pc.setqf("lottery_points", pc.getqf("lottery_points") + points)

			if pc.getqf("lottery_points") >= maxpoints then
				pc.setqf("lottery_points", maxpoints)
			end

			cmdchat("LotterySetPoints "..pc.getqf("lottery_points").." "..maxpoints)
		end

		when button or info begin
			local maxpoints = tonumber(manager_loterie.MaxLotteryPoints())
			if pc.getqf("lottery_points") >= maxpoints then
				local n = number(1,15)
				cmdchat("LotteryNumber "..n)
				if n == pc.getqf("lottery_n1") or n == pc.getqf("lottery_n2") or n == pc.getqf("lottery_n3") or n == pc.getqf("lottery_n4") then
					pc.change_money(pc.getqf("lottery_prize"))
					pc.setqf("lottery_points", 0)
					manager_loterie.generate()
					cmdchat("Lotterysys_init "..q.getcurrentquestindex().." "..pc.getqf("lottery_prize").." "..pc.getqf("lottery_n1").." "..pc.getqf("lottery_n2").." "..pc.getqf("lottery_n3").." "..pc.getqf("lottery_n4"))
					cmdchat("LotterySetPoints "..pc.getqf("lottery_points").." "..maxpoints)
					cmdchat("LotteryWin")
				else
					pc.setqf("lottery_points", 0)
					manager_loterie.generate()
					cmdchat("Lotterysys_init "..q.getcurrentquestindex().." "..pc.getqf("lottery_prize").." "..pc.getqf("lottery_n1").." "..pc.getqf("lottery_n2").." "..pc.getqf("lottery_n3").." "..pc.getqf("lottery_n4"))
					cmdchat("LotterySetPoints "..pc.getqf("lottery_points").." "..maxpoints)
					cmdchat("LotteryLost")
				end
			else
				syschat("<Loteria Sufletului> Nu aveţi punctele necesare.")
			end
		end

		when logout begin
			pc.setqf("last_time", get_time() + 10*60)
		end
	end
end
Please i really nead help dont want to drop the sistem beacose of this.
tigerstefan is offline  
Old 05/21/2016, 19:41   #2

 
Jinbei's Avatar
 
elite*gold: 101
Join Date: Mar 2013
Posts: 13,366
Received Thanks: 2,748


#closed
Jinbei is offline  
Closed Thread

Tags
imput err quest


Similar Threads Similar Threads
[R][QUEST]New function for Input
12/25/2015 - Metin2 PServer Guides & Strategies - 2 Replies
Webzen started to code new functions for everything. (They're refreshing the stuff slowly too). Today I'll give an update about SendQuestInputStringPacket. This packet is often used by r34083 to make new systems with communication. This function only works when the string size is big than 64. New function; net.SendQuestInputLongStringPacket I explained everything in the rar file. Kind Regards ~ Ken
[Quest Frage] Input-Fenster
09/24/2014 - Metin2 Private Server - 2 Replies
Tag. Ich verstehe nicht wieso die Quest nicht läuft, was ist falsch? Wenn ich mit dem NPC rede und ne Zahl eingebe geht der Chat zu, normal sollte aber gesagt werden obs kleiner/größer oder genau 1 ist. quest test begin state start begin when 9004.chat."input test" begin say("Gib eine Zahl ein:") say("")
[Quest]Input Feld vergrößern?
06/20/2013 - Metin2 Private Server - 5 Replies
Huhu. Habe folgendes "problem". http://i.epvpimg.com/DOlDh.jpg Das Input feld ist zu klein für eine lange nachricht. Ich benötige das für eine Art ankündigungsquest per item. So wird es im Chat angezeigt: http://i.epvpimg.com/OoNKg.jpg Die User könnten ja niemals viel anbieten / suchen wenn nur so ein kleiner text funktioniert. Kann man das Input feld irgentwie vergrößern? oder irgentwie machen, das man mehr Text reinschrieben kann?
Python / input quest
04/22/2013 - Metin2 Private Server - 0 Replies
Hallo,ich würde gerne eine funktion teils python schreiben und es via chatpacket ausgeben zb wie hier net.SendChatPacket("/war " + guildName) nur das bei guildname das eingegebene stehen soll, wie kann ich es in einer Funktion schreiben?
[QUEST]Input-Feld: Keine Buchstaben erlaubt?
08/04/2012 - Metin2 Private Server - 1 Replies
Hallo liebe Elitepvpers Community, ich bin mal wieder an einem Punkt angelangt, an dem ich nicht mehr weiter weiß. In einer Quest, benötige ich ein Input-Feld, in dem nur Zahlen erlaubt sind und keine Buchstaben (also ein Integer-Input-Feld und kein normales String-Input-Feld). Jedoch weiss ich nicht, wie ich das machen soll. Folgendes habe ich probiert: local zahl = input(int) local zahl = input(), int local zahl = int, input() Jedoch hat davon nichts funktioniert.



All times are GMT +1. The time now is 22:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.