Ultima modifica da un moderatore:
Intanto ringrazio joker, ed anche intel, per l'idea.
Allora, in pratica con questa quest + questo script, potrete scambiare il vostro tempo di gioco, in degli item (attualmente, non avendo tempo ne ho messi solo 3).
Innanzitutto dovete compilare una quest:
E poi qui c'è l'NPC scambiatore:
Siete pregati di non rimuovere i crediti, grazie.
Allora, in pratica con questa quest + questo script, potrete scambiare il vostro tempo di gioco, in degli item (attualmente, non avendo tempo ne ho messi solo 3).
Innanzitutto dovete compilare una quest:
PHP:
quest playtime begin
state start begin
when login begin
timer("time", 60)
end
when time.timer begin
pc.setqf("time", pc.getqf("time")+1)
pc.setqf("time_points", pc.getqf("time_points")+1)
timer("time", 60)
end
end
end
PHP:
function tempo_gioco()
return pc.getqf("time")
end
function points()
return pc.getqf("time_points")
end
item = {
{"NomeItem1", "ValueItem1", "Quantita1","Punti1"},
{"NomeItem2", "ValueItem2", "Quantita2","Punti2"},
{"NomeItem3", "ValueItem3", "Quantita3","Punti3"}
}
function t()
say("Time-Crafter by DevilHunteR aka S4LV0DM:")
end
function ac(num)
t()
nome = item[num][1]
value = item[num][2]
quantita = item[num][3]
punti = item[num][4]
say(nome .. " x" .. quantita)
say("Punti richiesti: " .. punti)
say("Punti che hai: " .. points())
say_item_vnum(value)
wait()
t()
if points() < punti then
say("Mi dispiace ma non hai i punti necessari!")
return
end
say("Vuoi comprare " .. nome .. " x" .. quantita .. "?")
say("Dopo avrai " .. points()-punti.. " punti!")
s = select("Si","No")
if s == 2 then
return
else
t()
pc.give_item2(value, quantita)
pc.setqf("time_points", points()-punti)
say("Hai comprato " .. nome .. " x" .. quantita)
return
end
end
t()
say("Ciao!")
say("Attualmente stai giocando da " .. tempo_gioco() .. " minuti!")
say("Hai " .. points() .. " punti scambiabili!")
say("")
say("Cosa vuoi fare?")
say("")
s = select("Scambia", "Esci")
if s == 2 then
return
else
t()
say("Seleziona l'item che vorresti prendere")
s = select(item[1][1], item[2][1], item[3][1], "Esci")
if s == 1 then
ac(1)
elseif s == 2 then
ac(2)
elseif s == 3 then
ac(3)
end
end



utile..