Unmantained Guida [RELEASE]Semi-Bottegaia portatile!

Una guida contrassegnata come Unmantained contiene informazioni su un argomento obsoleto, non più utile o files non aggiornati da parte del creatore.
Stato
Discussione chiusa ad ulteriori risposte.
19 Novembre 2010
677
66
330
488
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:

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.
 
però mi sono perso al passaggio 7, come faccio a scrivere "_" se viene fuori "/" sulla macchina virtuale???
e poi devo scriverlo quando il server è on oppure prima di "./start" ???
 
Epica fail, ne hai vinta una su 2000 ;) Complimenti gay :P

Quando inizio ìio a creare qust però vedrai che non farò tutti sti burundismi xD
 
giusto, semplice ma utile, bastano un if e gli elseif con value pozze e qualche pc.give per item(cioè le pozze) , non è che abbia scoperto l'america, ma ogni sforzo è apprezzato, e preferisco lui che fa cose semplice e le rilascia , che quelli che fanno super script e non li pubblicano

Questa community di certo non si merita chissà che cosa, ormai si è capito che il 98% delle persone che stanno qui aspettano solo la pappa pronta... Quindi quel 2% restante posta solo cazzatine per cercare di dare una spinta agli altri...
 
Questa community di certo non si merita chissà che cosa, ormai si è capito che il 98% delle persone che stanno qui aspettano solo la pappa pronta... Quindi quel 2% restante posta solo cazzatine per cercare di dare una spinta agli altri...

eh gia, tutti dicono bravo , bravissimo( e hanno ragione) ma poi non fanno niente per aiutare, ma ognuno è libero di fare quello che vuole!
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom