Domanda [Quest] Più negozi in un solo npc.

Stato
Discussione chiusa ad ulteriori risposte.

iTz_Andreee

Utente Electrum
23 Marzo 2014
103
41
24
119
Ultima modifica:
Salve a tutti.
Ho creato una quest molto ma molto semplice per inserire più "SHOP" in un solo npc.
La mia domanda era se potevate dargli un occhiata per vedere se c'erano errori.

Codice:
quest shop_9001 begin
state start begin
when 9001.chat."Spade" begin
npc . open_shop( 1 )
setskin(NOWINDOW)
end
when 9001.chat."Spadoni" begin
npc . open_shop( 2 )
setskin(NOWINDOW)
end
when 9001.chat."Pugnali" begin
npc . open_shop( 3 )
setskin(NOWINDOW)
end
when 9001.chat."Archi" begin
npc . open_shop( 4 )
setskin(NOWINDOW)
end
when 9001.chat."Campane" begin
npc . open_shop( 5 )
setskin(NOWINDOW)
end
when 9001.chat."Ventagli" begin
npc . open_shop( 6 )
setskin(NOWINDOW)
end
end
end


Lasciate perdere i nomi e il numero dello shop intendo se è corretta la quest in sè.
 
Salve a tutti.
Ho creato una quest molto ma molto semplice per inserire più "SHOP" in un solo npc.
La mia domanda era se potevate dargli un occhiata per vedere se c'erano errori.

Codice:
quest shop_9001 begin
state start begin
when 9001.chat."Spade" begin
npc . open_shop( 1 )
setskin(NOWINDOW)
end
when 9001.chat."Spadoni" begin
npc . open_shop( 2 )
setskin(NOWINDOW)
end
when 9001.chat."Pugnali" begin
npc . open_shop( 3 )
setskin(NOWINDOW)
end
when 9001.chat."Archi" begin
npc . open_shop( 4 )
setskin(NOWINDOW)
end
when 9001.chat."Campane" begin
npc . open_shop( 5 )
setskin(NOWINDOW)
end
when 9001.chat."Ventagli" begin
npc . open_shop( 6 )
setskin(NOWINDOW)
end
end
end


Lasciate perdere i nomi e il numero dello shop intendo se è corretta la quest in sè.

Non ci sono errori, sperando che non me ne sia sfuggito qualcuno.​
 
Ultima modifica:
Non ci sono errori, sperando che non me ne sia sfuggito qualcuno.​

E se io vorrei tipo aggiungere un messaggio prima che compaiano i negozi?

Ovvero.

Salve "Nome PG"
Vuoi comprare qualcosa?


E subito dopo compaiono le scritte dei negozi.
 
E se io vorrei tipo aggiungere un messaggio prima che compaiano i negozi?

Ovvero.

Salve "Nome PG"
Vuoi comprare qualcosa?


E subito dopo compaiono le scritte dei negozi.

inserisci il say_title, qualche say con i messaggi che vuoi inserire e dopo inserisci un local nome con un select (Si, No), if nome == 1 then e metti il contenuto che hai pubblicato.​
 
quest shop_9001 begin
state start begin
when 9001.click begin
say_title("titolo")
say("ciao "..pc.get_name()..",scegli l'opzione che desideri:")
local a = select ("Spade","Spadoni","Pugnali","Archi","Campane","Ventagli","Esci")
if a == 7 then
return
elseif a == 1 then
npc . open_shop( 1 )
setskin(NOWINDOW)
elseif a == 2 then
npc . open_shop( 2 )
setskin(NOWINDOW)
elseif a == 3 then
npc . open_shop( 3 )
setskin(NOWINDOW)
elseif a == 4 then
npc . open_shop( 4 )
setskin(NOWINDOW)
elseif a == 5 then
npc . open_shop( 5 )
setskin(NOWINDOW)
elseif a == 6 then
npc . open_shop( 6 )
setskin(NOWINDOW)
end --local a
end --when
end --state
end --quest

testa e dimmi se funziona perchè lo fatto di fretta.
 
inserisci il say_title, qualche say con i messaggi che vuoi inserire e dopo inserisci un local nome con un select (Si, No), if nome == 1 then e metti il contenuto che hai pubblicato.​

Scusa ma mi sono appena cimentato con le quest potresti farmelo tu? Perchè ho paura di fare casini.
 
Salve a tutti.
Ho creato una quest molto ma molto semplice per inserire più "SHOP" in un solo npc.
La mia domanda era se potevate dargli un occhiata per vedere se c'erano errori.

Codice:
quest shop_9001 begin
state start begin
when 9001.chat."Spade" begin
npc . open_shop( 1 )
setskin(NOWINDOW)
end
when 9001.chat."Spadoni" begin
npc . open_shop( 2 )
setskin(NOWINDOW)
end
when 9001.chat."Pugnali" begin
npc . open_shop( 3 )
setskin(NOWINDOW)
end
when 9001.chat."Archi" begin
npc . open_shop( 4 )
setskin(NOWINDOW)
end
when 9001.chat."Campane" begin
npc . open_shop( 5 )
setskin(NOWINDOW)
end
when 9001.chat."Ventagli" begin
npc . open_shop( 6 )
setskin(NOWINDOW)
end
end
end


Lasciate perdere i nomi e il numero dello shop intendo se è corretta la quest in sè.

Codice:
quest shop_9001 begin
state start begin
when 9001.chat."Spade" begin
say_title("Ciao sono blabla")
say_reward("Qui potrai comprare degli oggetti")
say("ciao")
npc . open_shop( 1 )
setskin(NOWINDOW)
end
when 9001.chat."Spadoni" begin
npc . open_shop( 2 )
setskin(NOWINDOW)
end
when 9001.chat."Pugnali" begin
npc . open_shop( 3 )
setskin(NOWINDOW)
end
when 9001.chat."Archi" begin
npc . open_shop( 4 )
setskin(NOWINDOW)
end
when 9001.chat."Campane" begin
npc . open_shop( 5 )
setskin(NOWINDOW)
end
when 9001.chat."Ventagli" begin
npc . open_shop( 6 )
setskin(NOWINDOW)
end
end
end

Esempio...
 
Stato
Discussione chiusa ad ulteriori risposte.

DISCUSSIONI SIMILI

Indietro
Top Bottom