Guest User

Untitled

a guest
Jan 20th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.94 KB | None | 0 0
  1. quest AnneaudeThor begin
  2.  
  3. state start begin
  4.  
  5. when 40003.use with pc.is_gm() begin
  6.  
  7. say_title("Anneau du Staff :")
  8. say("")
  9.  
  10. local a=select("GM : Gestion personnage","GM : Gestion items","GM : Gestion metins", "GM : Gestion des events","GM : Bannir un joueur","Annuler")
  11.  
  12. if 1==a then
  13.  
  14. say_title("Anneau du Staff :")
  15. say("")
  16.  
  17. local b=select("Téléporter un joueur","Donner un item","Retirer un item","Modifier les sorts","Modification du cheval","Annuler")
  18.  
  19. if 1==b then
  20.  
  21. say_title("Anneau du Staff :")
  22. say("")
  23. ----"12345678901234567890123456789012345678901234567890"|
  24. say("Indiquez le nom du joueur que vous souhaitez")
  25. say("téléporter: ")
  26. say("")
  27.  
  28. local u_name = input()
  29. local u_vid = find_pc_by_name(u_name)
  30.  
  31. if u_name == "" then
  32.  
  33. return
  34.  
  35. end
  36.  
  37. if u_vid==0 then
  38.  
  39. say_title("Anneau du Staff :")
  40. say("")
  41. ----"12345678901234567890123456789012345678901234567890"|
  42. say("Le joueur que vous avez indiquez n'existe pas ou")
  43. say("n'est pas connecté pour le moment.")
  44. say("Veuillez reessayer plus tard, ou vérifier que vous")
  45. say("avez entrez correctement son pseudo.")
  46. say("")
  47.  
  48. else
  49.  
  50. say_title("Anneau du Staff :")
  51. say("")
  52. ----"12345678901234567890123456789012345678901234567890"|
  53. say("Où voulez vous le teleporter ?")
  54. say("")
  55.  
  56. sub_set = select ( "Map 1 Rouge" , "Map 2 Rouge" , "Map 1 Jaune" , "Map 2 Jaune" , "Map 1 Bleu" , "Map 2 Bleu" ,"Suite")
  57.  
  58. if sub_set == 7 then
  59.  
  60. say_title("Anneau du Staff :")
  61. say("")
  62. ----"12345678901234567890123456789012345678901234567890"|
  63. say("Où voulez vous le teleporter ?")
  64. say("")
  65.  
  66. sub_set = select ( "Orc", "Desert de Yongbi" , "Mont Sohan", "Volcan" , "Tour" , "Foret" , "Bois Rouge" , "Suite" ) + 6
  67.  
  68. if sub_set == 14 then
  69.  
  70. say_title("Anneau du Staff :")
  71. say("")
  72. ----"12345678901234567890123456789012345678901234567890"|
  73. say("Où voulez vous le teleporter ?")
  74. say("")
  75.  
  76. sub_set = select ( "Temple","Cave 1", "Cave 2", "Géant", "Atlantea" , "Quitter" ) + 13
  77.  
  78. if sub_set == 19 then
  79.  
  80. return
  81.  
  82. end
  83. end
  84. end
  85.  
  86. local warp = {
  87.  
  88. -- Map 1 Rouge
  89. {
  90. { 474300 , 954800 },
  91. { 474300 , 954800 },
  92. { 474300 , 954800 },
  93. },
  94.  
  95. -- Map 2 Rouge
  96. {
  97. { 353100 , 882900 },
  98. { 353100 , 882900 },
  99. { 353100 , 882900 },
  100. },
  101.  
  102. -- Map 1 Jaune
  103. {
  104. { 63800 , 166400 },
  105. { 63800 , 166400 },
  106. { 63800 , 166400 },
  107. },
  108.  
  109. -- Map 2 Jaune
  110. {
  111. { 145500 , 240000 },
  112. { 145500 , 240000 },
  113. { 145500 , 240000 },
  114. },
  115.  
  116. -- Map 1 Bleu
  117. {
  118. { 959900 , 269200 },
  119. { 959900 , 269200 },
  120. { 959900 , 269200 },
  121. },
  122.  
  123. -- Map 2 Bleu
  124. {
  125. { 863900 , 246000 },
  126. { 863900 , 246000 },
  127. { 863900 , 246000 },
  128. },
  129.  
  130. -- Orc 64
  131. {
  132. { 402100, 673900 },
  133. { 270400, 739900 },
  134. { 321300, 808000 },
  135. },
  136.  
  137. -- Desert 63
  138. {
  139. { 217800, 627200 },
  140. { 221900, 502700 },
  141. { 344000, 502500 },
  142. },
  143.  
  144. -- Mont Sohan 61
  145. {
  146. { 434200, 290600 },
  147. { 375200, 174900 },
  148. { 491800, 173600 },
  149. },
  150.  
  151. -- Volcan 62
  152. {
  153. { 599400, 756300 },
  154. { 597800, 622200 },
  155. { 730700, 689800 },
  156. },
  157.  
  158. -- devil_tower
  159. {
  160. { 590500, 110500 },
  161. { 590500, 110500 },
  162. { 590500, 110500 },
  163. },
  164.  
  165. -- Foret
  166. {
  167. { 288700 , 5700 },
  168. { 288700 , 5700 },
  169. { 288700 , 5700 },
  170. },
  171.  
  172. -- Bois rouge
  173. {
  174. { 1119500 , 701 },
  175. { 1119500 , 701 },
  176. { 1119500 , 701 },
  177. },
  178.  
  179. -- Temple
  180. {
  181. { 553600 , 144100 },
  182. { 553600 , 144100 },
  183. { 553600 , 144100 },
  184. },
  185. -- Cave 1
  186.  
  187. {
  188. { 60000 , 496000 },
  189. { 60000 , 496000 },
  190. { 60000 , 496000 },
  191. },
  192.  
  193. -- Cave 2
  194. {
  195. { 704100 , 464200 },
  196. { 704100 , 464200 },
  197. { 704100 , 464200 },
  198. },
  199.  
  200. -- Geant
  201. {
  202. { 828300 , 763500 },
  203. { 828300 , 763500 },
  204. { 828300 , 763500 },
  205. },
  206.  
  207. -- Atlantea
  208. {
  209. { 10000 , 1207800 },
  210. { 10000 , 1207800 },
  211. { 10000 , 1207800 },
  212. },
  213.  
  214. }
  215.  
  216. local old_vid = pc.select(u_vid)
  217.  
  218. local empire = pc . get_empire ( )
  219.  
  220. test_chat ( warp [ sub_set ] [ empire ] [ 1 ] .. warp [ sub_set ] [ empire ] [ 2 ] )
  221.  
  222. pc . warp ( warp [ sub_set ] [ empire ] [ 1 ] , warp [ sub_set ] [ empire ] [ 2 ] )
  223.  
  224. pc.select(old_vid)
  225.  
  226. say_title("Anneau du Staff :")
  227. say("")
  228. ----"12345678901234567890123456789012345678901234567890"|
  229. say("Le joueur a été téléporté avec succès.")
  230. say("")
  231.  
  232. end
  233.  
  234. elseif 2==b then
  235.  
  236. say_title("Anneau du Staff :")
  237. say("")
  238. say("Indiquez le nom du joueur concerné :")
  239. say("")
  240.  
  241. local u_name = input()
  242.  
  243. local u_vid=find_pc_by_name(u_name)
  244.  
  245. if u_name == "" then
  246.  
  247. return
  248.  
  249. end
  250.  
  251. if u_vid==0 then
  252.  
  253. say_title("Anneau du Staff :")
  254. say("")
  255. ----"12345678901234567890123456789012345678901234567890"|
  256. say("Le joueur que vous avez indiquez n'existe pas ou ")
  257. say("se situe trop loin.")
  258. say("Voulez-vous essayer de le téléporter à vous ?")
  259. say("")
  260. local s = select ( "Oui", "Non")
  261.  
  262. if s == 1 then
  263.  
  264. command("t "..u_name)
  265.  
  266. end
  267.  
  268. return
  269.  
  270. end
  271.  
  272. say_title("Anneau du Staff :")
  273. say("")
  274. ----"12345678901234567890123456789012345678901234567890"|
  275. say("Indiquez ici l'id de l'item que vous souhaitez")
  276. say("donner à "..u_name..".")
  277. say("")
  278.  
  279. local item_vnum = input()
  280.  
  281. say_title("Anneau du Staff :")
  282. say("")
  283. ----"12345678901234567890123456789012345678901234567890"|
  284. say("Tapez la quantité de "..item_vnum.." que vous")
  285. say("souhaitez donner à "..u_name..".")
  286. say("")
  287.  
  288. local item_count = input()
  289.  
  290. if item_count <=0 then
  291.  
  292. say_title("Anneau du Staff :")
  293. say("")
  294. ----"12345678901234567890123456789012345678901234567890"|
  295. say("Veuillez saisir une quantité utilisable!")
  296. say("")
  297.  
  298. return
  299.  
  300. end
  301.  
  302. local old_vid = pc.select(u_vid)
  303.  
  304. local nombre_item = pc.countitem(item_vnum)+item_count
  305.  
  306. repeat
  307.  
  308. pc.give_item2(item_vnum, item_count)
  309.  
  310. until pc.countitem(item_vnum) >= nombre_item
  311.  
  312. pc.select(old_vid)
  313.  
  314. say_title("Anneau du Staff :")
  315. say("")
  316. ----"12345678901234567890123456789012345678901234567890"|
  317. say(""..u_name.." a bien recu l'item"..item_vnum)
  318. if item_count == 1 then
  319.  
  320. say("en "..item_count.." exemplaire.")
  321.  
  322. else
  323.  
  324. say("en "..item_count.." exemplaires.")
  325.  
  326. end
  327.  
  328. say("")
  329.  
  330. elseif 3==b then
  331.  
  332. say_title("Anneau du Staff :")
  333. say("")
  334. ----"12345678901234567890123456789012345678901234567890"|
  335. say("Indiquez le nom du joueur concerné :")
  336. say("")
  337.  
  338. local u_name = input()
  339.  
  340. local u_vid=find_pc_by_name(u_name)
  341.  
  342. if u_name == "" then
  343.  
  344. return
  345.  
  346. end
  347.  
  348. if u_vid==0 then
  349.  
  350. say_title("Anneau du Staff :")
  351. say("")
  352. ----"12345678901234567890123456789012345678901234567890"|
  353. say("Le joueur que vous avez indiquez n'existe pas ou")
  354. say("se situe trop loin")
  355. say("")
  356. say("Voulez-vous essayer de le téléporter à vous ?")
  357. say("")
  358. local s = select ( "Oui", "Non")
  359.  
  360. if s == 1 then
  361.  
  362. command("t "..u_name)
  363.  
  364. end
  365.  
  366. return
  367.  
  368. end
  369.  
  370. say_title("Anneau du Staff :")
  371. say("")
  372. ----"12345678901234567890123456789012345678901234567890"|
  373. say("Indiquez ici l'id de l'item que vous souhaitez")
  374. say("supprimer à "..u_name..".")
  375. say("")
  376.  
  377. local item_vnum = input()
  378.  
  379. local old_vid = pc.select(u_vid)
  380.  
  381. local nombre_item = pc.countitem(item_vnum)
  382.  
  383. pc.select(old_vid)
  384.  
  385.  
  386. if nombre_item == 0 then
  387.  
  388. say_title("Anneau du Staff :")
  389. say("")
  390. ----"12345678901234567890123456789012345678901234567890"|
  391. say("Le joueur "..u_name.." n'a pas l'item recherché ")
  392. say("dans son inventaire.")
  393. say("")
  394.  
  395. return
  396.  
  397. end
  398.  
  399. say_title("Anneau du Staff :")
  400. say("")
  401. ----"12345678901234567890123456789012345678901234567890"|
  402. say("Le Joueur "..u_name.." à "..nombre_item.." fois")
  403. say("l'item "..item_vnum.." dans son inventaire")
  404. say("")
  405. say("Combien voulez-vous en supprimer ?")
  406. say("")
  407.  
  408. local s=select("Tout supprimer", "Supprimer un seul", "Annuler")
  409.  
  410. if s == 1 then
  411.  
  412. local old_vid = pc.select(u_vid)
  413.  
  414. pc.remove_item(item_vnum, pc.count_item(item_vnum))
  415.  
  416. pc.select(old_vid)
  417.  
  418. say_title("Anneau du Staff :")
  419. say("")
  420. say("Les "..nombre_item.." "..item_vnum.." de "..u_name.." ont")
  421. say("\été supprimer avec succèes.")
  422. say("")
  423.  
  424. elseif s == 2 then
  425.  
  426. local old_vid = pc.select(u_vid)
  427.  
  428. pc.remove_item(item_vnum, 1)
  429.  
  430. pc.select(old_vid)
  431.  
  432. say_title("Anneau du Staff :")
  433. say("")
  434. ----"12345678901234567890123456789012345678901234567890"|
  435. say("1 "..item_vnum.." de "..u_name.." a été retiré ")
  436. say("de son inventaire.")
  437. say("")
  438.  
  439. end
  440.  
  441. elseif 4==b then
  442.  
  443. say_title("Anneau du Staff :")
  444. say("")
  445. ----"12345678901234567890123456789012345678901234567890"|
  446. say("Indiquez le pseudo du joueur auquel vous voulez")
  447. say("consulter le niveau de ses skills :")
  448. say("")
  449.  
  450. local sname = input()
  451.  
  452. local u_vid = find_pc_by_name ( sname )
  453.  
  454. local old = pc . select ( u_vid )
  455.  
  456. local job = pc . get_job ( )
  457.  
  458. if pc.get_skill_group() == 0 then
  459.  
  460. say_title("Anneau du Staff :")
  461. say("")
  462. ----"12345678901234567890123456789012345678901234567890"|
  463. say("Le joueur n'a pas de skill.")
  464. say("Il doit se rendre auprès d'un Maitre de compétence.")
  465. say("")
  466.  
  467. return
  468.  
  469. end
  470.  
  471.  
  472. local group = pc . get_skill_group ( )
  473.  
  474. local skill_list = special.active_skill_list[job+1][group]
  475.  
  476. local listskillpc = {}
  477.  
  478. local listskillid = {}
  479.  
  480. table.foreach(skill_list,
  481. function(i, skill_vnum)
  482. local skill_level = pc.get_skill_level(skill_vnum)
  483. table.insert(listskillid, skill_vnum)
  484. local name=locale.GM_SKILL_NAME_DICT[skill_vnum]
  485.  
  486. if name == nil then name=skill_vnum end
  487.  
  488. if skill_level < 20 then
  489.  
  490.  
  491. table.insert(listskillpc, name.." "..skill_level)
  492.  
  493. elseif skill_level >= 20 and skill_level < 30 then
  494.  
  495. table.insert(listskillpc, name.." M"..skill_level-19)
  496.  
  497. elseif skill_level >= 30 and skill_level < 40 then
  498.  
  499. table.insert(listskillpc, name.." G"..skill_level-29)
  500.  
  501. else
  502.  
  503. table.insert(listskillpc, name.." P")
  504.  
  505. end
  506.  
  507. end)
  508.  
  509. pc.select(old)
  510.  
  511. say_title("Anneau du Staff :")
  512. say("")
  513.  
  514. if table . getn ( listskillpc ) == 0 then
  515.  
  516. say("Aucun pouvoir")
  517.  
  518. return
  519.  
  520. end
  521.  
  522.  
  523. table.insert(listskillpc, "Quitter")
  524.  
  525. local s = select_table ( listskillpc )
  526.  
  527. if table . getn ( listskillpc ) == s then
  528.  
  529. return
  530.  
  531. end
  532.  
  533. say_title("Anneau du Staff :")
  534. say("")
  535. ----"12345678901234567890123456789012345678901234567890"|
  536. say("Quelle opération voulez vous effectuer ?")
  537. say(listskillpc[s])
  538. say("Mettre en :")
  539.  
  540. local u = select("Mettre à Zéro", "Basique -Buguer", "Maitre", "Grand Maitre", "Perfect", "Annuler")
  541.  
  542. if u == 1 then
  543.  
  544. old = pc . select ( u_vid )
  545.  
  546. pc.set_skill_level(tonumber(listskillid[s]), 0)
  547.  
  548. pc . select ( old )
  549.  
  550. say_title("Anneau du Staff :")
  551. say("")
  552. say("Pouvoir remis à zéro correctement")
  553. say("")
  554.  
  555. return
  556.  
  557. elseif u == 5 then
  558.  
  559. old = pc . select ( u_vid )
  560.  
  561. pc.set_skill_level(tonumber(listskillid[s]), 40)
  562.  
  563. pc . select ( old )
  564.  
  565. say_title("Anneau du Staff :")
  566. say("")
  567. say("Pouvoir mis en P avec succée")
  568. say("")
  569.  
  570. return
  571.  
  572. elseif u == 6 then
  573.  
  574. return
  575.  
  576. else
  577.  
  578. local d = {"", "", "M","G", "P", ""}
  579.  
  580. say_title("Outil Game Master:")
  581. say("Mettre en " .. d[u] .. " :")
  582.  
  583. local v = tonumber(input())
  584.  
  585. say_title("Outil Game Master:")
  586. say("Pouvoir mis en " .. d[u] .. v ..".")
  587.  
  588. if u == 3 then
  589.  
  590. v = v + 19
  591.  
  592. elseif u == 4 then
  593.  
  594. v = v + 29
  595.  
  596. end
  597.  
  598. old = pc . select ( u_vid )
  599. pc.set_skill_level(tonumber(listskillid[s]), v)
  600. pc . select ( old )
  601.  
  602. return
  603.  
  604. end
  605.  
  606. elseif 5==b then
  607.  
  608. say_title("Anneau du Staff :")
  609. say("")
  610. say("Que voulez-vous faire ?")
  611. say("")
  612.  
  613. local s=select("Modifier le niveau d'un cheval","Appeler le cheval","Appel du cheval")
  614.  
  615. if s==1 then
  616.  
  617. say_title("Anneau du Staff :")
  618. say("")
  619. ----"12345678901234567890123456789012345678901234567890"|
  620. say("Indiquez le propriétaire du cheval dans ce champ :")
  621. say("")
  622.  
  623. local nomduproprio = input()
  624.  
  625. say_title("Anneau du Staff :")
  626. say("")
  627. ----"12345678901234567890123456789012345678901234567890"|
  628. say("Indiquer le niveau que vous voulez affecter :")
  629. say("")
  630.  
  631. local niveauducheval = input()
  632.  
  633. if niveauducheval <=0 or niveauducheval >= 30 then return end
  634.  
  635. command("horse_level "..nomduproprio.." "..niveauducheval.."")
  636.  
  637. say_title("Anneau du Staff :")
  638. say("")
  639. ----"12345678901234567890123456789012345678901234567890"|
  640. say("Le Cheval de "..nomduproprio.." est passé du")
  641. say("niveau "..niveauducheval.." avec succèes.")
  642. say("")
  643.  
  644. elseif s==2 then
  645.  
  646. command("horse_summon")
  647.  
  648. elseif s==3 then
  649.  
  650. say_title("Anneau du Staff :")
  651. say("")
  652. ----"12345678901234567890123456789012345678901234567890"|
  653. say("Indiquez le propriétaire du cheval dans ce champ :")
  654. say("")
  655.  
  656. local nomduproprio2 = input()
  657.  
  658. say_title("Anneau du Staff :")
  659. say("")
  660. ----"12345678901234567890123456789012345678901234567890"|
  661. say("Indiquer le niveau que vous voulez affecter à sa")
  662. say("competence d'appel:")
  663. say("")
  664.  
  665. local niveaudappel = input()
  666.  
  667. if niveaudappel <= 0 then return end
  668.  
  669. command("setskillother "..nomduproprio2.." 131 "..niveaudappel.."")
  670.  
  671. end
  672. end
  673.  
  674. elseif 2==a then
  675.  
  676. say_title("Anneau du Staff :")
  677. say("")
  678. local id_choix = 0
  679. local choix_race
  680. local grade
  681. local choix_item = select("Armes", "Armures", "Equipement annexes", "Pierres", "Annuler")
  682.  
  683. if choix_item == 5 then return
  684.  
  685. elseif choix_item == 1 then
  686.  
  687. say_title("Anneau du Staff :")
  688. say("")
  689. choix_item = select("Lame à une main", "Lame à deux mains", "Dagues", "Arcs", "Gongs", "Eventails", "Annuler")
  690.  
  691. if choix_item == 1 then
  692.  
  693. say_title("Anneau du Staff :")
  694. say("")
  695. choix_item = select("Epée", "Epée longue", "Epee courbe", "Canne épée", "Epée large", "Suivant", "Annuler")
  696.  
  697. if choix_item == 7 then return
  698.  
  699. elseif choix_item == 6 then
  700.  
  701. say_title("Anneau du Staff :")
  702. say("")
  703. choix_item = select("Epée d'argent", "Epée de lune pleine", "Epee d'orchidées", "Epée batarde", "Glaive barbare", "Suivant", "Annuler") + 5
  704.  
  705. if choix_item == 12 then return
  706.  
  707. elseif choix_item == 7 then
  708.  
  709. id_choix = 29
  710.  
  711. elseif choix_item == 11 then
  712.  
  713. say_title("Anneau du Staff :")
  714. say("")
  715. choix_item = select("Epée sanglante", "Grande épée", "Epee du magicien volant", "Epée de demi-lune", "Epée de bataille", "Suivant", "Annuler") + 10
  716.  
  717. if choix_item == 17 then return
  718.  
  719. elseif choix_item == 16 then
  720.  
  721. say_title("Anneau du Staff :")
  722. say("")
  723. choix_item = select("Lame de croc fantôme", "Epée de nymphe", "Epée d'exorcisme", "Epée de piqure", "Epée démoniaque", "Suivant", "Annuler") + 15
  724.  
  725. if choix_item == 22 then return
  726.  
  727. elseif choix_item == 18 then
  728.  
  729. id_choix = 24
  730.  
  731. elseif choix_item == 20 then
  732.  
  733. id_choix = 25
  734.  
  735. elseif choix_item == 21 then
  736.  
  737. say_title("Anneau du Staff :")
  738. say("")
  739. choix_item = select("Epée empoisonnée", "Epée du lion", "Lame tranchante", "Epée de sirius", "Epée sacrée", "Suivant", "Annuler") + 20
  740.  
  741. if choix_item == 27 then return
  742.  
  743. elseif choix_item == 24 then
  744.  
  745. id_choix = 27
  746.  
  747. elseif choix_item == 25 then
  748.  
  749. id_choix = 28
  750.  
  751. elseif choix_item == 26 then
  752.  
  753. say_title("Anneau du Staff :")
  754. say("")
  755. choix_item = select("Lame mortelle", "Epée de baron", "Epée lunaire", "Epée céleste", "Epée du gardien", "Annuler") + 25
  756.  
  757. if choix_item == 30 then return
  758.  
  759. elseif choix_item == 26 then
  760.  
  761. id_choix = 21
  762.  
  763. elseif choix_item == 27 then
  764.  
  765. id_choix = 26
  766.  
  767. elseif choix_item == 28 then
  768.  
  769. id_choix = 22
  770.  
  771. elseif choix_item == 29 then
  772.  
  773. id_choix = 23
  774.  
  775. elseif choix_item == 30 then
  776.  
  777. id_choix = 2310
  778.  
  779. end
  780. end
  781. end
  782. end
  783. end
  784. end
  785.  
  786. if id_choix == 0 then
  787.  
  788. if choix_item > 6 and choix_item < 18 then
  789.  
  790. choix_item = (choix_item -1) * 10
  791.  
  792. elseif choix_item > 18 and choix_item < 20 then
  793.  
  794. choix_item = (choix_item - 2) * 10
  795.  
  796. elseif choix_item > 20 and choix_item < 24 then
  797.  
  798. choix_item = (choix_item -3) * 10
  799.  
  800. else
  801.  
  802. choix_item = choix_item * 10
  803.  
  804. end
  805.  
  806. else
  807.  
  808. choix_item = id_choix * 10
  809.  
  810. end
  811.  
  812. elseif choix_item == 2 then
  813.  
  814. say_title("Anneau du Staff :")
  815. say("")
  816. choix_item = select("Glaive", "Lance", "Lame guillotine", "Lance araignée", "Gisarme", "Suivant", "Annuler")
  817.  
  818. if choix_item == 7 then return
  819.  
  820. elseif choix_item == 6 then
  821.  
  822. say_title("Anneau du Staff :")
  823. say("")
  824. choix_item = select("Faux de guerre", "Lame de fer rouge", "Fourche militaire", "Hallebrade", "Grande hache", "Suivant", "Annuler") + 5
  825.  
  826. if choix_item == 12 then return
  827.  
  828. elseif choix_item == 7 then
  829.  
  830. id_choix = 3210
  831.  
  832. elseif choix_item == 11 then
  833.  
  834. say_title("Anneau du Staff :")
  835. say("")
  836. choix_item = select("Pique de glace", "Epée des douzes esprits", "Lame du salut", "Tueuse de lion", "Partisan", "Suivant", "Annuler") + 10
  837.  
  838. if choix_item == 17 then return
  839.  
  840. elseif choix_item == 16 then
  841.  
  842. say_title("Anneau du Staff :")
  843. say("")
  844. choix_item = select("Lame électromagnétique", "Lame voleuse d'âme", "Epée de rancune", "Tueuse de dragon jaune", "Tueuse de dragon bleu", "Suivant", "Annuler") + 15
  845.  
  846. if choix_item == 22 then return
  847.  
  848. elseif choix_item == 21 then
  849.  
  850. say_title("Anneau du Staff :")
  851. say("")
  852. choix_item = select("Epée solaire", "Lame du dieu dragon", "Annuler") + 20
  853.  
  854. if choix_item == 23 then return end
  855.  
  856. end
  857. end
  858. end
  859. end
  860.  
  861. if id_choix == 0 then
  862.  
  863. if choix_item > 6 then
  864.  
  865. choix_item = 3000 + (choix_item -2)*10
  866.  
  867. else
  868.  
  869. choix_item = 3000 + (choix_item -1)*10
  870.  
  871. end
  872.  
  873. else
  874.  
  875. choix_item = id_choix
  876.  
  877. end
  878.  
  879.  
  880. elseif choix_item == 3 then
  881.  
  882. say_title("Anneau du Staff :")
  883. say("")
  884. choix_item = select("Dague", "Amija", "Dague cobra", "Neuf lame", "Dague ciseau", "Suivant", "Annuler")
  885.  
  886. if choix_item == 7 then return
  887.  
  888. elseif choix_item == 2 then
  889.  
  890. id_choix = 4000
  891.  
  892. elseif choix_item == 4 then
  893.  
  894. id_choix = 4010
  895.  
  896. elseif choix_item == 6 then
  897.  
  898. say_title("Anneau du Staff :")
  899. say("")
  900. choix_item = select("Couteau court", "Dague de feuille noire", "Couteau porte bonheur", "Couteau morsure de chat", "Poignard Visage du diable", "Suivant", "Annuler") + 5
  901.  
  902. if choix_item == 12 then return
  903.  
  904. elseif choix_item == 6 then
  905.  
  906. id_choix = 4020
  907.  
  908. elseif choix_item == 11 then
  909.  
  910. say_title("Anneau du Staff :")
  911. say("")
  912. choix_item = select("Dague sanglante", "Couteau de nervure", "Chakram", "Couteau de dragon", "Couteau d'éclairs", "Suivant", "Annuler") + 10
  913.  
  914. if choix_item == 17 then return
  915.  
  916. elseif choix_item == 16 then
  917.  
  918. say_title("Anneau du Staff :")
  919. say("")
  920. choix_item = select("Couteaux siamois", "Chakram Ailes du diable", "Couteau à dents de scie", "Couteau Lumière du soleil", "Couteau ruisselant", "Annuler") + 15
  921.  
  922. if choix_item == 16 then return end
  923.  
  924. end
  925. end
  926. end
  927.  
  928. if id_choix == 0 then
  929.  
  930. if choix_item == 3 then
  931.  
  932. choix_item = 1000 + (choix_item -1) * 10
  933.  
  934. elseif choix_item == 5 then
  935.  
  936. choix_item = 1000 + (choix_item -2) * 10
  937.  
  938. elseif choix_item > 5 then
  939.  
  940. choix_item = 1000 + (choix_item -4) * 10
  941.  
  942. end
  943.  
  944. else
  945.  
  946. choix_item = id_choix
  947.  
  948. end
  949.  
  950. elseif choix_item == 4 then
  951.  
  952. say_title("Anneau du Staff :")
  953. say("")
  954. choix_item = select("Arc court", "Arc long", "Arc composite", "Arc de bataille", "Arc long de cavalerie", "Suivant", "Annuler")
  955.  
  956. if choix_item == 7 then return
  957.  
  958. elseif choix_item == 6 then
  959.  
  960. say_title("Anneau du Staff :")
  961. say("")
  962. choix_item = select("Arc de bataille", "Arc à cornes", "Arc cuivré ", "Arc de ruine noire", "Arc d'oeil rouge", "Suivant", "Annuler") + 5
  963.  
  964. if choix_item == 12 then return
  965.  
  966. elseif choix_item == 7 then
  967.  
  968. id_choix = 2150
  969.  
  970. elseif choix_item == 11 then
  971.  
  972. say_title("Anneau du Staff :")
  973. say("")
  974. choix_item = select("Arc de feuilles épines", "Arc à cornes de taureaux", "Arc de licorne", "Arc d'aile géante", "Arc d'abricot divin", "Suivant", "Annuler") + 10
  975.  
  976. if choix_item == 17 then return
  977.  
  978. elseif choix_item == 16 then
  979.  
  980. say_title("Anneau du Staff :")
  981. say("")
  982. choix_item = select("Arc géant dragon jaune", "Arc de dragon bleu", "Arc de corbeau d'acier", "Arc diabolique géant", "Arbalète fantome", "Annuler") + 15
  983.  
  984. if choix_item == 21 then return
  985.  
  986. elseif choix_item == 17 then
  987.  
  988. id_choix = 2180
  989.  
  990. elseif choix_item == 18 then
  991.  
  992. id_choix = 2170
  993.  
  994. elseif choix_item == 19 then
  995.  
  996. id_choix = 2160
  997.  
  998. elseif choix_item == 20 then
  999.  
  1000. id_choix = 2190
  1001.  
  1002. end
  1003. end
  1004. end
  1005. end
  1006.  
  1007. if id_choix == 0 then
  1008.  
  1009. if choix_item > 6 then
  1010.  
  1011. choix_item = 2000 + (choix_item -2) * 10
  1012.  
  1013. else
  1014.  
  1015. choix_item = 2000 + (choix_item -1) * 10
  1016.  
  1017. end
  1018.  
  1019. else
  1020.  
  1021. choix_item = id_choix
  1022.  
  1023. end
  1024.  
  1025. elseif choix_item == 5 then
  1026.  
  1027. say_title("Anneau du Staff :")
  1028. say("")
  1029. choix_item = select("Gong de cuivre", "Gong d'argent", "Gong d'or", "Gong antique", "Gong de jade", "Suivant", "Annuler")
  1030.  
  1031. if choix_item == 7 then return
  1032.  
  1033. elseif choix_item ==4 then
  1034.  
  1035. id_choix = 5110
  1036.  
  1037. elseif choix_item == 6 then
  1038.  
  1039. say_title("Anneau du Staff :")
  1040. say("")
  1041. choix_item = select("Gong de fontaine", "Gong d'abricot", "Gong magique", "Gong insecte d'or", "Gong d'acier", "Suivant", "Annuler") + 5
  1042.  
  1043. if choix_item == 12 then return
  1044.  
  1045. elseif choix_item == 11 then
  1046.  
  1047. say_title("Anneau du Staff :")
  1048. say("")
  1049. choix_item = select("Gong oiseau de tonnerre", "Gong terre et ciel", "Gong de bambou", "Gong de l'hibiscus", "Gong du dragon", "Gong sinistre évent.", "Annuler") + 10
  1050.  
  1051. if choix_item == 17 then return
  1052.  
  1053. elseif choix_item == 13 then
  1054.  
  1055. id_choix = 5120
  1056.  
  1057. elseif choix_item ==14 then
  1058.  
  1059. id_choix = 5150
  1060.  
  1061. elseif choix_item == 15 then
  1062.  
  1063. id_choix = 5140
  1064.  
  1065. elseif choix_item == 16 then
  1066.  
  1067. id_choix = 5130
  1068.  
  1069. end
  1070. end
  1071. end
  1072.  
  1073. if id_choix == 0 then
  1074.  
  1075. if choix_item > 3 then
  1076.  
  1077. choix_item = 5000 + (choix_item -2) * 10
  1078.  
  1079. else
  1080.  
  1081. choix_item = 5000 + (choix_item -1) * 10
  1082.  
  1083. end
  1084.  
  1085. else
  1086.  
  1087. choix_item = id_choix
  1088.  
  1089. end
  1090.  
  1091. elseif choix_item == 6 then
  1092.  
  1093. say_title("Anneau du Staff :")
  1094. say("")
  1095. choix_item = select("Eventail simple", "Eventail de fer", "Eventail du tigre noir", "Eventail aile de grue", "Eventail du paon", "Suivant", "Annuler")
  1096.  
  1097. if choix_item == 7 then return
  1098.  
  1099. elseif choix_item == 6 then
  1100.  
  1101. say_title("Anneau du Staff :")
  1102. say("")
  1103. choix_item = select("Eventail vent d'automne", "Eventail aquatique", "Eventail de pierre", "Eventail de l'océan", "Eventail de piqûre", "Suivant", "Annuler") + 5
  1104.  
  1105. if choix_item == 12 then return
  1106.  
  1107. elseif choix_item == 6 then
  1108.  
  1109. id_choix = 7160
  1110.  
  1111. elseif choix_item == 11 then
  1112.  
  1113. say_title("Anneau du Staff :")
  1114. say("")
  1115. choix_item = select("Eventail du phoenix", "Eventail triple", "Eventail de cils", "Eventail Oiseau céleste", "Eventail du salut", "Suivant", "Annuler") + 10
  1116.  
  1117. if choix_item == 17 then return
  1118.  
  1119. elseif choix_item == 16 then
  1120.  
  1121. say_title("Anneau du Staff :")
  1122. say("")
  1123. choix_item = select("Eventail d'extase", "Eventail démoniaque", "Eventail des 8 trigams", "Eventail du dragon couché ", "Annuler") + 15
  1124.  
  1125. if choix_item == 20 then return
  1126.  
  1127. elseif choix_item == 17 then
  1128.  
  1129. id_choix = 7190
  1130.  
  1131. elseif choix_item == 18 then
  1132.  
  1133. id_choix = 7170
  1134.  
  1135. elseif choix_item == 19 then
  1136.  
  1137. id_choix = 7180
  1138.  
  1139. end
  1140. end
  1141. end
  1142. end
  1143.  
  1144. if id_choix == 0 then
  1145.  
  1146. if choix_item > 5 then
  1147.  
  1148. choix_item = 7000 + (choix_item - 2) * 10
  1149.  
  1150. else
  1151.  
  1152. choix_item = 7000 + (choix_item - 1) * 10
  1153.  
  1154. end
  1155.  
  1156. else
  1157.  
  1158. choix_item = id_choix
  1159.  
  1160. end
  1161. end
  1162.  
  1163. elseif choix_item == 2 then
  1164.  
  1165. say_title("Anneau du Staff :")
  1166. say("")
  1167. choix_item = select("Armure niveau 0", "Armure niveau 9", "Armure niveau 18", "Armure niveau 26", "Armure niveau 34", "Suivant", "Annuler")
  1168.  
  1169. if choix_item == 7 then return
  1170.  
  1171. elseif choix_item == 6 then
  1172.  
  1173. say_title("Anneau du Staff :")
  1174. say("")
  1175. choix_item = select("Armure niveau 42", "Armure niveau 48", "Armure niveau 54", "Armure niveau 61", "Armure niveau 66", "Suivant", "Annuler") + 5
  1176.  
  1177. if choix_item == 12 then return
  1178.  
  1179. elseif choix_item == 11 then
  1180.  
  1181. say_title("Anneau du Staff :")
  1182. say("")
  1183. choix_item = select("Armure de l'empereur", "Armure olympie", "Annuler") + 10
  1184.  
  1185. if choix_item == 13 then return end
  1186.  
  1187. end
  1188. end
  1189.  
  1190. say_title("Anneau du Staff :")
  1191. say("")
  1192. local choix_race = select("Guerrier", "Ninja", "Sura", "Chamane", "Annuler")
  1193.  
  1194. if choix_race == 5 then return
  1195.  
  1196. elseif choix_item == 12 then
  1197.  
  1198. if choix_race == 1 then choix_item = 11979
  1199.  
  1200. elseif choix_race == 2 then choix_item = 11981
  1201.  
  1202. elseif choix_race == 3 then choix_item = 11980
  1203.  
  1204. elseif choix_race == 4 then choix_item = 11982
  1205.  
  1206. end
  1207.  
  1208. elseif choix_item == 11 then
  1209.  
  1210. choix_item = 11970 + choix_race
  1211.  
  1212. else
  1213.  
  1214. choix_item = 11000 + (choix_race * 200) + ( (choix_item -1) * 10 )
  1215.  
  1216. end
  1217.  
  1218. elseif choix_item == 3 then
  1219.  
  1220. say_title("Anneau du Staff :")
  1221. say("")
  1222. choix_item = select( "Heaume", "Bouclier", "Bijoux et chaussures", "Annuler")
  1223.  
  1224. if choix_item == 1 then
  1225.  
  1226. say_title("Anneau du Staff :")
  1227. say("")
  1228. choix_item = select("Heaume niveau 1", "Heaume niveau 21", "Heaume niveau 41", "Annuler")
  1229.  
  1230. if choix_item == 4 then return end
  1231.  
  1232. say_title("Anneau du Staff :")
  1233. say("")
  1234. choix_race = select("Guerrier", "Ninja", "Sura", "Chamane", "Annuler")
  1235.  
  1236. if choix_race == 5 then return end
  1237.  
  1238. local casques = { 12200, 12340, 12480, 12620 }
  1239. choix_item = casques [choix_race] + (choix_item - 1) * 20
  1240.  
  1241. elseif choix_item == 2 then
  1242.  
  1243. say_title("Anneau du Staff :")
  1244. say("")
  1245. choix_item = select("Bouclier niveau 1", "Bouclier niveau 21", "Bouclier niveau 41", "Bouclier niveau 61", "Annuler")
  1246.  
  1247. if choix_item == 5 then return
  1248.  
  1249. elseif choix_item == 4 then
  1250.  
  1251. say_title("Anneau du Staff :")
  1252. say("")
  1253. choix_item = select("Bouclier de faucon", "Bouclier tigre singe", "Bouclier Tranc du lion", "Boulcier écaille de dragon", "Annuler") + 3
  1254.  
  1255. if choix_item == 8 then return end
  1256.  
  1257. end
  1258.  
  1259. choix_item = 13000 + (choix_item -1) * 20
  1260.  
  1261.  
  1262. elseif choix_item == 3 then
  1263.  
  1264. say_title("Anneau du Staff :")
  1265. say("")
  1266. local type = select ("Bracelets", "Chaussures", "Collier", "Boucles d'oreille", "Annuler")
  1267.  
  1268. if type == 5 then return
  1269.  
  1270. elseif type == 2 then
  1271.  
  1272. say_title("Anneau du Staff :")
  1273. say("")
  1274. choix_item = select("Chaussures de cuir", "Chaussures de bambou", "Chaussures de bois", "Chaussures de fil d'or", "Bottes de cuir", "Suivant", "Annuler")
  1275.  
  1276. if choix_item == 7 then return
  1277.  
  1278. elseif choix_item == 6 then
  1279.  
  1280. say_title("Anneau du Staff :")
  1281. say("")
  1282. choix_item = select("Chaussures en or", "Bottes de bronze", "Chaussures de jade", "Chaussure d'extase", "Bottes des nimbes", "Suivant", "Annuler") + 5
  1283.  
  1284. if choix_item == 12 then return
  1285.  
  1286. elseif choix_item == 11 then
  1287.  
  1288. say_title("Anneau du Staff :")
  1289. say("")
  1290. choix_item = select("Chaussire de phoenix", "Chaussures Oiseaux de feu", "Annuler") + 10
  1291.  
  1292. if choix_item == 13 then return end
  1293.  
  1294. end
  1295. end
  1296.  
  1297. choix_item = 15000 + (choix_item - 1) * 20
  1298.  
  1299. else
  1300.  
  1301. local type2 = {"Bracelet "," ", "Collier ", "Boucles d'oreille "}
  1302. choix_item = select(type2[type].."de bois", type2[type].."de cuivre", type2[type].."d'argent", type2[type].."d'or", type2[type].."de jade", "Suivant", "Annuler")
  1303.  
  1304. if choix_item == 7 then return
  1305.  
  1306. elseif choix_item == 6 then
  1307.  
  1308. choix_item = select(type2[type].."d'ébène", type2[type].."de perles", type2[type].."d'or blanc", type2[type].."de cristal", type2[type].."d'améthyse", type2[type].."de larme céleste", "Annuler") + 5
  1309.  
  1310. if choix_item == 12 then return end
  1311.  
  1312. end
  1313.  
  1314. local type3 = { 14000, 0, 16000, 17000}
  1315. choix_item = type3[type] + (choix_item - 1) * 20
  1316.  
  1317. end
  1318. end
  1319.  
  1320. elseif choix_item == 4 then
  1321.  
  1322. choix_item = select("Pierre de pénétration", "Pierre de souffle mortel", "Pierre d' apaisement", "Pierre anti guerrier", "Pierre anti ninja", "Suivant", "Annuler")
  1323.  
  1324. if choix_item == 7 then return
  1325.  
  1326. elseif choix_item == 6 then
  1327.  
  1328. choix_item = select("Pierre anti sura", "Pierre anti chamane", "Pierre anti monstre", "Pierre d'évasion", "Pierre d'esquive", "Suivant", "Annuler") + 5
  1329.  
  1330. if choix_item == 12 then return
  1331.  
  1332. elseif choix_item == 11 then
  1333.  
  1334. choix_item = select("Pierre de magie", "Pierre d'esprit de vie", "Pierre de défense", "Pierre de défense", "Pierre de hâte", "Annuler") + 10
  1335.  
  1336. if choix_item == 16 then return end
  1337.  
  1338. end
  1339. end
  1340.  
  1341. choix_item = 28030 + ( choix_item - 1)
  1342.  
  1343. end
  1344.  
  1345. if choix_item > 28000 and choix_item < 28600 then
  1346.  
  1347. say_title("Anneau du Staff :")
  1348. say("")
  1349.  
  1350. grade = select("Pierre +0", "Pierre +1", "Pierre +2", "Pierre +3", "Pierre +4", "Pierre +5", "Annuler")
  1351.  
  1352. if grade == 7 then return end
  1353.  
  1354. choix_item = choix_item + ( (grade - 1) * 100)
  1355.  
  1356. else
  1357.  
  1358. say_title("Anneau du Staff :")
  1359. say("")
  1360. grade = select("Item +0", "Item +1", "Item +2", "Item +3", "Item +4", "Suivant", "Annuler")
  1361.  
  1362. if grade == 7 then return
  1363.  
  1364. elseif grade == 6 then
  1365.  
  1366. say_title("Anneau du Staff :")
  1367. say("")
  1368. grade = select("Item +5", "Item +6", "Item +7", "Item +8", "Item +9", "Annuler") + 5
  1369.  
  1370. if grade == 11 then return end
  1371.  
  1372. choix_item = choix_item + (grade - 1)
  1373.  
  1374. end
  1375. end
  1376.  
  1377.  
  1378. command("i "..choix_item)
  1379.  
  1380. elseif 3==a then
  1381.  
  1382. say_title("Anneau du Staff :")
  1383. say("")
  1384. say("Faîtes votre choix !")
  1385.  
  1386. local choix_metin = select("Metin de tristesse","Metin de combat","Metin battle","Metin de cupidité ","Metin noire","Suivant","Annuler")
  1387.  
  1388. if choix_metin == 7 then return
  1389.  
  1390. elseif choix_metin == 6 then
  1391.  
  1392. say_title("Anneau du Staff :")
  1393. say("")
  1394. choix_metin = select("Metin des ténèbres", "Metin de jalousie", "Metin d'âme", "Metin d'ombre", "Metin de force", "Suivant", "Annuler") + 5
  1395.  
  1396. if choix_metin == 12 then return
  1397.  
  1398. elseif choix_metin == 11 then
  1399.  
  1400. say_title("Anneau du Staff :")
  1401. say("")
  1402. choix_metin = select("Metin du diable", "Metin déchue", "Metin de mort", "Metin de meurtre", "Metin Pung-Ma", "Suivant", "Annuler") + 10
  1403.  
  1404. if choix_metin == 17 then return
  1405.  
  1406. elseif choix_metin == 16 then
  1407.  
  1408. say_title("Anneau du Staff :")
  1409. say("")
  1410. choix_metin = select("Metin Ma-An", "Metin Tu-Young", "Metin Jeon-Un", "Annuler") + 15
  1411.  
  1412. if choix_metin == 19 then return end
  1413.  
  1414. end
  1415. end
  1416. end
  1417.  
  1418. if choix_metin >= 15 then
  1419.  
  1420. choix_metin = 8001 + (choix_metin + 8)
  1421.  
  1422. else
  1423.  
  1424. choix_metin = 8001 + (choix_metin - 1)
  1425.  
  1426. end
  1427.  
  1428. say_title("Anneau du Staff :")
  1429. say("")
  1430. say("Combien désires-tu de metins faire apparaitre ?")
  1431. local nombre = input()
  1432.  
  1433. if tonumber(nombre) < 0 then return end
  1434.  
  1435. command("m "..choix_metin .." "..nombre)
  1436.  
  1437. elseif 4==a then
  1438.  
  1439. say_title("Anneau du Staff :")
  1440. say("")
  1441.  
  1442. local c=select("OX Contest","Events PVE","Events PVP","Téléporter les Joueurs au Village","Tuer tous les monstres sur la map","Annuler")
  1443.  
  1444. if 1==c then
  1445.  
  1446. local d=select("Gestion","Arrêt de Force","Distribution des prix","Annuler")
  1447.  
  1448. if 1==d then
  1449.  
  1450. say_title("Anneau du Staff :")
  1451. say("")
  1452.  
  1453. local stat = oxevent.get_status()
  1454.  
  1455. if stat == 0 then
  1456.  
  1457. say("Voulez vous lancer l'OX ?")
  1458. say("")
  1459. local s = select("Autoriser les inscriptions", "Annuler")
  1460.  
  1461. if s == 1 then
  1462.  
  1463. local v = oxevent.open()
  1464.  
  1465. if v == 0 then
  1466.  
  1467. say_title("Anneau du Staff :")
  1468. say("")
  1469. say("Les inscriptions sont closes.")
  1470. say("Il vous suffit de les ouvir pour faire entrer")
  1471. say("les participants .")
  1472. say("")
  1473.  
  1474. elseif v == 1 then
  1475.  
  1476. say_title("Anneau du Staff :")
  1477. say("")
  1478. ----"12345678901234567890123456789012345678901234567890"|
  1479. say("Les inscriptions sont actuellement ouvertes.")
  1480. say("Attendez les participants.")
  1481. say("")
  1482.  
  1483. notice_all("Bonjour! Une nouvelle partie de l'OX-Contest va bientôt commencer.")
  1484. notice_all("Rendez-vous auprès d'Uriel pour y participer.")
  1485.  
  1486. else
  1487.  
  1488. say_title("Anneau du Staff :")
  1489. say("")
  1490. say("Un concours OX est déjà en cours.")
  1491. say("Patientez en attendant que celui-ci se termine puis")
  1492. say("retenter l'ouverture des inscriptions .")
  1493. say("")
  1494.  
  1495. end
  1496. end
  1497.  
  1498. elseif stat == 1 then
  1499.  
  1500. say("Fermer les inscriptions ?")
  1501.  
  1502. if oxevent.get_attender() > 1 then
  1503.  
  1504. say("Il y a pour l'instant "..oxevent.get_attender().." participants")
  1505.  
  1506. else
  1507.  
  1508. say("Il y a pour l'instant "..oxevent.get_attender().." participant")
  1509.  
  1510. end
  1511.  
  1512. say("")
  1513. local s = select("Fermer", "Annuler")
  1514.  
  1515. if s == 1 then
  1516.  
  1517. oxevent.close()
  1518.  
  1519. say_title("Anneau du Staff :")
  1520. say("")
  1521. say("Les inscriptions ont été fermées.")
  1522. say("Vous pouvez lancer les questions.")
  1523. say("")
  1524.  
  1525. end
  1526.  
  1527. elseif stat == 2 then
  1528.  
  1529. say_title("Anneau du Staff :")
  1530. say("")
  1531. say("Faites votre choix !")
  1532. say("")
  1533. local s = select("Lancer une question", "Arreter OX","Annuler")
  1534.  
  1535. if s == 1 then
  1536.  
  1537. local v = oxevent.quiz(1, 30)
  1538.  
  1539. say_title("Anneau du Staff :")
  1540. say("")
  1541.  
  1542. if v == 0 then
  1543.  
  1544.  
  1545. say("L'OX est terminé .")
  1546. say("")
  1547.  
  1548. elseif v == 1 then
  1549.  
  1550. say("La question a été lancée.")
  1551. say("")
  1552.  
  1553. else
  1554.  
  1555. say("L'OX est terminé .")
  1556. say("")
  1557.  
  1558. end
  1559.  
  1560. elseif s == 2 then
  1561.  
  1562. oxevent.end_event()
  1563.  
  1564. notice_all("L'OX-Contest est à présent terminé.")
  1565. notice_all("Vous allez être téléporter vers la cité de de vos royaumes respectifs.")
  1566. notice_all("Merci à tous les participants !")
  1567.  
  1568. say("L'OX est terminé .")
  1569. say("")
  1570.  
  1571. end
  1572.  
  1573. elseif stat == 3 then
  1574.  
  1575. say_title("Anneau du Staff :")
  1576. say("")
  1577. say("Une question a déjà été lancée .")
  1578. say("Veuillez patienter un moment svp .")
  1579. say("")
  1580.  
  1581. else
  1582. say_title("Anneau du Staff :")
  1583. say("")
  1584. say("La question est lancée.")
  1585.  
  1586. end
  1587.  
  1588. elseif 2==d then
  1589.  
  1590. ----"12345678901234567890123456789012345678901234567890"|
  1591. say("Cette fonction arrête brutalement l'OX, sans ")
  1592. say("vainqueur, ni récompense.")
  1593. say("")
  1594. say("Voulez vous arréter l'OX ? ")
  1595. local s = select("Oui", "Non")
  1596.  
  1597. if s == 1 then
  1598.  
  1599. oxevent.end_event_force()
  1600. say("")
  1601. say("L'OX a été arrêté .")
  1602. say("")
  1603.  
  1604. end
  1605.  
  1606. elseif 3==d then
  1607.  
  1608. ----"12345678901234567890123456789012345678901234567890"|
  1609. say("Tapez le numéro de l'item à donner en récompense.")
  1610. say("")
  1611. local item_vnum = input()
  1612. say("Tapez la quantité désirée.")
  1613. say("")
  1614. local item_count = input()
  1615. oxevent.give_item(item_vnum, item_count)
  1616. say("Vous avez récompensé "..oxevent.get_attender().." participant(s)")
  1617. say("")
  1618.  
  1619. if oxevent.get_attender() <2 then
  1620.  
  1621. notice_all(oxevent.get_attender().." participant a été récompensé pour sa performance")
  1622.  
  1623. else
  1624.  
  1625. notice_all(oxevent.get_attender().." participants ont été récompensés pour leur performance")
  1626.  
  1627. end
  1628.  
  1629. notice_all("La récompense est : "..item_count.." x "..item_name(item_vnum).." .")
  1630.  
  1631. end
  1632.  
  1633. elseif 2==c then
  1634.  
  1635. local choix_event_pve=select("Evenement Metin/Boss", "Arreter Metin/Boss", "Annuler")
  1636.  
  1637. if choix_event_pve == 1 then
  1638.  
  1639. --Map 1 rouge : game.get_event_flag( "metin_boss" ) == 1
  1640. --Map 1 jaune : game.get_event_flag( "metin_boss" ) == 2
  1641. --Map 1 bleu : game.get_event_flag( "metin_boss" ) == 3
  1642. --Chaque empire : game.get_event_flag( "metin_boss" ) == 4
  1643. --Au désert : game.get_event_flag( "metin_boss" ) == 5
  1644.  
  1645. say_title("Anneau du Staff :")
  1646. say("")
  1647. say("Sur quelle map doit se dérouler l'évènement ?")
  1648. say("")
  1649. local lieu = {"en map 1 rouge", "en map 1 jaune", "en map 1 bleu", "dans chaque empire", "au désert"}
  1650. local choix_lieu = select(lieu[1], lieu[2], lieu[3], lieu[4], lieu[5], "Annuler")
  1651.  
  1652. if choix_lieu == 6 then return
  1653.  
  1654. elseif game.get_event_flag( "metin_boss" ) == choix_lieu then
  1655.  
  1656. say_title("Anneau du Staff :")
  1657. say("")
  1658. say("Un énènement de type Metin/Boss est déjà en cours")
  1659. say("en ce même lieu...")
  1660. say("")
  1661.  
  1662. return
  1663.  
  1664. else
  1665.  
  1666. say_title("Anneau de thor:")
  1667. say("")
  1668. say("Vous allez être téléporté dans la map choisie.")
  1669. say("Merci de patienter :) ")
  1670. game.set_event_flag("metin_boss", choix_lieu)
  1671. pc.setqf("declencheur",1)
  1672.  
  1673. end
  1674.  
  1675. wait()
  1676.  
  1677. notice_all("Un évènement de type Metin/Boss va bientôt commencer .")
  1678. notice_all("Profitez-en! L'évènement a lieu "..lieu[game.get_event_flag( "metin_boss" )])
  1679.  
  1680. pc.warp(locale.coord_empire[game.get_event_flag( "metin_boss" )][1], locale.coord_empire[game.get_event_flag( "metin_boss" )][2])
  1681.  
  1682. elseif choix_event_pve == 2 then
  1683.  
  1684. game.set_event_flag("metin_boss", 0)
  1685. kill_all_in_map( 1 )
  1686. kill_all_in_map( 21 )
  1687. kill_all_in_map( 41 )
  1688. kill_all_in_map( 63 )
  1689.  
  1690. end
  1691.  
  1692. elseif 3==c then
  1693.  
  1694. say_title("Anneau du Staff :")
  1695. say("")
  1696.  
  1697. elseif 4==c then
  1698.  
  1699. say_title("Anneau du Staff :")
  1700. say("")
  1701. say("Voulez-vous vraiment téléporter tous les joueurs")
  1702. say("de votre map dans leur village ?")
  1703. say("")
  1704.  
  1705. local s = select("Oui", "Non")
  1706.  
  1707. if s == 1 then
  1708.  
  1709. warp_all_to_village( pc . get_map_index ( ) );
  1710.  
  1711. end
  1712.  
  1713. elseif 6==c then
  1714.  
  1715. say_title("Anneau du Staff :")
  1716. say("")
  1717. say("Voulez-vous vraiment tuer tous les")
  1718. say("mobs sur la map ?")
  1719. say("")
  1720.  
  1721. local s = select("Oui", "Non")
  1722.  
  1723. if s == 1 then
  1724.  
  1725. kill_all_in_map( pc . get_map_index ( ) );
  1726.  
  1727. end
  1728. end
  1729. end
  1730. end
  1731.  
  1732. when login or enter with game.get_event_flag( "metin_boss" ) > 0 and pc.getqf("declencheur") == 1 and pc.is_gm() begin
  1733.  
  1734. if game.get_event_flag( "metin_boss" ) == 1 then
  1735.  
  1736. regen_in_map( 1, "./locale/hongkong/map/metin2_map_a1/event_metin.txt" )
  1737.  
  1738. elseif game.get_event_flag( "metin_boss" ) == 2 then
  1739.  
  1740. regen_in_map( 21, "./locale/hongkong/map/metin2_map_b1/event_metin.txt" )
  1741.  
  1742. elseif game.get_event_flag( "metin_boss" ) == 3 then
  1743.  
  1744. regen_in_map( 41, "./locale/hongkong/map/metin2_map_c1/event_metin.txt" )
  1745.  
  1746. elseif game.get_event_flag( "metin_boss" ) == 4 then
  1747.  
  1748.  
  1749. if pc.get_map_index() == 1 then
  1750.  
  1751. regen_in_map( 1, "./locale/hongkong/map/metin2_map_a1/event_metin.txt" )
  1752. timer("test_buff", 10)
  1753.  
  1754. elseif pc.get_map_index() == 21 then
  1755.  
  1756. regen_in_map( 21, "./locale/hongkong/map/metin2_map_b1/event_metin.txt" )
  1757. timer("test_buff", 10)
  1758.  
  1759. elseif pc.get_map_index() == 41 then
  1760.  
  1761. regen_in_map( 41, "./locale/hongkong/map/metin2_map_c1/event_metin.txt" )
  1762. pc.setqf("declencheur", 0)
  1763.  
  1764. end
  1765.  
  1766. elseif game.get_event_flag( "metin_boss" ) == 5 then
  1767.  
  1768. regen_in_map( 63, "./locale/hongkong/map/metin2_map_n_desert_01/event_metin.txt" )
  1769.  
  1770. end
  1771.  
  1772. if game.get_event_flag( "metin_boss" ) != 4 then pc.setqf("declencheur", 0) end
  1773.  
  1774. end
  1775.  
  1776. when test_buff.timer begin
  1777.  
  1778.  
  1779. if pc.get_map_index() == 1 then
  1780.  
  1781. pc.warp(locale.coord_empire[2][1], locale.coord_empire[2][2])
  1782.  
  1783. elseif pc.get_map_index() == 21 then
  1784.  
  1785. pc.warp(locale.coord_empire[3][1], locale.coord_empire[3][2])
  1786.  
  1787. end
  1788. end
  1789.  
  1790. elseif 5==a then
  1791.  
  1792. say_title("Anneau du Staff :")
  1793. say("")
  1794. say("Entrer le nom du joueur à bannir:")
  1795. local name = input()
  1796. if name=="" or name=="0" or name=""..pc.name.."" then --- Vérifie si l'input box est correctement remplit
  1797. chat("Nom invalide")
  1798. return
  1799. end
  1800. local player_check = mysql_select("SELECT COUNT(*) from player.player WHERE name='"..name.."' LIMIT 1;") --- Vérification de la validité du nom
  1801. if player_check[1][1] == "0" then
  1802. chat("Ce nom n'est pas attribué")
  1803. return
  1804. end
  1805. local check_acc_id = mysql_select("SELECT account_id from player.player where name='"..name.."' LIMIT 1;") --- Récupération du l'ID du compte (ex : 420)
  1806. local acc_id = check_acc_id[1][1]+1-1
  1807. local ban = mysql_select("SELECT login from account.account where id='"..acc_id.."' LIMIT 1;")
  1808. mysql_notselect("UPDATE account.account SET status='BLOCK' WHERE id='"..acc_id.."' LIMIT 1;") --- Bannissement du compte
  1809. chat("Le joueur "..name.." (ACC ID :"..ban[1][1]..") a correctement été bannis")
  1810. command("dc "..name) -- Déconnexion du joueur à bannir
  1811. end
  1812. end
  1813.  
  1814. end
Advertisement
Add Comment
Please, Sign In to add comment