Item Details

Caixa Surpresa ( Fools_Day_Box2 )

ID 12397 Caixa Surpresa
Caixa Surpresa Preço de Compra: 20 zeny Preço de Venda: 10 zeny Peso: 1 Slots: Não especificado
Tipo: Utilizável (Atraso) Subtipo: Não especificado Gênero: Ambos Localizações: Não especificado
Ataque: Não especificado Ataque Mágico: Não especificado Alcance: Não especificado Defesa: Não especificado
Nível da Arma: Não especificado Nível da Armadura: Não especificado Nível Mín. de Equipamento: Não especificado Nível Máx. de Equipamento: Não especificado
Refinável: Não especificado Graduável: Não especificado Elemento: Neutro Classes: Não especificado

Uma caixa bem suspeita feita para pregar peças nos outros. Quando aberta, libera um item ou habilidade aleatoriamente.
Peso: 1

Sebuah kotak misterius. Tidak ada yang tahu apa isinya dan apa yang akan terjadi jika membukanya.
Berat : 1

A very suspicious box. You don't know what will happen when you open it.
Weight : 1

A very suspicious box. You don't know what will happen when you open it.
Weight: 1

Todos

Não especificado

Flags
Pode entrar em loja de player? Não
Invoca monstro? Não
Faz parte de um contêiner? Não
Tem pilha única? Não
Vincula ao equipar? Não
Anuncia o drop? Não
É consumido ao usar? Sim
Tem efeito ao cair no chão? Não
Empilhamento
Não especificado
Uso
Não especificado
Comércio
Substituir Não especificado
Pode ser descartado? Sim
Pode ser trocado? Sim
Pode ser trocado com o parceiro? Sim
Pode ser vendido para NPC? Sim
Pode ser colocado no carrinho? Sim
Pode ser colocado no armazém? Sim
Pode ser colocado no armazém da guilda? Sim
Pode ser enviado por correio? Sim
Pode ser leiloado? Sim
Atraso
Não especificado
.@rnd = rand(1,9);
if (.@rnd == 1) itemskill "TF_DETOXIFY",1;
else if (.@rnd == 2) itemskill "TF_PICKSTONE",1;
else if (.@rnd == 3) itemskill "BA_FROSTJOKER",1;
else if (.@rnd == 4) itemskill "DC_SCREAM",1;
else if (.@rnd == 5) getitem 909,1;
else if (.@rnd == 6) itemskill "AL_RUWACH",1;
else if (.@rnd == 7) specialeffect2 EF_BEGINASURA;
else if (.@rnd == 8) specialeffect2 EF_MVP;
else specialeffect2 EF_CURSEATTACK;
Referências do Script
rand Comando
rand
Assinatura:
rand(<number>{,<number>});
Descrição:
This function returns a number ... (if you specify one) ... randomly positioned between 0 and the number you specify -1. (if you specify two) ... randomly positioned between the two numbers you specify. rand(10) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(0,9) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(2,5) would result in 2,3,4 or 5
if Comando
if
Assinatura:
if (<condition>) <statement>;
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:
if (1)  mes "This will always print.";
if (0)  mes "And this will never print.";
if (5)  mes "This will also always print.";
if (-1) mes "Funny as it is, this will also print just fine.";
if (strcharinfo(0) == "Daniel Jackson") mes "It is true, you are Daniel!";
.@answer = 1;
input .@input;
if (.@input == .@answer)
close;
mes "Sorry, your answer is incorrect.";
close;
.@answer = 1;
input .@input;
if (.@input != .@answer)
mes "Sorry, your answer is incorrect.";
close;
.@count++;
mes "[Forgetful Man]";
if (.@count == 1) mes "This is the first time you have talked to me.";
if (.@count == 2) mes "This is the second time you have talked to me.";
if (.@count == 3) mes "This is the third time you have talked to me.";
if (.@count == 4) {
mes "This is the fourth time you have talked to me.";
mes "I think I am getting amnesia, I have forgotten about you...";
.@count = 0;
}
close;
mes "[Quest Person]";
if (countitem(512) < 1) {  // 512 is the item ID for Apple, found in db/item_db.yml
mes "Can you please bring me an apple?";
close;
}
mes "Oh, you brought an Apple!";
mes "I didn't want it, I just wanted to see one.";
close;
mes "[Person Checker]";
if ($@name$ == "") {  // global variable not yet set
mes "Please tell me someones name";
next;
input $@name$;
$@name2$ = strcharinfo(0);
mes "[Person Checker]";
mes "Thank you.";
close;
}
if ($@name$ == strcharinfo(0)) {  // player name matches $@name$
mes "You are the person that " + $@name2$ + " just mentioned.";
mes "Nice to meet you!";
// reset the global variables
$@name$ = "";
$@name2$ = "";
close;
}
mes "You are not the person that " + $name2$ + " mentioned.";
close;
mes "[Multiple Checks]";
if (@queststarted == 1 && countitem(512) >= 5) {
mes "Well done, you have started the quest and brought me 5 Apples.";
@queststarted = 0;
delitem 512,5;
close;
}
mes "Please bring me 5 apples.";
@queststarted = 1;
close;
if (<condition>)
dothis;
else
dothat;
if (<condition>) {
dothis1;
dothis2;
} else {
dothat1;
dothat2;
dothat3;
}
if (<condition 1>)
dothis;
else if (<condition 2>) {
dothat;
end;
} else
dothis;
itemskill Comando
itemskill
Assinatura:
itemskill <skill id>,<skill level>{,<keep requirement>};
itemskill "<skill name>",<skill level>{,<keep requirement>};
Descrição:
items. It will not work properly if there is a visible dialog window or menu or if the item is not type 'Delayconsume'. If the skill is self or auto-targeting, it will be used immediately; otherwise a target cursor is shown. If <keep requirement> parameter is set to true, the skill's requirements will be checked. By default, the requirements for item skills are not checked, and therefore the default value is false. // When Anodyne is used, it will cast Endure (8), Level 1, as if the actual skill has been used from skill tree. - Id: 605 // When Sienna_Execrate_Scroll_1_5 is used, it will cast Sienna Execrate Level 5 and consume 2 Red_Gemstones. - Id: 23194
Exemplo:
AegisName: Anodyne
Name: Anodyne
Type: Delayconsume
Buy: 2000
Weight: 100
Flags:
BuyingStore: true
Script: |
itemskill "SM_ENDURE",1;
AegisName: Sienna_Execrate_Scroll_1_5
Name: Level 5 Sienna Execrate
Type: Delayconsume
Buy: 10
Weight: 10
Script: |
itemskill "WL_SIENNAEXECRATE",5,true;
getitem Comando
getitem
Assinatura:
getitem <item id>,<amount>{,<account ID>};
getitem "<item name>",<amount>{,<account ID>};
Descrição:
This command will give an amount of specified items to the invoking character. If an optional account ID is specified, and the target character is currently online, items will be created in their inventory instead. If they are not online, nothing will happen. In the first and most commonly used version of this command, items are referred to by their database ID number found inside ''. enabled. You may also create an item by its name in the 'english name' field in the item database: Which will do what you'd expect. If it can't find that name in the database, apples will be created anyway. It is often a VERY GOOD IDEA to use it like this. quite a few item scripts. For more examples check just about any official script.
Exemplo:
getitem 502,10 // The person will receive 10 apples
getitem 617,1  // The person will receive 1 Old Violet Box
getitem "RED_POTION",10;
specialeffect2 Comando
specialeffect2
Assinatura:
specialeffect2 <effect number>{,<send_target>{,"<Player Name>"}};
Descrição:
This command behaves identically to 'specialeffect', but the effect will be centered on the invoking character's sprite. <Player name> parameter will display <effect number> on another Player than the one currently attached to the script. Like with specialeffect, when specifying a player, <send_target> must be supplied, specifying AREA will retain the default behavior of the command.
Não especificado
Referências do Script

Nenhuma referência documentada foi detectada neste script.

Não especificado
Referências do Script

Nenhuma 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

Não especificado