Jump to content

Question

Posted

Λοιπον πρώτα πόλλα γειά χαρά σε όλους.Έχω φτείαξει ένα server freya και έχω πρόβλημα στο να φτείαξω μια custom spawn για να αρχίζουν απο κεί οι chars...Μήπως έχετε καμιά ιδέα?Σας ευχαριστώ εκ των πρωτέρων.

12 answers to this question

Recommended Posts

  • 0
Posted

Poly apla ekei p leei sto com.l2jserver.network.clientpackets.charactercreate.java

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

grafeis:

PARADEIGMA newChar.setXYZInvisible(9999, -23987, 4948);

h an sto mellon 8es na to allakseis k bariesai na kaneis olo ayto

kane ena config se ena file l2jmods.properties h kati tetoio opou 8es balto

# Custom spawn location

CustomSpawn = true

SpawnX = x

SpawnY = y

SpawnZ = z

sto config.java

public static boolean SPAWN_CHAR;

public static int SPAWN_X;

public static int SPAWN_Y;

public static int SPAWN_Z

 

SPAWN_CHAR = Boolean.parseBoolean(otherSettings.getProperty("CustomSpawn", "false"));

SPAWN_X = Integer.parseInt(otherSettings.getProperty("SpawnX", ""));

SPAWN_Y = Integer.parseInt(otherSettings.getProperty("SpawnY", ""));

SPAWN_Z = Integer.parseInt(otherSettings.getProperty("SpawnZ", ""));

k telos sto CharacterCreate.java

ekei p leei

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

grapse ayto:

if (Config.SPAWN_CHAR)

newChar.setXYZInvisible(Config.SPAWN_X, Config.SPAWN_Y, Config.SPAWN_Z);

else

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

  • 0
Posted

s leei dn exi source niose

la8oi eimaste an8rwpous kanoume...

anyway apo char_templates.sql einai tote...

(0, 'Human Fighter', 0, 40, 43, 30, 21, 11, 25, 4, 80, 6, 41, 300, 333, 33, 44, 33, 115, 81900, -71338, 258271, -3104, 0, 9.0, 23.0, 8.0, 23.5)

  • 0
Posted

apo sql? s leei kati fanky?

 

char tamples k vale sta arxika class t cords p thes

leme tr oti kapos t apantisa e dn pisteuo poia n mn kseri x,y,z

Guest
This topic is now closed to further replies.


×
×
  • Create New...