Jump to content
  • 0
Sign in to follow this  
Juan Meissner

Equipamento mudar tamanho

Question

Boa noite pessoal, eu preciso tirar uma dúvida!

Gostária de saber como posso fazer um equipamento que defina o tamanho do personagem.

 

Isso não ira mudar o tamanho como um @size

 

E sim o tamanho dele como 0 = Pequeno, 1 = Medio, 2 = Grande!

 

Isso é para definir o dano que uma arma irá dar em um outro personagem equipado com certo tipo de equipamento:

 

Exemplo: Se eu tiver usando Túnica, Gibão, etc o jogador irá ficar com propriedade pequeno, e com uma armadura pesada ele ficará com o tamanho Grande!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Pode utilizar esses comandos:

 

 

 

*isequipped(<item id>{,<item id>{,<item id>{,<item id>}}})

 
This function will return 1 if the invoking character has all of the item 
IDs given equipped (if card IDs are passed, then it checks if the cards 
are inserted into slots in the equipment they are currently wearing). 
Theoretically there is no limit to the number of items that may be tested 
for at the same time. 
If even one of the items given is not equipped, 0 will be returned.
 
    // (Poring,Santa Poring,Poporing,Marin)
    if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!";
    // (Poring)
    if (isequipped(4001)) mes "A poring card is useful, don't you think?";
    // (Earring)
    if (isequipped(2622)) mes "You got a pair of nice Earring.";
 
The function was meant for item scripts to support the cards released by 
Gravity in February 2005, but it will work just fine in normal NPC scripts.
 

 

*atcommand "<command>";

 

This command will run the given command line exactly as if it was typed in 
from the keyboard by the player connected to the invoking character, and 
that character belonged to an account which had GM level 99.
 
    // This will ask the invoker for a character name and then use the 
    // '@nuke' GM command on them, killing them mercilessly.
    input .@player$;
    atcommand "@nuke "+.@player$;
 
This command has a lot of good uses, I am sure you can have some fun with 
this one.
 
Exemplo:
 
Script: <"
if(isequipped(2303) && isequipped (2305)){ atcommand "@size 1";   }
">
}
 
Ou seja, se o cara estiver equipando um Gibão e uma Túnica ao equipar o item com script acima ele fica pequeno, basta seguir o exemplo e fazer os outros, é bem simples.
Edited by ρixєℓ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.