POUR HOMMESCase 0Dim sex as longsex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")If sex = 0 thencall playermsg (index, "Bienvenue a la paroisse jeune homme, etes vous pret a vous marier ?" ,1)call playermsg (index, "Si oui, tapez /oui" ,1)call playermsg (index, "Si non, tapez /non" ,1)Elsecall playermsg (index, "Les femmes c'esta droite",1)End if POUR FEMMECase 1Dim sex as longsex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")If sex = 0 thencall playermsg (index, "Les hommes c'est a gauche",1)Elsecall playermsg (index, "Bienvenue a la paroisse jeune demoiselle, etes vous prete a vous marier ?",1)call playermsg (index, "Si oui, tapez /oui" ,1)call playermsg (index, "Si non, tapez /non" ,1)End if ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Case "/oui"Dim sex as longDim mapDim XDim YDim hommeDim femmemap = GetPlayerMap(index) X = GetPlayerX(index)Y = GetPlayerY(index)sex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")homme = GetVar("mariage.ini", "Chapelle", "nhomme")femme = GetVar("mariage.ini", "Chapelle", "nfemme") If sex = 0 then If map = n° map thenIf X = X map thenIf Y = Y map thenCall PutVar("mariage.ini", "Chapelle", "homme", "1") Call PutVar("mariage.ini", "Chapelle", "nhomme", Getplayername) If GetVar("mariage.ini", "Chapelle", "femme") = 1 ThenCall PutVar("mariage.ini", "couples", Getplayername, nfemme)Call PutVar("mariage.ini", "couples", nfemme, nhomme)Call playermsg (index, "Je vous declare mari et femme", 1)Else Call playermsg (index, "Que dites vous monsieur ?", 1)ElseIf map = n° map thenIf X = X map thenIf Y = Y map thenCall PutVar("mariage.ini", "Chapelle", "homme", "1") Call PutVar("mariage.ini", "Chapelle", "nhomme", Getplayername) If GetVar("mariage.ini", "Chapelle", "homme") = 1 ThenCall PutVar("mariage.ini", "couples", Getplayername, nfemme)Call PutVar("mariage.ini", "couples", nfemme, nhomme)Call playermsg (index, "Je vous declare mari et femme", 1)Else Call playermsg (index, "Que dites vous madame ?", 1)End If End IfEnd IfEnd IfEnd IfEnd IfEnd IfEnd IfCase "/non"Dim mapDim XDim YIf map = n° map thenIf X = X map thenIf Y = Y map thenCall playermsg (index, " VOUS M'AVEZ DERANGE POUR RIEN ! QUITTEZ CE LIEU DIVIN, 1)Call playerwarp (index, map, X, Y)Call GlobalMsg(GetPlayerName(index) & "refuse de se marier !", 15)ElseCall playermsg (index, "Que dites vous ", 1)End ifEnd IfEnd If
FOR MANCase 0Dim sex as longsex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")If sex = 0 thencall playermsg (index, "Does welcome have the parish young man, are you ready ato marry you? ?" ,1)call playermsg (index, "If yes, type /yes" ,1)call playermsg (index, "If no, type /no" ,1)Elsecall playermsg (index, "The women it is on the right!",1)End if For WomenCase 1Dim sex as longsex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")If sex = 0 thencall playermsg (index, "The men it is has left! ",1)Elsecall playermsg (index, "Welcome has the parish young young lady, are you lends to marry you?", 1)call playermsg (index, "If yes, type /yes" ,1)call playermsg (index, "If no, type /no" ,1)End if ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Case "/yes"Dim sex as longDim mapDim XDim YDim hommeDim femmemap = GetPlayerMap(index) X = GetPlayerX(index)Y = GetPlayerY(index)sex = GetVar("accounts" & GetPlayerLogin(index) & ".ini ", "CHAR" & GetPlayerCharNum(Index), "sex")homme = GetVar("mariage.ini", "Chapelle", "nhomme")femme = GetVar("mariage.ini", "Chapelle", "nfemme") If sex = 0 then If map = n° map thenIf X = X map thenIf Y = Y map thenCall PutVar("mariage.ini", "Chapelle", "homme", "1") Call PutVar("mariage.ini", "Chapelle", "nhomme", Getplayername) If GetVar("mariage.ini", "Chapelle", "femme") = 1 ThenCall PutVar("mariage.ini", "couples", Getplayername, nfemme)Call PutVar("mariage.ini", "couples", nfemme, nhomme)Call playermsg (index, "Je vous declare mari et femme", 1)Else Call playermsg (index, "Que dites vous monsieur ?", 1)ElseIf map = n° map thenIf X = X map thenIf Y = Y map thenCall PutVar("mariage.ini", "Chapelle", "homme", "1") Call PutVar("mariage.ini", "Chapelle", "nhomme", Getplayername) If GetVar("mariage.ini", "Chapelle", "homme") = 1 ThenCall PutVar("mariage.ini", "couples", Getplayername, nfemme)Call PutVar("mariage.ini", "couples", nfemme, nhomme)Call playermsg (index, "Je vous declare mari et femme", 1)Else Call playermsg (index, "Que dites vous madame ?", 1)End If End IfEnd IfEnd IfEnd IfEnd IfEnd IfEnd IfCase "/no"Dim mapDim XDim YIf map = n° map thenIf X = X map thenIf Y = Y map thenCall playermsg (index, " YOU HAVE Disturb Me FOR NOTHING! LEAVE EC DIVINE PLACE , 1)Call playerwarp (index, map, X, Y)Call GlobalMsg(GetPlayerName(index) & "refuse to marry !", 15)ElseCall playermsg (index, "What do you say? ", 1)End ifEnd IfEnd If