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

[A lock]Bouton "continuer" quête


Craven
 Share

Question

Version des files : 2010

Domaine (Base de données, Core, etc.) : Putty

Votre niveau (débutant, intermédiaire, avancé) : intermédiaire

 

Description du problème :

 

En faite, ce n'est pas vraiment un problème et je penses que pour certain ça va être vraiment bête comme question m'enfin, je suis en train d'implanter le système d'achèvement sur mon serveur et j'en suis à implanter le PNJ qui vend des items contre des points, donc je dois configurer la quête pour qu'elle soit adaptée à mon serveur, jusque là je n'ai eu aucun problème mais j'arrive au moment de configurer la section "perle" du magasin, mon serveur ayant 10 perles si je les mets toute sur la même page ça va très largement dépasser, je voudrais donc rajouter un bouton "continuer" pour que sur la première page ça affiche 5 perles puis sur la seconde les 5 suivantes, j'ai donc ajouté "wait()" comme ceci:

elseif itemup2 == 5 then
							local Price = 125
							say_title("Perle d'Amour:")
							say_item_vnum(90018)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle d'Amour","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90018)
									say_reward("Vous recevez Perle d'Amour")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90018, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
									wait()
						elseif itemup2 == 6 then
							local Price = 150
							say_title("Perle de Mort:")
							say_item_vnum(90014)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Mort","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90014)
									say_reward("Vous recevez Perle de Mort")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90014, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end

 

 

Dans cette petite partie de la quête ont voit donc l'item 5 et l'item 6 avec entre ces deux items un "wait()" que je pensais aurait l'effet d'ajouter un bouton "continuer" mais ce n'est pas le cas.

 

 

problmeu.png

 

 

Il faut avouer que ça fait moche.

 

Merci d'avance pour votre aide!

 

En postant ma demande d'aide, j'affirme avoir lu et accepté le règlement des demandes d'aides.

Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
  • Retraité

Tu dois bien utiliser le wait() mais après celui-ci, tu dois remettre une variable :

local bidule=select("suite perle", "suite perle", "suite perle")

 

EDIT : Je viens de voir ta quête.

 

Correction :

 

						local itemup2=select("Perle 5", "Perle 6", "Perle 7")

						if itemup2 == 1 then
                               local Price = 125
                               say_title("Perle d'Amour:")
                               say_item_vnum(90018)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle d'Amour","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90018)
                                       say_reward("Vous recevez Perle d'Amour")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90018, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end

                           elseif itemup2 == 2 then
                               local Price = 150
                               say_title("Perle de Mort:")
                               say_item_vnum(90014)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle de Mort","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90014)
                                       say_reward("Vous recevez Perle de Mort")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90014, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end

 

Une fois arrivé en fin de page, tu dois déclarer une seconde variable pour afficher la suite, regarde la correction.

You can't be immortal,
But you can make people remember
you for thousands of years...

Link to comment
Share on other sites

  • 0

Merci pour ta réponse aussi rapide mais malheureusement ça ne fonctionne pas, je tiens à préciser que je suis une vrai bille en LUA ! bref, je te fais un copier/coller de ma partie "perle" de ma quête mais en entier avec la modification que j'ai apporté suite à ta réponse:

 

elseif selectcategory == 4 then
					say_title("".. mob_name(20005) ..":")
					say("")
					say("Voici quelques items qui vous seront utile")
					say("prenez en grand soin")
					local itemup1 = select("Perles rare","Quête","Autre","Fermer")
					if itemup1 == 4 then
						return
					elseif itemup1 == 1 then
						say_title("".. mob_name(20005) ..":")
						say("Voici quelques perles.")
						local itemup2 = select("Perle de Feu","Perle d'Eau","Perle de Plante","Perle d'Espoir","Perle d'Amour","Perle de Mort","Perle de Terre","Perle de Ciel","Perle de Soleil","Perle de Lune","Fermer")
						if itemup2 == 11 then
							return
						elseif itemup2 == 1 then
							local Price = 100
							say_title("Perle de Feu:")
							say_item_vnum(90016)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Feu","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90016)
									say_reward("Vous recevez Perle de Feu")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90016, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 2 then
							local Price = 100
							say_title("Perle d'Eau:")
							say_item_vnum(90025)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle d'Eau","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90025)
									say_reward("Vous recevez Perle d'Eau")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90025, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 3 then
							local Price = 125
							say_title("Perle de Plante:")
							say_item_vnum(90022)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Plante","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90022)
									say_reward("Vous recevez Perle de Plante")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90022, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 4 then
							local Price = 125
							say_title("Perle d'Espoir:")
							say_item_vnum(90023)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle d'Espoir","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90023)
									say_reward("Vous recevez Perle d'Espoir")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90023, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 5 then
							local Price = 125
							say_title("Perle d'Amour:")
							say_item_vnum(90018)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle d'Amour","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90018)
									say_reward("Vous recevez Perle d'Amour")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90018, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
									wait()
							local itemup2 = select("Perle de Mort","Perle de Terre","Perle de Ciel","Perle de Soleil","Perle de Lune","Fermer")
						elseif itemup2 == 1 then
							local Price = 150
							say_title("Perle de Mort:")
							say_item_vnum(90014)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Mort","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90014)
									say_reward("Vous recevez Perle de Mort")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90014, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 2 then
							local Price = 100
							say_title("Perle de Terre:")
							say_item_vnum(90015)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Terre","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90015)
									say_reward("Vous recevez Perle de Terre")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90015, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end	
						elseif itemup2 == 3 then
							local Price = 125
							say_title("Perle de Ciel:")
							say_item_vnum(90017)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Ciel","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90017)
									say_reward("Vous recevez Perle de Ciel")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90017, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 4 then
							local Price = 150
							say_title("Perle de Soleil:")
							say_item_vnum(90024)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Soleil","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90024)
									say_reward("Vous recevez Perle de Soleil")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90024, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						elseif itemup2 == 5 then
							local Price = 300
							say_title("Perle de Lune:")
							say_item_vnum(90021)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Lune","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90021)
									say_reward("Vous recevez Perle de Lune")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90021, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
						end

 

 

