Unmantained Guida SCRIPT NPC PIETRE

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.

Cuck10

Utente Electrum
15 Marzo 2012
119
50
28
157
Ultima modifica da un moderatore:
Questo NPC vende pietre+2 a 100k
say_title ( "Venditore" )
say ( "Ciao!!" )
say ( "Posso Venderti Delle Pietre+2" )
say ( "A Buon Prezzo" )
say_reward ( "ricordati che costa 100000 yang!" )
local pietre = select ( "Forza War" , "Forza Ninja" , "Forza Shamy" , "Forza Sura" , "chiudi" )

if pietre == 1 then
if pc . gold >= 100000 then
pc . changegold ( - 100000 )
pc . give_item2 ( "28233" , 1 )
else
say ( "Non hai abbastanza yang!" )
return
end

if pietre == 2 then
if pc . gold >= 100000 then
pc . changegold ( - 100000 )
pc . give_item2 ( "28234" , 1 )
else
say ( "Non hai abbastanza yang!" )
return
end

if pietre == 3 then
if pc . gold >= 100000 then
pc . changegold ( - 100000 )
pc . give_item2 ( "28236" , 1 )
else
say ( "Non hai abbastanza yang!" )
return
end

if pietre == 4 then
if pc . gold >= 100000 then
pc . changegold ( - 100000 )
pc . give_item2 ( "28235" , 1 )
else
say ( "Non hai abbastanza yang!" )
return
end

NB: POTRETE MODIFICARE PREZZO E + DA QUESTA STRINGA
if pc . gold >= 100000 then (Soldi che bisogna avere)
pc . changegold ( - 100000 ) (Soldi da sottrarre)
pc . give_item2 ( "28235" , 1 ) (Value item quindi per dare un + aggungere 100 per toglierlo il contrario)


 
  • Mi piace
Reazioni: Prince ™
Stato
Discussione chiusa ad ulteriori risposte.