IceOLator™ GoldenAges
Bannato
Ultima modifica da un moderatore:
Semi-Bottegaia portatile
Visto che un npc portatile sottoforma di quest che apre il negozio non si può fare, ho deciso di creare 1 quest che vende le Pozioni Rosse e Pozioni blu di tutte le dimensioni.
1) Aprite WinSCP;
2) Andate nella cartella delle quest;
3) Create una quest con il nome che volete voi in formato .quest (ad esempio: example.quest);
4) Dentro la quest metteteci questo script:
5) Salvate e chiudete la quest e dateci i permessi 0777 (cliccateci con il destro e aprite proprietà poi in ottale mettete 0777 e salvate);
6) Entrare nella vostra macchina virtuale;
7) Scrivete:
8) Scrivete:
9) Riavviate e voilà la vostra quest è pronta per l'uso.
1) Aprite WinSCP;
2) Andate nella cartella delle quest;
3) Create una quest con il nome che volete voi in formato .quest (ad esempio: example.quest);
4) Dentro la quest metteteci questo script:
PHP:
quest botte_mt2eth begin
state start begin
when login or levelup with pc.get_level() > 0 begin
set_state( "ganjanewton" )
end
end
state ganjanewton begin
when letter begin
send_letter( "Bottegaia Portatile" )
end
when button or info begin
say_title( "Bottegaia Portatile" )
set_state( "ganjanewton" )
local newton = select ("Pozioni Rosse", "Pozioni Blu", "Chiudi")
if newton == 1 then
say_title ("Bottegaia Portatile")
say ("Vuoi davvero comprare delle pozioni rosse?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in su")
local ganja = select ("Pozioni Rosse 'piccole'", "Pozioni Rosse 'medie'", "Pozioni Rosse 'grandi'", "Chiudi")
if ganja == 1 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja1 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja1 == 1 then
if pc.gold <= 49999 then
say_title ("Bottegaia Portatile")
say ("Non hai 50.000 yang")
return
end
pc.give_item2 ("27001", 200)
pc.change_gold (-50000)
elseif ganja1 == 2 then
if pc.gold <= 99999 then
say_title ("Bottegaia Portatile")
say ("Non hai 100.000 yang")
return
end
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.change_gold (-100000)
elseif ganja1 == 3 then
if pc.gold <= 149999 then
say_title ("Bottegaia Portatile")
say ("Non hai 150.000 yang")
return
end
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.change_gold (-150000)
elseif ganja1 == 4 then
if pc.gold <= 199999 then
say_title ("Bottegaia Portatile")
say ("Non hai 200.000 yang")
return
end
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.change_gold (-200000)
elseif ganja1 == 5 then
if pc.gold <= 249999 then
say_title ("Bottegaia Portatile")
say ("Non hai 250.000 yang")
return
end
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.give_item2 ("27001", 200)
pc.change_gold (-250000)
elseif ganja1 == 5 then
return
end
elseif ganja == 2 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja2 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja2 == 1 then
if pc.gold <= 74999 then
say_title ("Bottegaia Portatile")
say ("Non hai 75.000 yang")
return
end
pc.give_item2 ("27002", 200)
pc.change_gold (-75000)
elseif ganja2 == 2 then
if pc.gold <= 149999 then
say_title ("Bottegaia Portatile")
say ("Non hai 150.000 yang")
return
end
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.change_gold (-150000)
elseif ganja2 == 3 then
if pc.gold <= 224999 then
say_title ("Bottegaia Portatile")
say ("Non hai 225.000 yang")
return
end
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.change_gold (-225000)
elseif ganja2 == 4 then
if pc.gold <= 299999 then
say_title ("Bottegaia Portatile")
say ("Non hai 300.000 yang")
return
end
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.change_gold (-300000)
elseif ganja2 == 5 then
if pc.gold <= 374999 then
say_title ("Bottegaia Portatile")
say ("Non hai 375.000 yang")
return
end
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.give_item2 ("27002", 200)
pc.change_gold (-375000)
elseif ganja2 == 5 then
return
end
elseif ganja == 3 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja3 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja3 == 1 then
if pc.gold <= 99999 then
say_title ("Bottegaia Portatile")
say ("Non hai 100.000 yang")
return
end
pc.give_item2 ("27003", 200)
pc.change_gold (-100000)
elseif ganja3 == 2 then
if pc.gold <= 199999 then
say_title ("Bottegaia Portatile")
say ("Non hai 200.000 yang")
return
end
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.change_gold (-200000)
elseif ganja3 == 3 then
if pc.gold <= 299999 then
say_title ("Bottegaia Portatile")
say ("Non hai 300.000 yang")
return
end
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.change_gold (-300000)
elseif ganja3 == 4 then
if pc.gold <= 399999 then
say_title ("Bottegaia Portatile")
say ("Non hai 400.000 yang")
return
end
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.change_gold (-400000)
elseif ganja3 == 5 then
if pc.gold <= 499999 then
say_title ("Bottegaia Portatile")
say ("Non hai 500.000 yang")
return
end
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.give_item2 ("27003", 200)
pc.change_gold (-500000)
elseif ganja3 == 5 then
return
end
end
elseif newton == 2 then
say_title ("Bottegaia Portatile")
say ("Vuoi davvero comprare delle pozioni blu?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in su")
local ganja4 = select ("Pozioni Blu 'piccole'", "Pozioni Blu 'medie'", "Pozioni Blu 'grandi'", "Chiudi")
if ganja4 == 1 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja5 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja5 == 1 then
if pc.gold <= 74999 then
say_title ("Bottegaia Portatile")
say ("Non hai 75.000 yang")
return
end
pc.give_item2 ("27004", 200)
pc.change_gold (-75000)
elseif ganja5 == 2 then
if pc.gold <= 149999 then
say_title ("Bottegaia Portatile")
say ("Non hai 150.000 yang")
return
end
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.change_gold (-150000)
elseif ganja5 == 3 then
if pc.gold <= 224999 then
say_title ("Bottegaia Portatile")
say ("Non hai 225.000 yang")
return
end
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.change_gold (-225000)
elseif ganja5 == 4 then
if pc.gold <= 299999 then
say_title ("Bottegaia Portatile")
say ("Non hai 300.000 yang")
return
end
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.change_gold (-300000)
elseif ganja5 == 5 then
if pc.gold <= 374999 then
say_title ("Bottegaia Portatile")
say ("Non hai 375.000 yang")
return
end
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.give_item2 ("27004", 200)
pc.change_gold (-375000)
elseif ganja5 == 5 then
return
end
elseif ganja4 == 2 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja6 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja6 == 1 then
if pc.gold <= 99999 then
say_title ("Bottegaia Portatile")
say ("Non hai 100.000 yang")
return
end
pc.give_item2 ("27005", 200)
pc.change_gold (-100000)
elseif ganja6 == 2 then
if pc.gold <= 199999 then
say_title ("Bottegaia Portatile")
say ("Non hai 200.000 yang")
return
end
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.change_gold (-200000)
elseif ganja6 == 3 then
if pc.gold <= 299999 then
say_title ("Bottegaia Portatile")
say ("Non hai 300.000 yang")
return
end
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.change_gold (-300000)
elseif ganja6 == 4 then
if pc.gold <= 399999 then
say_title ("Bottegaia Portatile")
say ("Non hai 400.000 yang")
return
end
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.change_gold (-400000)
elseif ganja6 == 5 then
if pc.gold <= 499999 then
say_title ("Bottegaia Portatile")
say ("Non hai 500.000 yang")
return
end
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.give_item2 ("27005", 200)
pc.change_gold (-500000)
elseif ganja6 == 5 then
return
end
elseif ganja4 == 3 then
say_title ("Bottegaia Portatile")
say ("Scegli la quantita'")
local ganja7 = select ("200", "400", "600", "800", "1000", "Chiudi")
if ganja7 == 1 then
if pc.gold <= 124999 then
say_title ("Bottegaia Portatile")
say ("Non hai 125.000 yang")
return
end
pc.give_item2 ("27006", 200)
pc.change_gold (-125000)
elseif ganja7 == 2 then
if pc.gold <= 249999 then
say_title ("Bottegaia Portatile")
say ("Non hai 250.000 yang")
return
end
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.change_gold (-250000)
elseif ganja7 == 3 then
if pc.gold <= 324999 then
say_title ("Bottegaia Portatile")
say ("Non hai 325.000 yang")
return
end
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.change_gold (-325000)
elseif ganja7 == 4 then
if pc.gold <= 449999 then
say_title ("Bottegaia Portatile")
say ("Non hai 450.000 yang")
return
end
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.change_gold (-450000)
elseif ganja7 == 5 then
if pc.gold <= 574999 then
say_title ("Bottegaia Portatile")
say ("Non hai 575.000 yang")
return
end
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.give_item2 ("27006", 200)
pc.change_gold (-575000)
elseif ganja7 == 5 then
return
end
end
end
end
end
end
5) Salvate e chiudete la quest e dateci i permessi 0777 (cliccateci con il destro e aprite proprietà poi in ottale mettete 0777 e salvate);
6) Entrare nella vostra macchina virtuale;
7) Scrivete:
PHP:
cd /usr/game(o rain)/channel/share_data/locale/hongkong(o il nome del vostro locale)/quest
8) Scrivete:
PHP:
./qc example.quest
9) Riavviate e voilà la vostra quest è pronta per l'uso.
Non iniziate a dire che è una cazzata, inutile o cose del genere, io ho solo voluto dare un aiuto a quelli che ne hanno bisogno.
Complimenti gay 