Plus exactement la ligne où j'ai modifié:

 

 

 

elseif itemup2 == 5 then
							local Price = 125
							say_title("Perle d'Amour:")
							say_item_vnum(90018)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle d'Amour","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90018)
									say_reward("Vous recevez Perle d'Amour")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90018, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end
									wait()
							local itemup2 = select("Perle de Mort","Perle de Terre","Perle de Ciel","Perle de Soleil","Perle de Lune","Fermer")
						elseif itemup2 == 1 then
							local Price = 150
							say_title("Perle de Mort:")
							say_item_vnum(90014)
							say_reward("Cela coute ".. Price .." points de succès.")
							local buyselection = select("Acheter Perle de Mort","Fermer")
							if buyselection == 2 then
								return
							elseif buyselection == 1 then
								if actual_achievement_points < Price then
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Tu n'as pas assez de points.")
									say("Reviens quand tu auras  "..Price.." Points")
									say("à echanger.")
									say("")
									say("")
									say("")
									say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
									return
								else
									say_title("".. mob_name(20005) ..":")
									say("")
									say("Voici votre commande.")
									say_item_vnum(90014)
									say_reward("Vous recevez Perle de Mort")
									pc.setqf("achievement_points", actual_achievement_points - Price)
									pc.give_item2(90014, 1)
									syschat("Points restants : "..actual_achievement_points - Price)
								end
							end 

