Jump to content
×
×
  • Create New...
  • 0

PC.SETQF


uSParliamentPonz

Question

Hi,i have a very big problem,im trying to create a VIP shop but it seems to not working

I saw that the pc.setqf part is the problem,it don't save that or i don't know,if i use my item (what's is set to the VIP-Feature item) and click the npc the "Premium Shop" appear i click it,close it and then i click to NPC again the "Premium Shop" disappear so i have to use again my VIP item


Here is my quest part 1: (The VIP quest)
 

quest premium_user begin
	state start begin
		when login with pc.getqf("vip_user")==1 and not npc.is_pc() begin
		end
		when 38001.use with pc.getqf("vip_user")==0 begin
			say_title("Future2Team")
			say("")
			say("Pomocou tohto itemu si můžeš aktivovat")
			say("špeciálne VIP výhody permamentne!")
			say("")
			say_title("Chceš si aktivovať VIP výhody?")
			
			local s = select("Ano", "Nie")
				
			if s == 1 then
				pc.remove_item(38001, 1)
				pc.setqf("vip_user", 1)
				mysql_query("UPDATE account.account SET availDt = NOW() + INTERVAL 2 MINUTE WHERE id = "..pc.get_account_id())
				mysql_query("UPDATE player.player SET name="..string.format("%q","[VIP]"..pc.get_name()).." WHERE id = "..pc.get_player_id())
				say_title("VIP Konto úspešne aktivované!")
				say("Majte na pozore,že po aktivácií sa 30 minut ")
				say("nebudete moci přihlásit se a to znamená že se")
				say("aktivace povedla!")
				say("")
				say("")
				say("")
				say("Prosím,ted se odhlaste!")
			else
				return
			end
		end
	end
end

 and here is the 2nd part: (VIP Shop)
 

quest premium_shop begin
	state start begin
		when login with pc.getqf("vip_user")==1 and not npc.is_pc() begin
		end
		when 9010.chat."Wer bist du?" with pc.getqf("vip_user")==0 begin
			say_title("Mrs.Since")
			say("")
			say("Hallo, fremder ich bin Mrs.Since")
			say("Ich habe vom FinalSinceMt2 Team den Auftrag bekommen")
			say("die Auserwählten Spieler zu unterstützen.")
			say("Zur zeit bist du leider keiner der Auserwählten")
			say("dies kannst du jedoch ändern, in dem du dir einen")
			say("Premium Schein besorgst. Diesen bekommst du")
			say("unter anderem im Itemshop")
		end
		when 9010.chat."Premium Shop" with pc.getqf("vip_user")==1 begin
			say_title("Mrs.Since")
			say("")
			say("Hallo, Auserwählter ich bin Mrs.Since")
			say("Ich habe bereits auf dich gewartet!")
			say("Das FindalSinceMt2 Team hat mir gesagt das du kommst")
			say("Ich habe die Aufgabe bekommen, dich zu unterstützen.")
			say("Bedien dich in meinem Shop. Hier findest du dinge,")
			say("für die du sonst hart arbeiten musst")
			say("")
			say_title("Willst du etwas kaufen?")
			
			local s = select("Ja", "Nein")
				
			if s == 1 then
				npc.open_shop(18)
			else
				return
			end
		end
	end
end

Thanks for reply :)

Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.