SHOW:
|
|
- or go back to the newest paste.
| 1 | -------------------------------- | |
| 2 | -- Quest Crea/Scambia Lingotto - | |
| 3 | -- By: LightMistic - | |
| 4 | -------------------------------- | |
| 5 | quest lingotti_uriel begin | |
| 6 | state start begin | |
| 7 | when 20011.chat."Lingotti" begin | |
| 8 | say ( "Ciao, che cosa vuoi?!" ) | |
| 9 | say ( "Non vedi che sono impegnato con i miei libri?" ) | |
| 10 | say ( "Non ho tempo da perdere con quelli come te." ) | |
| 11 | say ( "Aspetta sto vedendo del denaro o mi sbaglio?" ) | |
| 12 | local lingotto = select ( "100kk" , "250kk" , "500kk" , "1kkk" , "1.9kkk" , "No" ) | |
| 13 | if lingotto == 6 then | |
| 14 | say ( "Mi hai fatto perdere solo del tempo" ) | |
| 15 | say ( "dovresti vergognarti... " ) | |
| 16 | say ( "Ti avevo ritenuto un bravo ragazzo" ) | |
| 17 | say ( "invece sei un nabbo." ) | |
| 18 | elseif lingotto == 1 then | |
| 19 | if pc . gold >= 100000000 then | |
| 20 | pc . changegold ( - 100000000 ) | |
| 21 | pc . give_item2 ( "80003" , 1 ) | |
| 22 | say ( "Lo scambio ha avuto buon fine" ) | |
| 23 | else | |
| 24 | say ( "Non possiedi tanto denaro" ) | |
| 25 | end | |
| 26 | elseif lingotto == 2 then | |
| 27 | if pc . gold >= 250000000 then | |
| 28 | pc . changegold ( - 250000000 ) | |
| 29 | pc . give_item2 ( "80004" , 1 ) | |
| 30 | say ( "Lo scambio ha avuto buon fine" ) | |
| 31 | else | |
| 32 | say ( "Non possiedi tanto denaro" ) | |
| 33 | end | |
| 34 | elseif lingotto == 3 then | |
| 35 | if pc . gold >= 500000000 then | |
| 36 | pc . changegold ( - 500000000 ) | |
| 37 | pc . give_item2 ( "80005" , 1 ) | |
| 38 | say ( "Lo scambio ha avuto buon fine" ) | |
| 39 | else | |
| 40 | say ( "Non possiedi tanto denaro" ) | |
| 41 | end | |
| 42 | elseif lingotto == 4 then | |
| 43 | if pc . gold >= 1000000000 then | |
| 44 | pc . changegold ( - 1000000000 ) | |
| 45 | pc . give_item2 ( "80006" , 1 ) | |
| 46 | say ( "Lo scambio ha avuto buon fine" ) | |
| 47 | else | |
| 48 | say ( "Non possiedi tanto denaro" ) | |
| 49 | end | |
| 50 | elseif lingotto == 5 then | |
| 51 | if pc . gold >= 1900000000 then | |
| 52 | pc . changegold ( - 1900000000 ) | |
| 53 | pc . give_item2 ( "80007" , 1 ) | |
| 54 | say ( "Lo scambio ha avuto buon fine" ) | |
| 55 | else | |
| 56 | say ( "Non possiedi tanto denaro" ) | |
| 57 | end | |
| 58 | - | end |
| 58 | + | end -- if |
| 59 | - | end |
| 59 | + | end -- when |
| 60 | when 20011.chat."Scambia Lingotti" begin | |
| 61 | local scambio = select ( "100kk" , "200kk" , "500kk" , "1kkk" , "1.9kkk" ) | |
| 62 | if scambio == 1 then | |
| 63 | if pc . count_item ( 80003 ) >= 1 then | |
| 64 | pc . remove_item ( "80003" , 1 ) | |
| 65 | pc . changegold ( 100000000 ) | |
| 66 | say_reward ( "Hai ricevuto 100kk" ) | |
| 67 | else | |
| 68 | say ( "Non possiedi il lingotto" ) | |
| 69 | end | |
| 70 | elseif scambio == 2 then | |
| 71 | if pc . count_item ( 80004 ) >= 1 then | |
| 72 | pc . remove_item ( "80004" , 1 ) | |
| 73 | pc . changegold ( 200000000 ) | |
| 74 | say_reward ( "Hai ricevuto 200kk" ) | |
| 75 | else | |
| 76 | say ( "Non possiedi il lingotto" ) | |
| 77 | end | |
| 78 | elseif scambio == 3 then | |
| 79 | if pc . count_item ( 80005 ) >= 1 then | |
| 80 | pc . remove_item ( "80005" , 1 ) | |
| 81 | pc . changegold ( 500000000 ) | |
| 82 | say_reward ( "Hai ricevuto 500kk" ) | |
| 83 | else | |
| 84 | say ( "Non possiedi il lingotto" ) | |
| 85 | end | |
| 86 | elseif scambio == 4 then | |
| 87 | if pc . count_item ( 80006 ) >= 1 then | |
| 88 | pc . remove_item ( "80006" , 1 ) | |
| 89 | pc . changegold ( 1000000000 ) | |
| 90 | say_reward ( "Hai ricevuto 1kkk" ) | |
| 91 | else | |
| 92 | say ( "Non possiedi il lingotto" ) | |
| 93 | end | |
| 94 | elseif scambio == 5 then | |
| 95 | if pc . count_item ( 80007 ) >= 1 then | |
| 96 | pc . remove_item ( "80007" , 1 ) | |
| 97 | pc . changegold ( 1900000000 ) | |
| 98 | say_reward ( "Hai ricevuto 1.9kkk" ) | |
| 99 | else | |
| 100 | say ( "Non possiedi il lingotto" ) | |
| 101 | end | |
| 102 | - | end |
| 102 | + | end -- if |
| 103 | - | end |
| 103 | + | end -- when |
| 104 | - | end |
| 104 | + | end -- state |
| 105 | - | end |
| 105 | + | end -- quest |