Table des matières

Scripts event

Pour tester des idées, on peut faire apparaitre en jeu des objets, créatures et pnj, et même scripter le tout afin de le lancer rapidement lors d'un event d'animation.

Cependant, si quelque chose est destiné à rester en jeu, il vaut mieux l'inclure dans les primitives.

Il est possible de noter le script dans un fichier texte, puis de l'appeler en jeu avec la commande suivante :

/execScript *

Pour faire pop un objet/PNJ/Mob

/a eventCreateNpcGroup (quantité) (sheet_id) (zone de pop) (boolean_value_to_spawn_or_not) (sens du pop) (nom de l'objet )(Position)

ou

/a eventCreateNpcGroup quantity sheet_id dispersion boolean_value_to_spawn_or_not angle event_group_name x y z clientsheet

Exemple:

/a eventCreateNpcGroup 1 welcome_ra_f 10 1 random deed_script1_pnj1

En jeu, pour noter plus facilement la position et l'angle d'un personnage :

/dumpPosAsPrim "Indication" 

Pour changer, donner des caractéristiques à objet/PNJ/Mob :

/a eScript Nom_de_votre_script 
()setAttackable(0) 
()setBotAttackable(0) 
()vpx("VPA:") ()vpx("VPB:") ()vpx("VPC:") Apparence du Pnj
()addProfileParameter("running") pour courir
()rename("Nom&nbsp&perso$#(Titre&nbsp&perso)") changer le noms 
()vpx("VPB:") pour changer la taille de tout sauf pnj
()phraseEndNpcMsg(0,"say","WELCOME_RA_4") pour faire parler le PNJ( phrase définie dans phrase_*.txt)

Exemple

/a eScript deed_script1_pnj1 ()setAttackable(0) ()setBotAttackable(0) ()vpx("VPA:212c120000901209") ()vpx("VPB:62C2280000") ()vpx("VPC:292A40A5B823A2")()addProfileParameter("running")()rename("Jolie&nbsp&Ra$#(Harem&nbsp&de&nbsp&Deed)")

Pour connaitre le “VPA” d'un PNJ (apparence physique avec les modifications liées à la coiffure, le maquillage, les habits), créer un personnage, puis lancer un client DEV, cibler le personnage et shift+F2. Noter VPA, VPB et VPC pour la commande.

Il y aurait un outil pour faire ça sans devoir tout lancer ?

Pour faire depop :

/a eScript deed_script1_pnj1 ()despawn(1)

Exemple d'un script complet

deed_minivillage.txt
//depop du script
//a eScript deed_minivillage_* ()despawn(1)
//
//
//
//
//pop d'un minivillage
//Decors
//
a eventCreateNpcGroup 1 tente_givre 1 1 80 deed_minivillage_objet1 8810 -11202
a eventCreateNpcGroup 1 barriere_invisible2 1 1 160 deed_minivillage_objet1a 8813 -11198
a eventCreateNpcGroup 1 barriere_invisible2 1 1 1 deed_minivillage_objet1b 8809 -11197
a eventCreateNpcGroup 1 barriere_invisible4 1 1 100 deed_minivillage_objet1c 8814 -11201
a eventCreateNpcGroup 1 barriere_invisible4 1 1 50 deed_minivillage_objet1d 8813 -11205
a eventCreateNpcGroup 1 barriere_invisible4 1 1 170 deed_minivillage_objet1e 8809 -11206
a eventCreateNpcGroup 1 barriere_invisible4 1 1 110 deed_minivillage_objet1f 8806 -11203
a eventCreateNpcGroup 1 barriere_invisible4 1 1 50 deed_minivillage_objet1g 8807 -11199
a eventCreateNpcGroup 1 cushion_01 1 1 0 deed_minivillage_objet9 8813 -11202
a eventCreateNpcGroup 1 cushion_03 1 1 0 deed_minivillage_objet9b 8811 -11205
a eventCreateNpcGroup 1 cushion_03 1 1 0 deed_minivillage_objet9c 8808 -11204
a eventCreateNpcGroup 1 cushion_02 1 1 0 deed_minivillage_objet9d 8807 -11201
a eventCreateNpcGroup 3 barrel_closed 1 1 0 deed_minivillage_objet5 8805 -11197
a eventCreateNpcGroup 3 barrel_powder 1 1 0 deed_minivillage_objet6 8802 -11199
a eventCreateNpcGroup 1 crate_01_lock 1 1 0 deed_minivillage_objet7 8807 -11197
//
a eventCreateNpcGroup 1 delta_tent 1 1 150 deed_minivillage_objet2 8829 -11191
a eventCreateNpcGroup 2 barrel_closed 1 1 0 deed_minivillage_objet8 8833 -11186
a eventCreateNpcGroup 3 barrel_powder 1 1 0 deed_minivillage_objet9 8830 -11185
a eventCreateNpcGroup 3 crate_01_lock 1 1 150 deed_minivillage_objet10 8827 -11186
//
a eventCreateNpcGroup 1 delta_tent 1 1 30 deed_minivillage_objet3 8795 -11188
a eventCreateNpcGroup 3 barrel_closed 1 1 0 deed_minivillage_objet11 8794 -11181
a eventCreateNpcGroup 2 barrel_powder 1 1 0 deed_minivillage_objet12 8792 -11182
a eventCreateNpcGroup 4 crate_01_lock 1 1 30 deed_minivillage_objet13 8797 -11183
//
//
a eventCreateNpcGroup 1 feudecamp 1 1 0 deed_minivillage_objet4 8812 -11191
a eventCreateNpcGroup 1 ponant_firepit_on 1 1 0 deed_minivillage_objet5 8799 -11175
a eventCreateNpcGroup 1 ponant_firepit_on 1 1 0 deed_minivillage_objet6 8806 -11176
a eventCreateNpcGroup 1 ponant_firepit_on 1 1 0 deed_minivillage_objet7 8825 -11179
a eventCreateNpcGroup 1 ponant_firepit_on 1 1 0 deed_minivillage_objet8 8816 -11177
//
//
//
//Pop des pnj
//Pnj des maisons
//
a eventCreateNpcGroup 1 welcome_ra 0 1 80 deed_minivillage_pnj1 8811 -11193
a eScript deed_minivillage_pnj1 ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj1 ()vpx("VPA:601C12001390D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:395540A3C258D2") ()rename("Ronan&nbsp&Siela$#(Chef&nbsp&Ra)")
//a eScript deed_minivillage_pnj1 ()addBotChat("menu:QUESTION:REPONSE")
//
a eventCreateNpcGroup 1 welcome_ra_f 0 1 150 deed_minivillage_pnj2 8823 -11190
a eScript deed_minivillage_pnj2 ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj2 ()vpx("VPA:601000600310D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A6638A3C246DA") ()rename("Safia&nbsp&Siela$#(Artisant&nbsp&Ra)")
//
a eventCreateNpcGroup 1 welcome_ra_f 0 1 30 deed_minivillage_pnj3 8800 -11187
a eScript deed_minivillage_pnj3 ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj3 ()vpx("VPA:404C120C0490D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A6638A3C246DA") ()rename("Locia&nbsp&Siela$#(Cuisiniere&nbsp&Ra)")
//
//Pnj gardes
//
//Garde homme
a eventCreateNpcGroup 1 welcome_ra 15 1 0 deed_minivillage_pnj4a 8813 -11170
a eScript deed_minivillage_pnj4a ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj4a ()vpx("VPA:802C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:19695C3A52589A") ()rename("Yannkou$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra 15 1 0 deed_minivillage_pnj4b 8813 -11170
a eScript deed_minivillage_pnj4b ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj4b ()vpx("VPA:723C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:19695C3A52589A") ()rename("Osquou$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra 15 1 0 deed_minivillage_pnj4c 8813 -11170
a eScript deed_minivillage_pnj4c ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj4c ()vpx("VPA:534C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:19695C3A52589A") ()rename("Shepou$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra 15 1 0 deed_minivillage_pnj4d 8813 -11170
a eScript deed_minivillage_pnj4d ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj4d ()vpx("VPA:165C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:19695C3A52589A") ()rename("Dremou$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra 15 1 0 deed_minivillage_pnj4e 8813 -11170
a eScript deed_minivillage_pnj4e ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj4e ()vpx("VPA:336C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:19695C3A52589A") ()rename("Rollniou$#(Garde&nbsp&Ra)")
//
//Villageoise
a eventCreateNpcGroup 1 welcome_ra_f 10 1 0 deed_minivillage_pnj5a 8813 -11180
a eScript deed_minivillage_pnj5a ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj5a ()vpx("VPA:213C12000310D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Zatala$#(Villagoise&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra_f 10 1 0 deed_minivillage_pnj5b 8813 -11180
a eScript deed_minivillage_pnj5b ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj5b ()vpx("VPA:324C12000410D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Lyna$#(Villagoise&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra_f 10 1 0 deed_minivillage_pnj5c 8813 -11180
a eScript deed_minivillage_pnj5c ()setAttackable(0) ()setBotAttackable(0) 
a eScript deed_minivillage_pnj5c ()vpx("VPA:435C12000310D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Zeki$#(Villagoise&nbsp&Ra)")
//
//Garde Femme
a eventCreateNpcGroup 1 welcome_ra_f 15 1 0 deed_minivillage_pnj6a 8813 -11170
a eScript deed_minivillage_pnj6a ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj6a ()vpx("VPA:517C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Lodina$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra_f 15 1 0 deed_minivillage_pnj6b 8813 -11170
a eScript deed_minivillage_pnj6b ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj6b ()vpx("VPA:132C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Liiria$#(Garde&nbsp&Ra)")
a eventCreateNpcGroup 1 welcome_ra_f 15 1 0 deed_minivillage_pnj6c 8813 -11170
a eScript deed_minivillage_pnj6c ()setAttackable(1) ()setBotAttackable(0) ()setAutoSpawn(1) ()setDespawnTime(120) ()setRespawnTime(90) ()setMaxHP(500,1) 
a eScript deed_minivillage_pnj6c ()vpx("VPA:357C12000010D21B") ()vpx("VPB:C0BC090000") ()vpx("VPC:3A660050CDD553") ()rename("Capla$#(Garde&nbsp&Ra)")

Vous collez votre script dans un fichier deed_minivillage.cmd avec votre éditeur de texte favori puis vous lancez en jeu :

/execScript deed_minivillage.txt

Comment personnalisé son PNJ

(ébauche)

Si vous voulez des formes de PNJ bien précise :
-vous le créez sur votre compte (ou un autre)
-vous faite shift + F2 puis vous vous ciblez
-vous notez les 3 VPA VPB VPC qui sont en bas

commande pour changer de coiffure : changeHairCut (sheet)

Vérifié si vous avez réussit :

/a eventCreateNpcGroup 1 welcome_ra 1 1 0 PNJ
/a eScript PNJ ()vpx("VPA:") ()vpx("VPB:") ()vpx("VPC:")