Ultima modifica da un moderatore:
Salve Inforge, Dato che la Release di mr-newtorn in LUA come struttura fà leggermente cagare e vi spiego il perchè :
Se uccido qualcuno in duello ricevo un punto però come item... in poche parole ho una slot piena inutilmente.... io cosa ho fatto?
Questo script lo ho da 2-3 Mesi ed è giunto il momento... xD
In Pratica la funzione è quella, Killare Qualunque pg e potete ricevere in maniera RANDOM ( casuale ) 1 Points, 2 Points , Nessun Points.
L'unica Differenza è che questi punti saranno ''virtuali'' cioè potrete sapere quanti ne avete semplicemente cliccando sul pannello ( papiro tipo missione ) sul lato sinistro e vi dirà i vostri HonorPoints, in questo modo non avete nessuna slot impegnata ecc...
Ecco Lo Script
ITEM-SHOP HONOR POINTS
Cosa ce ne facciamo di punti senza poteri scambiare? xD
Logicamente ho pensato anche a questo.... Ecco quì
Con Questo Item-Shop potete scambiare i vostri HONOR-POINTS per bonus a tempo Es :
100 Honor Points Vi darà 24 Ore di 50% Mezziuomini e così via...
Script :
Al Momento è possibile ottenere solo VIT - DEX - STR - INT
Domani metterò anche gli altri bonus.
Credits: Brendon
RICORDO, IL TUTTO SENZA AVERE NULLA IN INVENTARIO!
EXP KILLANDO PG.
con questo script, killando dei pg potrete ricevere EXP
Se Volete cambiare Punti exp da ricevere, basta cambiare quì
Se uccido qualcuno in duello ricevo un punto però come item... in poche parole ho una slot piena inutilmente.... io cosa ho fatto?
Questo script lo ho da 2-3 Mesi ed è giunto il momento... xD
In Pratica la funzione è quella, Killare Qualunque pg e potete ricevere in maniera RANDOM ( casuale ) 1 Points, 2 Points , Nessun Points.
L'unica Differenza è che questi punti saranno ''virtuali'' cioè potrete sapere quanti ne avete semplicemente cliccando sul pannello ( papiro tipo missione ) sul lato sinistro e vi dirà i vostri HonorPoints, in questo modo non avete nessuna slot impegnata ecc...
Ecco Lo Script
PHP:
quest honorpoints begin
state start begin
when login begin
set_state(parte1)
end
end
state parte1 begin
when letter begin
send_letter("Honor Points")
end
when button or info begin
local nome = pc.get_name()
game.set_event_flag(nome .. "_Honor",game.get_event_flag(nome .. "_Honor"))
local b = game.get_event_flag(nome .. "_Honor")
say_title("Honor Points")
say("Attualmente hai:")
say_reward(b .. " Honor Points")
end
when kill with npc.is_pc() and pc.level >= 80 and npc.get_empire() ~= pc.get_empire() begin
local a = tostring(number(1,6))
if a == 1 then
local nome = pc.get_name()
local c = game.get_event_flag(nome .. "_Honor") + 1
game.set_event_flag(nome .. "_Honor",c)
chat("Hai ricevuto 1 Honor Points")
elseif a == 6 then
local nome = pc.get_name()
local c = game.get_event_flag(nome .. "_Honor") + 2
game.set_event_flag(nome .. "_Honor",c)
chat("Hai ricevuto 2 Honor Points")
elseif a == 2 or a == 3 or a == 4 or a == 5 then
chat("Hai ricevuto 0 Honor Points")
return
end
end
end
end
Cosa ce ne facciamo di punti senza poteri scambiare? xD
Logicamente ho pensato anche a questo.... Ecco quì
Con Questo Item-Shop potete scambiare i vostri HONOR-POINTS per bonus a tempo Es :
100 Honor Points Vi darà 24 Ore di 50% Mezziuomini e così via...
Script :
PHP:
function t()
say_title("Negozio Honor")
end
local nome = pc.get_name()
local h = game.get_event_flag(nome .. "_Honor")
local d = game.get_event_flag(nome .. "_Honor") - 50
local e = game.get_event_flag(nome .. "_Honor") - 90
t()
say("Benvenuto nel negozio Honor Points.")
say("Qui potrai scambiare i tuoi punti")
say("Honor per bonus.Scegli cosa fare:")
say_reward("Bonus 24 ore: 50 Honor Points.")
say_reward("Bonus 48 ore: 90 Honor Points.")
local a = select ("Bonus 24 Ore","Bonus 48 Ore","Chiudi")
if a == 3 then
return
elseif a == 1 then
t()
say("Scegli quale bonus applicare per 24 ore:")
local b = select ("VIT","STR","INT","DEX","Chiudi")
if b == 5 then
return
elseif b == 1 then
if h < 50 then
t()
say("Devi avere almeno 50 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.CON,50,60*60*24)
game.set_event_flag(nome .. "_Honor", d )
return
end
elseif b == 2 then
if h < 50 then
t()
say("Devi avere almeno 50 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.STR,50,60*60*24)
game.set_event_flag(nome .. "_Honor", d )
return
end
elseif b == 3 then
if h < 50 then
t()
say("Devi avere almeno 50 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.INT,50,60*60*24)
game.set_event_flag(nome .. "_Honor", d )
return
end
elseif b == 4 then
if h < 50 then
t()
say("Devi avere almeno 50 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.DEX,50,60*60*24)
game.set_event_flag(nome .. "_Honor", d )
return
end
end
elseif a == 2 then
t()
say("Scegli quale bonus applicare per 48 ore:")
local b = select ("VIT","STR","INT","DEX","Chiudi")
if b == 5 then
return
elseif b == 1 then
if h < 90 then
t()
say("Devi avere almeno 90 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.CON,50,60*60*24)
game.set_event_flag(nome .. "_Honor", e )
return
end
elseif b == 2 then
if h < 90 then
t()
say("Devi avere almeno 90 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.STR,50,60*60*24)
game.set_event_flag(nome .. "_Honor", e )
return
end
elseif b == 3 then
if h < 90 then
t()
say("Devi avere almeno 90 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.INT,50,60*60*24)
game.set_event_flag(nome .. "_Honor", e )
return
end
elseif b == 4 then
if h < 90 then
t()
say("Devi avere almeno 90 Honor Points.")
say("Al momento hai:")
say(h .. " Honor Points.")
else
t()
say("Bonus applicato con successo.")
affect.add_collect(apply.DEX,50,60*60*24)
game.set_event_flag(nome .. "_Honor", e )
return
end
end
end
Domani metterò anche gli altri bonus.
Credits: Brendon
RICORDO, IL TUTTO SENZA AVERE NULLA IN INVENTARIO!
EXP KILLANDO PG.
con questo script, killando dei pg potrete ricevere EXP
PHP:
quest itemexp begin
state start begin
when kill with npc . is_pc ( ) == true begin
local b = pc.get_level()
if b < 90 then
return
else
local exp1 = tostring(number(1000,150000))
pc . give_exp2 ( exp1 )
end
end
end
end
PHP:
local exp1 = tostring(number(1000,150000))


