Postado Janeiro 16, 2016 9 anos Eu gostaria de que auguem fizesse uma script que o item 2390 (magic longsword) quebrasse depois de 8 horas sendo usada. E quando ele quebrasse eu queria que ele virasse o item 2350. do todos os REPS do dia pra quem fizer.
Postado Janeiro 16, 2016 9 anos <item id="2390" article="a" name="magic longsword"> <attribute key="description" value="It is the magic Cyclopmania Sword." /> <attribute key="weight" value="4300" /> <attribute key="defense" value="40" /> <attribute key="attack" value="55" /> <attribute key="weaponType" value="sword" /> <attribute key="slotType" value="two-handed" /> <attribute key="decayTo" value="2350" /> <attribute key="duration" value="28800" /> <attribute key="showduration" value="1" /> </item> -- Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts Editado Janeiro 16, 2016 9 anos por Fir3element (veja o histórico de edições)
Postado Janeiro 16, 2016 9 anos Autor 1 hora atrás, Fir3element disse: <item id="2390" article="a" name="magic longsword"> <attribute key="description" value="It is the magic Cyclopmania Sword." /> <attribute key="weight" value="4300" /> <attribute key="defense" value="40" /> <attribute key="attack" value="55" /> <attribute key="weaponType" value="sword" /> <attribute key="slotType" value="two-handed" /> <attribute key="decayTo" value="2350" /> <attribute key="duration" value="28800" /> <attribute key="showduration" value="1" /> </item> -- Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts Vlw Manin Reputado, Mls comecei a usar o TK agora, vou testar aqui 2 horas atrás, Fir3element disse: <item id="2390" article="a" name="magic longsword"> <attribute key="description" value="It is the magic Cyclopmania Sword." /> <attribute key="weight" value="4300" /> <attribute key="defense" value="40" /> <attribute key="attack" value="55" /> <attribute key="weaponType" value="sword" /> <attribute key="slotType" value="two-handed" /> <attribute key="decayTo" value="2350" /> <attribute key="duration" value="28800" /> <attribute key="showduration" value="1" /> </item> -- Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts Cara aparece que o item dura 8 horas mais o tempo não passa Eu Esperei uma hora continua do mesmo jeito
Postado Janeiro 17, 2016 9 anos vai em data/movements e abre o arquivo movements.xml e adiciona isso: <movevent type="DeEquip" itemid="2390" slot="hand" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2390" slot="hand" level="10" event="function" value="onEquipItem"> </movevent>
Postado Janeiro 19, 2016 9 anos Autor Em 17/01/2016 20:11:25, roriscrave disse: vai em data/movements e abre o arquivo movements.xml e adiciona isso: <movevent type="DeEquip" itemid="2390" slot="hand" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2390" slot="hand" level="10" event="function" value="onEquipItem"> </movevent> Vlw mano deu certo. +REP
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.