Link to comment
Share on other sites

  • 0
  • Retraité

					elseif selectcategory == 4 then
                       say_title("".. mob_name(20005) ..":")
                       say("")
                       say("Voici quelques items qui vous seront utile")
                       say("prenez en grand soin")
                       local itemup1 = select("Perles rare","Quête","Autre","Fermer")
                       if itemup1 == 4 then
                           return
                       elseif itemup1 == 1 then
                           say_title("".. mob_name(20005) ..":")
                           say("Voici quelques perles.")
                           local itemup2 = select("Perle de Feu","Perle d'Eau","Perle de Plante","Perle d'Espoir","Perle d'Amour", "Continuer", "Fermer")
                           if itemup2 == 7 then
                               return
                           elseif itemup2 == 1 then
                               local Price = 100
                               say_title("Perle de Feu:")
                               say_item_vnum(90016)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle de Feu","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90016)
                                       say_reward("Vous recevez Perle de Feu")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90016, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end
                           elseif itemup2 == 2 then
                               local Price = 100
                               say_title("Perle d'Eau:")
                               say_item_vnum(90025)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle d'Eau","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90025)
                                       say_reward("Vous recevez Perle d'Eau")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90025, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end
                           elseif itemup2 == 3 then
                               local Price = 125
                               say_title("Perle de Plante:")
                               say_item_vnum(90022)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle de Plante","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90022)
                                       say_reward("Vous recevez Perle de Plante")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90022, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end
                           elseif itemup2 == 4 then
                               local Price = 125
                               say_title("Perle d'Espoir:")
                               say_item_vnum(90023)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle d'Espoir","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90023)
                                       say_reward("Vous recevez Perle d'Espoir")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90023, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end
                           elseif itemup2 == 5 then
                               local Price = 125
                               say_title("Perle d'Amour:")
                               say_item_vnum(90018)
                               say_reward("Cela coute ".. Price .." points de succès.")
                               local buyselection = select("Acheter Perle d'Amour","Fermer")
                               if buyselection == 2 then
                                   return
                               elseif buyselection == 1 then
                                   if actual_achievement_points < Price then
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Tu n'as pas assez de points.")
                                       say("Reviens quand tu auras  "..Price.." Points")
                                       say("à echanger.")
                                       say("")
                                       say("")
                                       say("")
                                       say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
                                       return
                                   else
                                       say_title("".. mob_name(20005) ..":")
                                       say("")
                                       say("Voici votre commande.")
                                       say_item_vnum(90018)
                                       say_reward("Vous recevez Perle d'Amour")
                                       pc.setqf("achievement_points", actual_achievement_points - Price)
                                       pc.give_item2(90018, 1)
                                       syschat("Points restants : "..actual_achievement_points - Price)
                                   end
                               end								
						elseif itemup2 == 6 then                              
							local itemup2bis = "Perle de Mort","Perle de Terre","Perle de Ciel","Perle de Soleil","Perle de Lune", "Fermer")

							elseif itemup2bis == 1 then
								local Price = 150
								say_title("Perle de Mort:")
								say_item_vnum(90014)
								say_reward("Cela coute ".. Price .." points de succès.")
								local buyselection = select("Acheter Perle de Mort","Fermer")
								if buyselection == 2 then
									return
								elseif buyselection == 1 then
									if actual_achievement_points < Price then
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Tu n'as pas assez de points.")
										say("Reviens quand tu auras  "..Price.." Points")
										say("à echanger.")
										say("")
										say("")
										say("")
										say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
										return
									else
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Voici votre commande.")
										say_item_vnum(90014)
										say_reward("Vous recevez Perle de Mort")
										pc.setqf("achievement_points", actual_achievement_points - Price)
										pc.give_item2(90014, 1)
										syschat("Points restants : "..actual_achievement_points - Price)
									end
								end
							elseif itemup2bis == 2 then
								local Price = 100
								say_title("Perle de Terre:")
								say_item_vnum(90015)
								say_reward("Cela coute ".. Price .." points de succès.")
								local buyselection = select("Acheter Perle de Terre","Fermer")
								if buyselection == 2 then
									return
								elseif buyselection == 1 then
									if actual_achievement_points < Price then
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Tu n'as pas assez de points.")
										say("Reviens quand tu auras  "..Price.." Points")
										say("à echanger.")
										say("")
										say("")
										say("")
										say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
										return
									else
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Voici votre commande.")
										say_item_vnum(90015)
										say_reward("Vous recevez Perle de Terre")
										pc.setqf("achievement_points", actual_achievement_points - Price)
										pc.give_item2(90015, 1)
										syschat("Points restants : "..actual_achievement_points - Price)
									end
								end    
							elseif itemup2bis == 3 then
								local Price = 125
								say_title("Perle de Ciel:")
								say_item_vnum(90017)
								say_reward("Cela coute ".. Price .." points de succès.")
								local buyselection = select("Acheter Perle de Ciel","Fermer")
								if buyselection == 2 then
									return
								elseif buyselection == 1 then
									if actual_achievement_points < Price then
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Tu n'as pas assez de points.")
										say("Reviens quand tu auras  "..Price.." Points")
										say("à echanger.")
										say("")
										say("")
										say("")
										say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
										return
									else
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Voici votre commande.")
										say_item_vnum(90017)
										say_reward("Vous recevez Perle de Ciel")
										pc.setqf("achievement_points", actual_achievement_points - Price)
										pc.give_item2(90017, 1)
										syschat("Points restants : "..actual_achievement_points - Price)
									end
								end
							elseif itemup2bis == 4 then
								local Price = 150
								say_title("Perle de Soleil:")
								say_item_vnum(90024)
								say_reward("Cela coute ".. Price .." points de succès.")
								local buyselection = select("Acheter Perle de Soleil","Fermer")
								if buyselection == 2 then
									return
								elseif buyselection == 1 then
									if actual_achievement_points < Price then
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Tu n'as pas assez de points.")
										say("Reviens quand tu auras  "..Price.." Points")
										say("à echanger.")
										say("")
										say("")
										say("")
										say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
										return
									else
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Voici votre commande.")
										say_item_vnum(90024)
										say_reward("Vous recevez Perle de Soleil")
										pc.setqf("achievement_points", actual_achievement_points - Price)
										pc.give_item2(90024, 1)
										syschat("Points restants : "..actual_achievement_points - Price)
									end
								end
							elseif itemup2bis == 5 then
								local Price = 300
								say_title("Perle de Lune:")
								say_item_vnum(90021)
								say_reward("Cela coute ".. Price .." points de succès.")
								local buyselection = select("Acheter Perle de Lune","Fermer")
								if buyselection == 2 then
									return
								elseif buyselection == 1 then
									if actual_achievement_points < Price then
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Tu n'as pas assez de points.")
										say("Reviens quand tu auras  "..Price.." Points")
										say("à echanger.")
										say("")
										say("")
										say("")
										say_reward("Il te manque "..Price - actual_achievement_points.." Point(s)")
										return
									else
										say_title("".. mob_name(20005) ..":")
										say("")
										say("Voici votre commande.")
										say_item_vnum(90021)
										say_reward("Vous recevez Perle de Lune")
										pc.setqf("achievement_points", actual_achievement_points - Price)
										pc.give_item2(90021, 1)
										syschat("Points restants : "..actual_achievement_points - Price)
									end
								end
							end
						end

 

Dans le cas présent, nous n'utiliserons pas un wait() mais un " continuer " tout simplement, menant à la suite.

You can't be immortal,
But you can make people remember
you for thousands of years...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



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.