• 0
Sign in to follow this  
Followers 0
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

  • 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 [email protected]$;
    atcommand "@nuke "[email protected]$;
 
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0