High-tech Shield [1] ( Hightech_Shield_US )
| ID 460096 |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Preço de Compra: zeny | Preço de Venda: 0 zeny | Peso: 50 | Slots: 1 | ||||||||||||||||||||||||||||||||||||
| Tipo: Equipamento | Subtipo: Não especificado | Gênero: Ambos | Localizações: Escudo | |||||||||||||||||||||||||||||||||||||
| Ataque: Não especificado | Ataque Mágico: Não especificado | Alcance: Não especificado | Defesa: 50 | |||||||||||||||||||||||||||||||||||||
| Nível da Arma: Não especificado | Nível da Armadura: 2 | Nível Mín. de Equipamento: 100 | Nível Máx. de Equipamento: Não especificado | |||||||||||||||||||||||||||||||||||||
| Refinável: 1 | Graduável: 1 | Elemento: Neutro | Classes: Não especificado | |||||||||||||||||||||||||||||||||||||
|
A multipurpose high-tech shield used by genetics. Todos Não especificado
Flags
Empilhamento
Não especificado
Uso
Não especificado
Comércio
Atraso
Não especificado
.@r = getrefine();
.@g = getenchantgrade();
bonus bShortWeaponDamageReturn,25;
bonus bLongAtkRate,15;
bonus bPow,3*(.@r/2);
bonus bCon,3*(.@r/2);
bonus bMaxHPrate,5*(.@r/3);
bonus bDelayrate,-2*(.@r/3);
if (.@r>=10) {
bonus2 bAddClass,Class_All,15;
if (.@r>=11) {
bonus2 bSkillAtk,"GN_CARTCANNON",50;
if (.@r>=12) {
bonus2 bSkillAtk,"GN_SPORE_EXPLOSION",50;
if (.@r>=13) {
bonus bLongAtkRate,20;
if (.@r>=14) {
bonus2 bSkillAtk,"GN_CARTCANNON",80;
bonus2 bSkillAtk,"GN_SPORE_EXPLOSION",80;
}
}
}
}
}
if (getpetinfo(PETINFO_EGGID) == 9013) {
if (getpetinfo(PETINFO_INTIMATE) >= PET_INTIMATE_LOYAL) {
bonus bSpeedRate,25;
bonus2 bSkillAtk,"GN_SPORE_EXPLOSION",40;
}
}
if (getpetinfo(PETINFO_EGGID) == 9123) {
if (getpetinfo(PETINFO_INTIMATE) >= PET_INTIMATE_LOYAL) {
bonus bSpeedRate,25;
bonus2 bSkillAtk,"GN_CARTCANNON",40;
}
}
if (.@g>=ENCHANTGRADE_C) {
bonus bPow,3;
bonus bCon,3;
if (.@g>=ENCHANTGRADE_B) {
bonus bLongAtkRate,20;
if (.@g>=ENCHANTGRADE_A) {
bonus bAllTraitStats,10;
}
}
}
Referências do Script
getrefine
Comando
getrefine
Assinatura:
Descrição:
function is called.
This function is intended for use in item scripts.
getenchantgrade
Comando
getenchantgrade
Assinatura:
Descrição:
function is called or the specified equipment slot. If nothing is
equipped there, it returns -1.
Valid equipment slots are:
EQI_COMPOUND_ON - Item slot that calls this script (In context of item script) (default)
For a list of others equipment slots see 'getequipid'.
bShortWeaponDamageReturn
Bônus de Item
bShortWeaponDamageReturn
Assinatura:
Descrição:
Reflects n% of received melee damage back to the enemy that caused it
bLongAtkRate
Bônus de Item
bLongAtkRate
Assinatura:
Descrição:
Increases damage of long ranged attacks by n%
bPow
Bônus de Item
bPow
Assinatura:
Descrição:
POW + n
bCon
Bônus de Item
bCon
Assinatura:
Descrição:
CON + n
bMaxHPrate
Bônus de Item
bMaxHPrate
Assinatura:
Descrição:
MaxHP + n%
bDelayrate
Bônus de Item
bDelayrate
Assinatura:
Descrição:
Increases skill delay by n%
if
Comando
if
Assinatura:
Descrição:
Este é o comando de instrução condicional básico, e praticamente o único disponível nesta linguagem de script.
A condição pode ser qualquer expressão. Todas as expressões que resultam em um valor não zero serão consideradas Verdadeiras, incluindo valores negativos. Todas as expressões que resultam em zero são falsas.
Se a expressão resultar em Verdadeira, a instrução será executada. Se não for verdadeira, nada acontece e passamos para a próxima linha do script.
Para mais informações sobre operadores condicionais, consulte a seção de operadores acima.
armazená-lo em uma variável específica:
Mais exemplos de uso do comando 'if' no mundo real:
Exemplo 1:
Exemplo 2:
Note que os exemplos 1 e 2 têm o mesmo efeito.
Exemplo 3:
Exemplo 4:
Exemplo 5:
Veja 'strcharinfo' para uma explicação do que esta função faz.
Exemplo 6: Usando condições complexas.
O motor de script também suporta declarações 'if' aninhadas:
Se a condição não for atendida, ele executará a ação seguinte ao 'else'.
Também podemos agrupar várias ações dependendo de uma condição:
Lembre-se que se você planeja fazer várias ações quando a condição for falsa, e
você esquecer de usar as chaves ( { } ), a segunda ação será executada independentemente
da saída da condição, a menos, é claro, que você pare a execução do script se a
condição for verdadeira (ou seja, no primeiro agrupamento usando um return;, end; ou um close;)
Além disso, você pode ter múltiplas condições aninhadas ou encadeadas.
Exemplo:
bAddClass
Bônus de Item
bAddClass
Assinatura:
Descrição:
+x% physical damage against class c
bSkillAtk
Bônus de Item
bSkillAtk
Assinatura:
Descrição:
Increases damage of skill sk by n%
getpetinfo
Comando
getpetinfo
Assinatura:
Descrição:
currently has active. Valid types are:
PETINFO_ID - Pet unique ID
PETINFO_CLASS - Pet class number as per '' - will tell you what kind of a pet it is.
PETINFO_NAME - Pet name. Will return "null" if there's no pet.
PETINFO_INTIMATE - Pet friendly level (intimacy score). 1000 is full loyalty.
PETINFO_HUNGRY - Pet hungry level. 100 is full hunger.
PETINFO_RENAMED - Pet rename flag. 0 means this pet has not been named yet.
PETINFO_LEVEL - Pet level
PETINFO_BLOCKID - Pet Game ID
PETINFO_EGGID - Pet egg item ID
PETINFO_FOODID - Pet food item ID
PETINFO_INTIMATE can be used with the following constants for checking values:
PET_INTIMATE_NONE = 0
PET_INTIMATE_AWKWARD = 1 ~ 99
PET_INTIMATE_SHY = 100 ~ 249
PET_INTIMATE_NEUTRAL = 250 ~ 749
PET_INTIMATE_CORDIAL = 750 ~ 909
PET_INTIMATE_LOYAL = 910 ~ 1000
PETINFO_HUNGRY can be used with the following constants for checking values:
PET_HUNGRY_NONE = 0
PET_HUNGRY_VERY_HUNGRY = 1 ~ 10
PET_HUNGRY_HUNGRY = 11 ~ 25
PET_HUNGRY_NEUTRAL = 26 ~ 75
PET_HUNGRY_SATISFIED = 76 ~ 90
PET_HUNGRY_STUFFED = 91 ~ 100
Example:
These commands will only work if the invoking character has a pet, and are meant
to be executed from pet scripts. They will modify the pet AI decision-making for
the current pet of the invoking character, and will NOT have any independent
effect by themselves, which is why only one of them each may be in effect at any
time for a specific pet. A pet may have 'petloot', 'petskillbonus',
'petskillattack' OR 'petpetskillattack2' and 'petskillsupport'.
the specified duration of seconds, with a delay of the specified number of
seconds between activations. Rates are a chance of the effect occurring and are
given in percent. 'bonusratebattle_athena.conf'.
from the egg. Other commands usable in item scripts (see 'bonusre essentially on your own here.
Exemplo:
bSpeedRate
Bônus de Item
bSpeedRate
Assinatura:
Descrição:
Movement speed + n% (only the highest among all is applied, won't be stacked with SC_SPEEDUP0, SC_SPEEDUP1)
bAllTraitStats
Bônus de Item
bAllTraitStats
Assinatura:
Descrição:
POW + n, STA + n, WIS + n, SPL + n, CON + n, CRT + n
Não especificado Referências do ScriptNenhuma referência documentada foi detectada neste script. Não especificado Referências do ScriptNenhuma referência documentada foi detectada neste script. Não especificado Não especificado Não especificado Não especificado Não especificado Não especificado Não especificado Não especificado |
||||||||||||||||||||||||||||||||||||||||