appliqué un effet a une porte

Répondre
Partager Rechercher
Je veux qu'un effet ou un sort soit lancé lorsque le pj ouvre la porte, ou doi je placé ce script:

Code PHP:

void main()
{
     
object oPC GetLastUsedBy();
     
int cSpell SPELL_RAY_OF_FROST;
     
int bCheat 1;
     
int bInstantSpell 1;
     
string sSpeakString "Deux eclairs ... !";
     {
          
ActionSpeakString(sSpeakString);
          
ActionCastSpellAtObject(cSpelloPCbCheatbInstantSpell);
          
ActionCastSpellAtObject(cSpelloPCbCheatbInstantSpell);
     }

ben........ dans le OnOpen de ta porte...

répondre a tes question c possible, mais essaye quand même de te prendre un peu la tête dessus avant de poster, la quand même ca tombe sous le sens...
en effet

Code PHP:

// Get the last creature that opened the caller.
// * Returns OBJECT_INVALID if the caller is not a valid door or placeable.
object GetLastOpenedBy() 
ca ira mieux avec ca ^_^
*Ouvre son Lexicon*
*Regarde a ActionCastSpellAtObject*

Code PHP:

void ActionCastSpellAtObject(
    
int nSpell,
    
object oTarget,
    
int nMetaMagic METAMAGIC_ANY,
    
int bCheat FALSE,
    
int nDomainLevel 0,
    
int nProjectilePathType PROJECTILE_PATH_TYPE_DEFAULT,
    
int bInstantSpell FALSE
); 
Donc si tu veux mettre un bInstantSpell, il faut que tu mette tous ce qui va avant ou alors tu rajoute des virgules

Stou

Ca donnera alors :

Code PHP:

void main()
{
     
object oPC GetLastOpenedBy();
     
int cSpell SPELL_RAY_OF_FROST;
     
int bCheat 1;
     
int bInstantSpell 1;
     
string sSpeakString "Deux eclairs ... !";
     {
          
ActionSpeakString(sSpeakString);
          
ActionCastSpellAtObject(cSpelloPCMETAMAGIC_STILL,
                
bCheat0PROJECTILE_PATH_TYPE_DEFAULT,
                
bInstantSpell);
          
ActionCastSpellAtObject(cSpelloPCMETAMAGIC_STILL,
                
bCheat0PROJECTILE_PATH_TYPE_DEFAULT,
                
bInstantSpell);
     }

Dsl, j aime bien tous marqué en lettre pour ne rien oublier

Edit : Changement du METAMAGIC_ANY en METAMAGIC_STILL sinon ca fait trop bobo
__________________
http://ctprofiles.net/303223 http://membres.lycos.fr/caarheim/PA.gifhttp://membres.lycos.fr/caarheim/buff.gif @2.29 de vitesse ... PAN PAN dans le ...
Faut deja savoir ce qui ne marche pas

est ce que la phrase est dite ?
est ce que un effet graphik apparait ?
est ce que des degat sont infligé ?

essai de mettre un ActionSpeakString entre chaque ligne

essai de rajouter a chaque action un AssignCommand, ce qui donnerai


Code PHP:

     {
          
AssignCommandGetModule(), ActionSpeakString(sSpeakString));
          
AssignCommandGetModule(), ActionCastSpellAtObject
                
(cSpelloPCMETAMAGIC_STILL,
                
bCheat0PROJECTILE_PATH_TYPE_DEFAULT,
                
bInstantSpell));
          
AssignCommandGetModule(), ActionCastSpellAtObject
                
(cSpelloPCMETAMAGIC_STILL,
                
bCheat0PROJECTILE_PATH_TYPE_DEFAULT,
                
bInstantSpell));
     } 
__________________
http://ctprofiles.net/303223 http://membres.lycos.fr/caarheim/PA.gifhttp://membres.lycos.fr/caarheim/buff.gif @2.29 de vitesse ... PAN PAN dans le ...
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés