Update NPC's id

This commit is contained in:
Shadow15510 2022-06-24 13:36:40 +02:00
parent a6e8ac6c86
commit e5b2c7f5ff
4 changed files with 8 additions and 7 deletions

View File

@ -132,7 +132,7 @@ h_24 = (r"""
alfheim_entities = (
[0, '?', 2, 34, 20, 'stand by'],
["alfeim_charretier", '*', 2, 23, 17, 'stand by'],
[0, '*', 2, 23, 17, 'stand by'],
[0, '*', 2, 11, 4, 'stand by'],
[0, '*', 2, 46, 6, 'stand by'],
[0, '*', 2, 27, 54, 'stand by'],

View File

@ -340,7 +340,7 @@ def vanaheim_npc(data, stat, entites, identifiant):
else: return [0, "Riethas, simple paysan. Que Nerthus vous garde !"]
if coords == (41, 45):
elif coords == (41, 45):
if "riethas" in data[0]:
if data[0]["riethas"] == 5: return [20, 20, 20, 20, 100], "Kamuel", 50, 1, "riethas"
else: return "riethas", {
@ -349,7 +349,7 @@ def vanaheim_npc(data, stat, entites, identifiant):
4: [2, "Bien sur, voila. [+50 PO]", 0, (1, 50)],
}
if identifiant == "vanaheim_charretier":
elif coords == (45, 39):
if stat[9] == -1 or data[0]["main"] == stat[9]:
stat[9] = data[0]["main"]
return [0, "[LE CONDUCTEUR DE LA CHARRETTE SE TOURNA VERS VOUS] Ou voulez-vous aller ? Je vous emmene pour 5 pieces.\n1. Midgard\n2. Jotunheim\n3. Alfheim", 3]
@ -490,7 +490,8 @@ def alfheim_npc(data, stat, entites, identifiant):
# * : (46; 6)
# * : (23; 17)
# * : (27; 54)
if identifiant == "alfheim_charretier":
coords = data[2], data[3]
if coords == (23, 17):
if stat[9] == -1 or data[0]["main"] == stat[9]:
stat[9] = data[0]["main"]
return [0, "[LE CONDUCTEUR DE LA CHARRETTE SE TOURNA VERS VOUS] Ou voulez-vous aller ? Je vous emmene pour 5 pieces.\n1. Midgard\n2. Asgard\n3. Vanaheim\n4. Svartalfheim", 4]
@ -670,7 +671,7 @@ def midgard_npc(data, stat, entites, identifiant):
55: [-4, "C'est bien, passez. [ALORS QUE VOUS PASSIEZ A COTE DE IROB, UNE VIVE DOULEUR VOUS PRIT L'ABDOMEN, LE SANG ET LES CHAIRS SE REPANDIRENT SUR VOS MAINS ET VOTRE INCOMPREHENSION.]"],
}
elif identifiant == "midgard_charretier":
elif coords == (39, 49):
if stat[9] == -1 or data[0]["main"] == stat[9]:
stat[9] = data[0]["main"]
return [0, "[LE CONDUCTEUR DE LA CHARRETTE SE TOURNA VERS VOUS] Ou voulez-vous aller ? Je vous emmene pour 5 pieces.\n1. Vanaheim\n2. Asgard\n3. Nidavellir\n4. Niflheim", 4]

View File

@ -197,7 +197,7 @@ midgard_entities = (
[0, '?', 3, 53, 24, 'stand by'],
[0, '?', 3, 66, 45, 'stand by'],
[0, '?', 3, 52, 79, 'stand by'],
["midgard_charretier", '*', 3, 39, 49, 'stand by'],
[0, '*', 3, 39, 49, 'stand by'],
[0, '*', 3, 8, 59, 'stand by'],
[0, '*', 3, 66, 56, "stand by"],
[0, '*', 3, 67, 46, 'stand by'],

View File

@ -101,7 +101,7 @@ h_22 = (r"""
vanaheim_entities = (
[0, '?', 1, 42, 20, 'stand by'],
[0, '?', 1, 26, 29, 'stand by'],
["vanaheim_charretier", '*', 1, 45, 39, 'stand by'],
[0, '*', 1, 45, 39, 'stand by'],
[0, '*', 1, 31, 12, 'stand by'],
[0, '*', 1, 41, 45, 'stand by'],
[0, '*', 1, 52, 22, 'stand by'],