Discussione item richiami cavalcature a scelta

Stato
Discussione chiusa ad ulteriori risposte.

luca-94

Utente Silver
1 Dicembre 2008
146
26
7
98
Ultima modifica:
ciao a tutt

voglio creare un item per richiamare le cavalcature

pero voglio


say_title ( "richiamo" )
say ("")
say ( "ciao dimmi ke cavalcatura desideri" )
a = select ( "leone" , "cinghiale", "lupo", "tigre", "leone ghiaccio", "Chiudi" )
e poi si mette la funsione
pc.mount ()



ki mi aiuta?

grz ciao


EDIT
e se si puo fare col denaro ogni cavalcatira 20kk grz
 
quest richiami begin
state start begin
when login
or levelup with pc.get_level() > 0 begin
set_state
( "richiami" )
end
end
state ganjanewton begin
when letter begin
send_letter
( "Richiami" )
end
when button
or info begin
say_title
( "Richiami" )
set_state( "cavalcature" )


local skillers = select ("chiama leone", "chiama tigre", "Chiudi")
if skillers
== 1 then
say_title
("Richiami Cavalcature")
say ("Vuoi davvero comprare dei richiami per cavalcature?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in più")
local ganja = select ("chiama leone 'giallo'", "chiama leone 'nero'", "chiama leone 'blu'", "Chiudi")
if
ganja == 1 then
say_title
("Richiami Cavalcature")
say ("Scegli la quantita'")
local ganja1 = select ("1", "4", "6", "8", "10", "Chiudi")
if
ganja1 == 1 then
if pc.gold <= 49999 then
say_title
("Richiami cavalcature")
say ("Non hai 50.000 yang")
return
end
pc
.give_item2 ("71013", 1)
pc.change_gold (-50000)
elseif
ganja1 == 2 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
say ("Non hai 100.000 yang")
return
end
pc
.give_item2 ("71018", 1)
pc.give_item2 ("71019", 1)
pc.change_gold (-100000)
elseif
ganja1 == 3 then
if pc.gold <= 149999 then
say_title
("Richiami cavalcature")
say ("Non hai 150.000 yang")
return
end
pc
.give_item2 ("71013", 1)
pc.give_item2 ("71018", 1)
pc.give_item2 ("71019", 1)
pc.change_gold (-150000)
elseif
ganja1 == 4 then
if pc.gold <= 199999 then
say_title
("Richiami cavalcature")
say ("Non hai 200.000 yang")
return
end
pc
.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.change_gold (-200000)
elseif
ganja1 == 5 then
if pc.gold <= 249999 then
say_title
("Richiami cavalcature")
say ("Non hai 250.000 yang")
return
end
pc
.give_item2 ("71018", 200)
pc.give_item2 ("71018", 200)
pc.give_item2 ("71018", 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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja2 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja2 == 1 then
if pc.gold <= 74999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja3 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja3 == 1 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Vuoi davvero comprare dei richiami?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in su")
local ganja4 = select ("cinchiale 'giallo'", "ginghiale 'nero'", "lupo 'giallo'", "Chiudi")
if
ganja4 == 1 then
say_title
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja5 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja5 == 1 then
if pc.gold <= 74999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja6 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja6 == 1 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja7 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja7 == 1 then
if pc.gold <= 124999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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

per i prezzi penso che tu sappia modificarli stessa cosa per i value non so come li hai messi e non so se hai le cavalcature nuove o meno.
base dello script di http://www.inforge.net/community/member.php?u=128314 ganjafile
 
quest richiami begin
state start begin
when login
or levelup with pc.get_level() > 0 begin
set_state
( "richiami" )
end
end
state ganjanewton begin
when letter begin
send_letter
( "Richiami" )
end
when button
or info begin
say_title
( "Richiami" )
set_state( "cavalcature" )


local skillers = select ("chiama leone", "chiama tigre", "Chiudi")
if skillers
== 1 then
say_title
("Richiami Cavalcature")
say ("Vuoi davvero comprare dei richiami per cavalcature?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in più")
local ganja = select ("chiama leone 'giallo'", "chiama leone 'nero'", "chiama leone 'blu'", "Chiudi")
if
ganja == 1 then
say_title
("Richiami Cavalcature")
say ("Scegli la quantita'")
local ganja1 = select ("1", "4", "6", "8", "10", "Chiudi")
if
ganja1 == 1 then
if pc.gold <= 49999 then
say_title
("Richiami cavalcature")
say ("Non hai 50.000 yang")
return
end
pc
.give_item2 ("71013", 1)
pc.change_gold (-50000)
elseif
ganja1 == 2 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
say ("Non hai 100.000 yang")
return
end
pc
.give_item2 ("71018", 1)
pc.give_item2 ("71019", 1)
pc.change_gold (-100000)
elseif
ganja1 == 3 then
if pc.gold <= 149999 then
say_title
("Richiami cavalcature")
say ("Non hai 150.000 yang")
return
end
pc
.give_item2 ("71013", 1)
pc.give_item2 ("71018", 1)
pc.give_item2 ("71019", 1)
pc.change_gold (-150000)
elseif
ganja1 == 4 then
if pc.gold <= 199999 then
say_title
("Richiami cavalcature")
say ("Non hai 200.000 yang")
return
end
pc
.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.give_item2 ("71019", 200)
pc.change_gold (-200000)
elseif
ganja1 == 5 then
if pc.gold <= 249999 then
say_title
("Richiami cavalcature")
say ("Non hai 250.000 yang")
return
end
pc
.give_item2 ("71018", 200)
pc.give_item2 ("71018", 200)
pc.give_item2 ("71018", 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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja2 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja2 == 1 then
if pc.gold <= 74999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja3 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja3 == 1 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Vuoi davvero comprare dei richiami?[ENTER]visto che conta anche il trasporto")
say_reward ("Ti costeranno dai 50.000 yang in su")
local ganja4 = select ("cinchiale 'giallo'", "ginghiale 'nero'", "lupo 'giallo'", "Chiudi")
if
ganja4 == 1 then
say_title
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja5 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja5 == 1 then
if pc.gold <= 74999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja6 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja6 == 1 then
if pc.gold <= 99999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
say ("Scegli la quantita'")
local ganja7 = select ("200", "400", "600", "800", "1000", "Chiudi")
if
ganja7 == 1 then
if pc.gold <= 124999 then
say_title
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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
("Richiami cavalcature")
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

per i prezzi penso che tu sappia modificarli stessa cosa per i value non so come li hai messi e non so se hai le cavalcature nuove o meno.
base dello script di http://www.inforge.net/community/member.php?u=128314 ganjafile


so ke ti sei rotto il sedere per scrivere tutto questo e ti ringrazio ma non e buono non e guello che voglio xxddd posso provarlo cmq non e cosi ke ho detto ho detto tipo tu clikki sul "Leono" e lui ti toglie 20kk ed ti mete su comando pc.mount (VALUE NOB)
 
Ultima modifica:
PHP:
local COSTO = 200000000 -- [MODIFICARE SE NECESSARIO]
local Cavalcatura = 0

say_title ( "Richiamo antico" )
say ("")
say ( "Vuoi cavalcare uno degli antichi spiriti?" )
say ( "Ricorda: ti costerà " .. COSTO .. " Yang!" )
say ("")

if pc.get_money () < COSTO then
   say ("")
   say_reward ("Non hai abbastanza denaro...")
   say ("")
   return
end

local Selezione = select ( "Leone" , "Cinghiale", "Lupo", "Tigre", "No, meglio di no" )
if Selezione == 1 then
   Cavalcatura = 20113
elseif Selezione == 2 then
   Cavalcatura == 20110
elseif Selezione == 3 then
   Cavalcatura = 20111
elseif Selezione == 4 then
   Cavalcatura = 20112
else
   return
end

pc.change_gold ( -COSTO )
pc.mount (Cavalcatura)

return

Voilà ^^ se mi dici il value del leone di ghiaccio aggiungo anche quello
Però cerca di scrivere meglio la prossima volta! xD
 
Ultima modifica:
PHP:
local COSTO = 200000000 -- [MODIFICARE SE NECESSARIO]
local Cavalcatura = 0

say_title ( "Richiamo antico" )
say ("")
say ( "Vuoi cavalcare uno degli antichi spiriti?" )
say ( "Ricorda: ti costerà " .. COSTO .. " Yang!" )
say ("")

if pc.get_money () < COSTO then
   say ("")
   say_reward ("Non hai abbastanza denaro...")
   say ("")
   return
end

local Selezione = select ( "Leone" , "Cinghiale", "Lupo", "Tigre", "No, meglio di no" )
if Selezione == 1 then
   Cavalcatura = 20113
elseif Selezione == 2 then
   Cavalcatura == 20110
elseif Selezione == 3 then
   Cavalcatura = 20111
elseif Selezione == 4 then
   Cavalcatura = 20112
else
   return
end

pc.change_gold ( -COSTO )
pc.mount (Cavalcatura)

return

Voilà ^^ se mi dici il value del leone di ghiaccio aggiungo anche quello
Però cerca di scrivere meglio la prossima volta! xD


non va lo fatto cosi sapete dirmi il perke?

local COSTO = 20000000
local Cavalcatura = 0

say_title ( "Sigillo Del Richiamo antico" )
say ("")
say ( "Vuoi cavalcare uno degli antichi spiriti?" )
say ( "Ricorda: ti costerà " 20.000.000 " Yang!" )
say ("")

if pc.get_money (20000000) < COSTO then
say ("")
say_reward ("Non hai abbastanza denaro...")
say ("")
return
end

local Selezione = select ( "Leone" , "Cinghiale", "Lupo", "Tigre", "Leone Ghiaccio", "No, meglio di no" )
if Selezione == 1 then
pc.mount (20113)
elseif Selezione == 2 then
pc.mount (20110)
elseif Selezione == 3 then
pc.mount (20111)
elseif Selezione == 4 then
pc.mount (20112)
elseif Selezione == 5 then
pc.mount (20120)
else
return
end
 
PHP:
local COSTO = 200000000 -- [MODIFICARE SE NECESSARIO]
local Cavalcatura = 0

say_title ( "Richiamo antico" )
say ("")
say ( "Vuoi cavalcare uno degli antichi spiriti?" )
say ( "Ricorda: ti costerà " .. COSTO .. " Yang!" )
say ("")

if pc.getmoney () < COSTO then
   say ("")
   say_reward ("Non hai abbastanza denaro...")
   say ("")
   return
end

local Selezione = select ( "Leone" , "Cinghiale", "Lupo", "Tigre", "No, meglio di no" )
if Selezione == 1 then
   Cavalcatura = 20113
elseif Selezione == 2 then
   Cavalcatura == 20110
elseif Selezione == 3 then
   Cavalcatura = 20111
elseif Selezione == 4 then
   Cavalcatura = 20112
elseif Selezione == 5 then
   Cavalcatura = 20112
else
   return
end

pc.change_gold ( -COSTO )
pc.mount (Cavalcatura)

return

Errore mio, avevo scritto male "pc.getmoney()"
Inoltre nella if devi impostare Cavalcatura, non montare ;)

PS: devi solo modificare la primissima riga con il prezzo che vuoi, il resto dello script è corretto così.
COSTO non è dove mettere il numero, ma la costante (che si scrive sempre in maiuscolo) che contiene il numero che vuoi far pagare
Se lo copi uguale uguale pagherai 200kk
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom